Advantech PCL-848A/B User Manual

Browse online or download User Manual for Unknown Advantech PCL-848A/B. Advantech PCL-848A/B User`s manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - INTERFACE CARD

PCL-848A/BMULTIFUNCTION IEEE-488INTERFACE CARD

Page 2

4 PCL-848AB User's Manual2. INSTALLATION2.1. InspectionWhen unpacking, check the unit for signs of shipping damage (damaged box, scratches,dent

Page 3 - Contents

CHAPTER 2 INSTALLATION 52.2.1. I/O Base Address and Wait State SettingThe I/O ports base address and the number of wait states are selectable

Page 4

6 PCL-848AB User's Manual2.2.2. Firmware Address SettingThe IBEE-488 interface driver routine is stored in the on-board i EPROM. Thememory addr

Page 5

CHAPTER 2 INSTALLATION 72.2.3. Operating Mode SettingSW3 is a slide switch to select the operating mode. When it is set to “A”, this card isc

Page 6

8 PCL-848AB User's ManualThe IEEE-488 interface card is setup at the factory of default setting:Jumper/Switch Selection Default settingSW1 1-5

Page 7 - 1. GENERAL INFORMATIQN

CHAPTER 2 INSTALLATION 92.3.3. Function CheckConfirm proper operation by connecting an IEEE-488 instrument to i the bus andattempting to oper

Page 8

10 PCL-848AB User's Manual3. PROGRAMMING REFERENCE3.1. IntroductionThe PCL-848A/B interface card contains the resident firmware that provides I

Page 9

CHAPTER 3 PROGRAMMING REFERENCE 113.2. Using the BASIC CALL StatementThe firmware routines on the IEEE-488 interface card, can be thou

Page 10 - 2. INSTALLATION

12 PCL-848AB User's ManualEvery called routine must define its entry address with an offset from the currentsegment. For ease of reference all

Page 11

CHAPTER 3 PROGRAMMING REFERENCE 13The programming examples and interpreter routines have been written to work aroundthese limitations

Page 12

Part No. 2003848000 Rev. A1Printed in Taiwan Apr 2001PCL-848A/B MULTIFUNCTIONIEEE-488 INTERFACE CARDUSER’S MANUALThis documentation and softwa

Page 13 - 2.3. Installing the Card

14 PCL-848AB User's Manual3.4.1. AHORTPurpose:This command aborts all activities on the interface bus bysOffset :AHORT%=9Syntax :CALL AHORT% --

Page 14

CHAPTER 3 PROGRAMMING REFERENCE 153.4.2. DEVCLR (Device Clear) Purpose :This command sends a Selective Device Clear (SDC) command to a

Page 15

16 PCL-848AB User's Manual3.4.3. DEVICEPurpose:This command installs an IEEE-488 device driver in place of s the LPT1:, LPT2:,LPT3:, COM1: and

Page 16 - 3. PROGRAMMING REFERENCE

CHAPTER 3 PROGRAMMING REFERENCE 173.4.4. ENTER Purpose :This command enters a string from a device or from the interface. Reading iBt

Page 17

18 PCL-848AB User's Manual3.4.5. ENTERAPurpose :This command enters a long string (can be up to 65535 bytes) from a specifieddevice or from the

Page 18

CHAPTER 3 PROGRAMMING REFERENCE 19Example:10 DEF SEG=&HD000 ‘ Define location of firmware :20 ENTERA%=51 : STATUS%=42 ‘ Define rou

Page 19 - 3.4. The Driver Routines

20 PCL-848AB User's Manual3.4.6. EOLPurpose :This command sets the terminators of input and output strings for the specifieddevice. The termina

Page 20

CHAPTER 3 PROGRAMMING REFERENCE 213.4.7. INITPurpose :This aommand initializes the interface card and sets the relative parameters. It

Page 21

22 PCL-848AB User's ManualFor more information about bit 12,14,15 of setting, please refer to Section 5. AD-VANCED PROGRANMING TECUNIQUES.Bus A

Page 22

CHAPTER 3 PROGRAMMING REFERENCE 233.4.8. LLOPurpose :This command executes a Local Lockout (LLO) to disable a device’s front panel. It

Page 23

Contents1. GENERAL INFORMATIQN... 11.1. Introduction to the Product ...

Page 24

24 PCL-848AB User's Manual3.4.9. LOCALPurpose :This command executes a Go To Local (GTL) or clears the REN line to enable adevice’s front panel

Page 25

CHAPTER 3 PROGRAMMING REFERENCE 253.4.10. OUTPUT Purpose :This command outputs a string to the specified device or to the interface bu

Page 26

26 PCL-848AB User's Manual3.4.11. OUTPUTAPurpose :This command outputs a long string (can be up to 65535 bytes) to a specified deviceor to the

Page 27

CHAPTER 3 PROGRAMMING REFERENCE 27Example:10 ‘ This program loads a data file from disk into RAM20 ‘ and then outputs this data to the

Page 28

28 PCL-848AB User's Manual3.4.12. PPOLLPurpose :This command conducts a parallel poll of the interface bus. It returns the value (0-255) of an

Page 29

CHAPTER 3 PROGRAMMING REFERENCE 293.4.13. PPOLLCPurpose:This command performs a Parallel Poll Configure. In preparation for a parallel

Page 30

30 PCL-848AB User's ManualBus Activity:- If O <= addr <= 30ATN is set true.UNL is sent.LAD is sent.MTA is sent.PPC is sent.PPE is sent.-

Page 31

CHAPTER 3 PROGRAMMING REFERENCE 313.4.14. PPOLLUPurpose:This command executes a Parallel Poll Unconfigure. It directs a device to notr

Page 32

32 PCL-848AB User's Manual3.4.15. REHOTEPurpose:This command places a device in Remote Mode. It can be addressed to a specificdevice or to the

Page 33

CHAPTER 3 PROGRAMMING REFERENCE 333.4.16. SENDPurpose:This command sends user specified IEEE-488 Interface commands to the interface.E

Page 34

3.4.20. TRIGGER Purpose : ... 383.4.21. ERRPTR ...

Page 35

34 PCL-848AB User's ManualBus Activity :- The following commands set ATN true then send out the corresponding character.Mnemonic UNL UNT GET DC

Page 36

CHAPTER 3 PROGRAMMING REFERENCE 353.4.17. SPOLLPurpose :This command conducts a serial poll of the interface bus. It returns the value

Page 37

36 PCL-848AB User's Manual3.4.18. STATUS Purpose :Purpose :This command reads the status from the interface and returns this value to thecallin

Page 38

CHAPTER 3 PROGRAMMING REFERENCE 373.4.19. TIMEOUT Purpose :Purpose :This command sets the timeout period. When the bus handshake is st

Page 39

38 PCL-848AB User's Manual3.4.20. TRIGGER Purpose :Purpose :This command sends a Group Execute Trigger (GET) to a device or to the interfacebus

Page 40

CHAPTER 3 PROGRAMMING REFERENCE 393.4.21. ERRPTRPurpose :This command assigned variables for error number and count of string bytes.Of

Page 41

40 PCL-848AB User's ManualExample :10 DEF SEG=&HD00020 INIT%=0:OUTPUT%=3:ENTER%=6:ERRPTR%=6030 ADDR%=2340 CALL ERRPTR%(IOERR%,IOCOUNT%)50 T

Page 42

CHAPTER 4 PROGRAMMING TECBNIQUES 414. PROGRAMMING TECBNIQUES4.1. Interactive Data Transfer10 'FILE NAME : EXAMPLE.120 'Progr

Page 43

42 PCL-848AB User's Manual420 'OUTPUT UTILITY430 '440 TMP$=SPACE$(80)450 IF 22-LIN.Y<6 TREN CLS:LIN Y=1460 LOCATE 22,1,0:PRINT “ “

Page 44

CHAPTER 4 PROGRAMMING TECBNIQUES 434.2. Set IEEE-488 Printer10 'FILE NAME : EXAMPLE.220 ' Program Example : SET IEEE-488 PRI

Page 45

10. ASCII TABLE ... 7411. NEC7210 RBAD / WRITE REGISTSR ...

Page 46

44 PCL-848AB User's Manual4.3. Voltage Measurement with a DVM10 'FILE NAME : EXAMPLE.320 'Program Example : VOLTAGE MEASUREMENT WIT)3

Page 47 - 4. PROGRAMMING TECBNIQUES

CHAPTER 4 PROGRAMMING TECBNIQUES 454.4. AD500 PMU Programming10 'FILE NAME : EXAMPLE.420 'Program Example : AD500 PMU PROGRA

Page 48

46 PCL-848AB User's Manual420 'Measurement start430 '440 ALARM%=0450 FOR I=0 TO 15460 D$=”DW0,”+STR$(I)470 '480 CALL OUTPUT%(ADD

Page 49 - 4.2. Set IEEE-488 Printer

CHAPTER 4 PROGRAMMING TECBNIQUES 474.5. Multiple Device Triggering10 'FILE NAME : EXAMPLE.520 'Program Example : MULTIPLE DE

Page 50

48 PCL-848AB User's Manual420 '430 D2$=SPACE$(40)440 CALL ENTER%(ADDR2%,D$) ‘ Enter DVM #2 reading450 GOSUB 550 ‘ Error check460 IF ER%<

Page 51 - 4.4. AD500 PMU Programming

CHAPTER 4 PROGRAMMING TECBNIQUES 494.6. Interrupt Handling10 'FILE NAME : EXAMPLE.620 'Program Example : INTERRUPT HANDLING3

Page 52

50 PCL-848AB User's Manual460 'Measurement start470 '480 FOR I=1 TO 100490 CALL TRIGGER%tADDR%) ‘ Trigger the DVM.500 ANS$=SPACE$(40)

Page 53

CHAPTER 5 ADVANCED PROGRAMM1N TECBNIQUES 515. ADVANCED PROGRAMM1N TECBNIQUES5.1. Direct Memory AcceAs (DMA)Direct memory acaess (DHA)

Page 54

52 PCL-848AB User's Manual2) The DMA operating mode (single, demand, block, and cascade).3) Autoinitialization (enabled or disabled).4) Address

Page 55 - 4.6. Interrupt Handling

CHAPTER 5 ADVANCED PROGRAMM1N TECBNIQUES 53The DMA operation of this IEEE-488 interface is quite transparent to users. Onceyou select

Page 56

FiguresFig. 2.2 Location of switches and jumpers ... 4Fig. 7-1 PCL-848A/B Block Diagram ...

Page 57 -

54 PCL-848AB User's Manual5.2. Transfer SpeedThe data transfer speed is determined by several factors:1) The instruction execution speed of the

Page 58

CHAPTER 5 ADVANCED PROGRAMM1N TECBNIQUES 555.3. InterruptThe interface has the capability to interrupt the PC’s processor when certai

Page 59

56 PCL-848AB User's Manual5.4. Hore about the SEND CommandThe SEND routine allows the user to control the IEEE-488 interface directly.Therefore

Page 60 - 5.2. Transfer Speed

CHAPTER 6 DIGITAL OUTPUT 576. DIGITAL OUTPUTThe PCL-848A/B provides 16 digital output channels. These i digital output channelsuse th

Page 61

58 PCL-848AB User's Manual7. TBEORY OP OPERATION7.1. IntroductionThis section describes the operation theory of this IEEE-488 t interface card.

Page 62

CHAPTER 7 TBEORY OP OPERATION 59Fig. 7-1`PCL-848A/B Block Diagram

Page 63

60 PCL-848AB User's Manual8. TROUBLESHOOTING8.1. IntroductionThis section provides information on maintaining, troubleshooting and repairing th

Page 64 - 7. TBEORY OP OPERATION

CHAPTER 8 TROUBLESHOOTING 61SYmDtom Possible Fault CheckComputer hangs up Bad connections bet- Clean wax on goldenwhen calling driver ween golden f

Page 65

62 PCL-848AB User's Manual8.4. Part ListItem No. Oty Description MfrC1-C6, 20 0.1 microfarad capacitorsC8-C21C7,C22, 3 10 microfarad capacitors

Page 66 - 8. TROUBLESHOOTING

CHAPTER 8 TROUBLESHOOTING 63Item No. Oty Description MfrU19 1 74LS245SW1,SW2 2 DIP switches (16 pins)SW3 1 Slide switchJP1,JP2 2 3 by 2 pin headers

Page 67 - TROUBLESHOOTING

CHAPTER 1 GENERAL INFORMATIQN 11. GENERAL INFORMATIQN1.1. Introduction to the ProductThe PCL-848A/B IEEE-488 interface card is a valuable add

Page 68 - 8.4. Part List

64 PCL-848AB User's Manual9. BUS TUTORIAL9.1. General BUB DeBCriPtiOnThe IEEE-488 bus is easy to use and allows great flexibility in data commu

Page 69

CHAPTER 9 BUS TUTORIAL 65Operationally, the interface is thoughtfully supported with professional softwaresupport package. The software provides hi

Page 70 - 9. BUS TUTORIAL

66 PCL-848AB User's Manual2) TALKER. A device capable of transmitting data to other devices. Typical talkersare voltmeters,counters, audio anal

Page 71 - BUS TUTORIAL

CHAPTER 9 BUS TUTORIAL 679.2.2. IEC-625 Connector Pin AssignmentThe IEC-625 standard uses 25 pin D type connector as the standard and the signalass

Page 72 - 9.2. Bus Structure

68 PCL-848AB User's Manual9.4. Bus CommandsIn COMMAND mode, bus commands can be placed on the bus and sent to alldevices. These commands have t

Page 73 - 9.3. Management Lines

CHAPTER 9 BUS TUTORIAL 692) If a service request i8 present, the controller sets the serial poll mode. The serialpoll mode is initiated by the r co

Page 74 - 9.4. Bus Commands

70 PCL-848AB User's Manual

Page 75 - 9.7. Code Summary

CHAPTER 9 BUS TUTORIAL 719.8. Randshake LinesEach character byte transferred on the bus data lines employs the three wire hand-shake sequence. This

Page 76

72 PCL-848AB User's ManualHandshake Timing Sequence

Page 77 - 9.8. Randshake Lines

CHAPTER 9 BUS TUTORIAL 739.9. Other Bus LinesThe three remaining bus lines are:1) REN (Remote Enable) The system controller sets REN low and then a

Page 78 - Handshake Timing Sequence

2 PCL-848AB User's ManualBASICA, BASIC compiler and Quick-BASIC are supported as standard languages. Cand Pascal language support packages can

Page 79 - 9.9. Other Bus Lines

74 PCL-848AB User's Manual10. ASCII TABLECHAR BINARY UEX DEC COMMAND CHAR BINARY HEX DEC COMMANDNULL 0000000 00 0 SPACE 0100000 20 32 LA0SOU 00

Page 80 - 10. ASCII TABLE

CHAPTER 10 ASCII TABLE 75CHAR BINARY UEX DEC COMMAND CHAR BINARY HEX DEC COMMAND@ 1000000 40 64 TA0 1100000 60 96 SC0A 1000001 41 65 TA1 a 1100001

Page 81 - CHAPTER 10 ASCII TABLE

76 PCL-848AB User's Manual11. NEC7210 RBAD / WRITE REGISTSRRead Register Bit Contents7 6 5 4 3 2 1 00 Data In DI7 DI6 DI5 DI4 DI3 DI2 DIl DI0St

Page 82

CHAPTER 12 SUMMARY OF THE IEEE-488 LIBRARY FUNCTIONS 7712. SUMMARY OF THE IEEE-488 LIBRARY FUNCTIONSRoutins Offset Parameters ActivityABORT 9 None A

Page 83 - CHAPTER 12

78 PCL-848AB User's ManualRoutins Offset Parameters ActivitySPOLL 39 ADDR%,RESPONSE% Serial Poll.STATUS 42 CONDITION%,5% Reads the status of th

Page 84

CHAPTER 1 GENERAL INFORMATIQN 3If you are familiar with the basic concepts of the IEEE-488 bus you may want tobegin reading the Section 3. PR

Comments to this Manuals

No comments