Home
Metrolab PDI 5025 User`s manual v2.2
Contents
1. ae n gt e suadawnar ald NOLIVZIVINSION 7 TWNOIS TWNOIS Brians 3005N3 lt MET PI yw zor coaoc Z O tY LJ zLuzrco PDI 5140 Trigger Generator figure 4 nstruments SA METROLAB 14 3 3 5130 Interface Module This unit comprises one Euroboard card containing the microprocessor its peripherals memory G64 bus controls and the circuits driving the RS 232 C and IEEE 488 interfaces 3 3 1 Mi croprocessor The microprocessor is a Motorola 6809 with 32k bytes of RAM and a socket for a 32k byte EPROM The microprocessor handles communications with the host computer via the 1 0 ports reception and decoding of commands calculation buffering and transmission of the results Seven status registers can be interrogated to determine the current state of the instrument See section 7 1 or appendix lll for a detailed description of these registers Within the instrument the microprocessor controls the different phases of measurement steering of integrator counters start stop reset and transfer of counts position or time controls mainly loading the set values and waiting for the comparator signal motor commands and supply At start up the microprocessor executes autotest procedure which verifies the integrator parameters zero offset gain
2. lt type gt type gt Channel B Channel A This status byte is divided into two identical parts bits 0 to 3 refer to Channel A and bits 4 to 7 to Channel B bit 7 6 and 3 2 VFC type These bits show if the channel is active and the type of Voltage To Frequency Converter which has been used in the module bits 113 6 2 0 0 Channel Inactive 0 1 VFC 100 kHz 1 0 VFC 500 kHz 1 1 VFC 1 MHz bit 5 and 1 Overrange This bit indicates the state of the negative overrange LED on the bargraph display When the negative overrange is lit this bit is set to l bit 4 and 0 Overrange This bit indicates the state of the positive overrange LED on the bargraph display When the positive overrange is lit this bit is set to l Instruments SA 45 46 1 1 5 STATUS 5 and 6 Autotest 2 bytes STATUS 5 relates to Channel A while STATUS 6 refers to Channel B If only one 5130 module is placed in the instrument the status bits of the missing channel are always zero 4 10 Error in Analog Measure These bits are set during the autotest bit 7 6 5 Unused Al ways 0 bit 4 Error in the analog measurement This bit is set to 1 when one or more values measured during the autotest are out of tolerance The AUT command allows the host computer to access the values measured by the autotest see section 7 2
3. 88 METROLAB Instruments SA MANI BE BAS continued ABQ 490 500 ADDRESS OF THE PDI5025 MUST BE SELECTED IN THE I BCONF EXE SOFTWARE 510 THE I DENTI FIER IS PD 520 530 The program ADJUSTI B BAS start here Previous lines are for the 540 National Instuments GPIB Board initialisation 550 560 570 580 Find PDI by identifier PDI Adress is given by configuration 590 soft BCONF EXE 600 DEV PD 610 CALL BFIND DEV PDI 620 IF PDI 0 THEN PRINT ERROR IN INITI ALI SATION OF PDI STOP 630 640 INITIALIZATION OF LOCAL VARI ABLES 650 I MES 0 ENDRUN 0 VSA 0 VSB 0 CLS 660 RESET READ STATUS 1 AND 2 WE DO NOT CARE OF CONTENT 670 SEND STB 1 60508 1530 680 SEND STB 2 GOSUB 1530 690 SET PDI5025 5 PARAMETERS 100 CALL I BWRT PDI SEND BOTH CHANNELS SELECTED DEFAULT 710 SEND SGA A 5 CALL BWRT PDI SEND SET GAIN CHANNEL A 720 SEND SGA B 200 CALL BWRT PDI SEND GAIN CHANNEL B IF CHANNEL B PRESENT 130 E 1024 CALL IBWRT PDI SEND TRIGGER SOURCE ROTATIONAL ENCODER 1024 STEPS 140 SEND z TRI 0 32 128 CALL BWRT PDI SEND TRIGGER SEQUENCE 750 SEND MOT A
4. 5 NIYI avg NOILOFNIG 1510 135440 TWONVN MOLVOIONI S MJ00ON3 3HL SIAS 39 110 LAANI NV HLM 5 LNAWFYNSVAN AHL 3ZINOWSHONAS OL TWNOIS LL V SLANI PDI 5025 Front Panel figure 1 nstruments SA METROLAB 2 THE ORY OF OPERATI ON The PDI 5025 Precision Digital Integrator functions in the following manner t METROLAB he block diagram is shown in figure 2 The input voltage is conditioned by a programmable gain preamplifier in order to deliver an output in the 5V range An Overrange detector monitors the output of the preamplifier to ensure that it stays within the 5V limit This output voltage is displayed on an indicator bargraph allowing the gain to be adjusted easily The signal is then shifted by 51 high precision reference in order to ensure a positive voltage for all measurement conditions This voltage in the 0 10V range is fed to a precision voltage to frequency converter VFC which has an output frequency we Shall call F In parallel a reference oscillator generates pulses at a fixed frequency Fr corresponding to 4 times the output of the VFC with 5V input i e with a OV preamplifier input voltage The F and Fr pulse trains are sent to two 32 bit counters during the measuring period At the end of each period they are Switched to two alternative 32 bit c
5. OVER CALL BWRT PDI SEND 1470 PRESS ENTER TO CONTI NUE DUMMY 1480 CLEAR OVERRANGE 1490 SEND CVR CALL BWRT PDI SEND 1500 GOTO 1260 1510 RETURN 90 METROLAB Instruments SA MANI BE BAS continued 1520 1530 SUBROUT 1540 E TO EXECUTE A COMMAND WHICH REQUIRES A RESPOND FROM PD 1550 SEND TO PDI COMMAND SEND 1560 CALL BWRT PDI SENDS 1570 ADDRESSING THE PDI AS A TALKER TO READ IT SUBROUTINE 1580 N SPACE 50 1590 CALL IBRD PDI INS IN STRING INS 1600 I NSZLEFTS INS I NSTR IN CHR 10 BUILD STRING ING 1610 RETURN METROLAB Instruments SA 91 MANI BE HPB 140 170 180 200 210 220 L AK KK KKA KA KK KK KKA KAK K KK KK x TCHES SETT ODE 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 100 110 120 130 PRECISION DIGITAL INTEGRATOR PD 150 160 190 PDI S FRONT PANEL M EXECUTES A RUN IN E ACCEPT 1 OR 2 CHANN PDI S COMMANDS ARE SENT TO 1 COMMANDS WHICH DO DIRECTLY EXAMPLE COMMANDS WHICH REQU THE SUBROUTINE LINE PASSED TO THE SUBRO THE RESPOND OF THE EXAMPLE SEND S ING OF STATUS 1 IS OF THE READING THE SUBRO THE VARI ABLE ENDRUN VARI ABLE STB1 CRO SW CODER ELS 2 THE READ DIM Format 80 mes 0
6. CALL BWRT PDI SENDS AUTOMATIC START AND STOP FOR MOTOR 160 SEND I MD 1 CALL I BWRT PDI SEND DIRECT TRANSFERT DEFAULT 770 SEND CUM 0 CALL I BWRT PDI SENDS NDI VI DUAL VALUES DEFAULT 780 READ STATUS 1 AND CHECK COMMAND ERROR BIT 790 GOSUB 1310 800 IF MI D STB1 3 1 lt gt 0 THEN GOTO 700 810 INITIALIZE ENCODER INDEX POSITI O 820 PRINT INITIALIZE ENCODER POSITI ON 830 SEND DSP 1NDX CALL BWRT PDI SEND 840 1 ND CALL BWRT PDI SENDS 850 READ STATUS 1 AND CHECK SYNCHRO BIT 860 GOSUB 1310 870 WAIT FOR SYNCHRO BIT 1 INDEX FOUND 880 WHILE MI D STB1 8 1 lt gt 1 890 GOSUB 1310 900 WE ND 910 PRINT INDEX FOUND 920 SEND DSP CALL I BWRT PDI SENDS 930 NPUT PRESS ENTER TO START RUN DUMMY 940 START RUN W TH COMMAND RUN 950 SEND RUN CALL I BWRT PDI SEND 960 INFORM USER THAT RUN STARTED 970 SEND DSP RUN CALL BWRT PDI SEND 980 PRINT RUN IN PROGRESS METROLAB Instruments SA MANI BE BAS continued 990 READ STATUS 1 AND WAIT UNTIL DATA READY BIT IS 1 1000 GOSUB 1310 1010 WHILE MI D STB1 6 1 lt gt 1 1020 GOSUB 1310 1030 WE ND 1040 READ DATA UNTIL DATA READY BIT IN STATUS 1 IS 0 1050 WHILE MI D STB1 6 1 1 1060 ADDRESS THE PDI AS A TALKER TO GET DATA 1070 GOSUB 1580 1080 CHECK IF END OF DATA 7
7. Endrun 0 Vsa 0 Vsb 0 CLEAR SCREEN 5025 ADDRESS Hpi b 7 Pdi Hpi b 100 9 ON INTR 7 GOSUB 1470 Mask 2 ENABLE NTR Hpi b Mask RESET READ Send STB 1 GOSUB 1410 Send STB 2 GOSUB 1410 PD PD OT e RE 14 UT PD TB DO UT F NECESSARY UTPUT Pdi KEK KKK KKK KKK KKK KKK KKK KKK K K K KKK KKK KKK KKK K K K KKK K KK K K K KK K KK K K K K K K X x METROLAB INSTRUMENTS SA GENEVA 5025 G 1 IN TWO D REQUIRE A FFER RESP A RESPO 10 IN TH NE WITH THE ST 5 RETURNED 25 GOSUB 141 E BY THE ROUTI NE CHECKS THE THE STAT D FRO S CA II NITI ALL ZATION OF LOCAL VARI ABLES LANGUAGE HP BASIC HEWLETT PACKARD I INTERFACE 1 PDI 5025 NCREMENTAL ENCODER WITH INDEX L DIRECT DATA TRANSFER to 10 1001 ENT WAYS OND FROM PD PDI ARE EXE SE THE COMMAN RI NG VARI ABLE THE VARI ABL 0 STB2 E LINE 1170 END OF RUN BI US 15 RETURNE 1 ENABLES SRQ INTERRUPTS STATUS 1 AND 2 WE DO NOT CARE OF CONTENT L M 000010 ARE EXECUTED CUTED VIA D STRING 15 SEND AND E IN ADDITION T AND UPDATES DIN JUNE 1991 92 METROLAB Instruments SA MANI BE HPB continued 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 110 180 190 800 810 820 830 840 850 860 870 88
8. This happens even if the measurement cycle has not been completed Thus it is possible to collect data as the measurement proceeds and so free up space in the internal METROLAB Instruments SA ME TROLAB data buffer The total number of measured values can therefore be greater that 5200 To read the next value the host computer must send the ENQ command if connected via the RS 232 interface or address the PDI 5025 as a Talker when using the IEEE 488 bus The returned value is expressed in 10 8Vs followed by a space and then the channel identifier e g 45982900 A overrange occur during the measurement with the command 1 previously sent to the PDI 5025 the returned value is 0 with an exclamation mark between the last digit and the channel descriptor e g O A To read the next value the host must send the ENQ or address the instrument as a Talker The values are output in the same order as they are measured If two channels are active then Channel B is sent before Channe A the values are read during a measurement cycle and the ENQ command or the Talker state is performed before the next data value is available i e DATA READY not yet set to 1 then the instrument returns the characters carriage return and line feed CR LF which corresponds to a null string When all the values have been read by the host computer and the internal buffer is empty the instrument will reply to a request for more data wi
9. 1260 1270 1280 1290 1300 1310 1320 1330 1340 1350 1360 SEN ST CHECK F RUN F EN NFOR PR PR CHECK F I NFOR PR PR IN CLEAR PR GO RE SUBRO SEND PR IN ACCEP WH WAIT WA ADD WEN RET D STB 1 GOSUB 1190 815 N END OF RUN BIT 1D STB1 5 1 lt gt 1 THEN RETURN SHED DRUN 1 USER THAT RUN IS OVER AND READING CONTI NUES T RUN FINISHED READING IN CONTI NUI NG T 1 DSP READ OVERRANGE ERROR BIT D STB1 4 1 lt gt 1 THEN RETURN USER THAT OVERRANGE OCCURED T ATTENTION OVERRANGE OCCURED RUN STOPPED T 1 DSP OVER PUT PRESS ENTER TO CONTI NUE DUMMY OVERRANGE T 1 TO 920 TURN UTINE TO EXECUTE A COMMAND WHICH REQUIRES A RESPOND FROM PD TO PDI COMMAND SEND NT 1 SENDS ge T DATA UNTIL CARRIAGE RETURN AND LINE FEED FOUND OR 72 LE I NSTR IN CHR 13 CHR 10 0 AND INSTR IN CHR 26 0 NPASS 0 FOR DATA IN RS232 BUFFER WHILE EOF 1 NPASS NPASS 1 T TO LONG TRY AGAIN COMMAND NOT DECODED BY PDI 5025 IF NPASS gt 500 THEN GOTO 1220 WE ND PUT CHARACTERS TO STRING IN 1 N I NPUTS LOC 1 1 BUILD STRING I N D URN 80 METROLAB Instruments SA MANRSTBL BAS 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 38
10. 150 en Synchronisation by the Host Computer SYN To 325 lr SC atur idee Er EP22 WBE ES Liga hr RES CIC E IA 1 3 The IEEE 488 Interface lt 1 3 4 13 2 1 3 3 1 3 4 1 3 5 1 3 6 1 3 8 72 9 722 10 8 9 APPENDI X 10 APPENDI X 10 1 5150 10 2 5150 10 3 5140 10 4 5130 10 5 5130 10 6 5130 11 APPENDIX The REMOTE The LOCAL LOCKOUT The GO TO LOCAL Command icc eR y s The GROUP EXECUTE TRIGGER Command The INTERFACE CLEAR The DEVICE CLEAR Service Request SRO ecce cue EXIGERE ind Setting te SRO Mas ToS coc educa nea kt e ee a SRO Status Regl st uus est SRQ Masks command MSK PDI 5025 COMMANDS COMMAND REFERENCE GUI DE PDI 5025 JUMPERS AND MI CROSWI TCHES NTEGRATOR MODULE DIGITAL BOARD UMPERS NTEGRATOR MODULE ANALOG BOARD UMPER TRIGGER MODULE JUMPERS 2 cece cece eee cra nn NTERFACES MODULES JUMPERS cae ade we ea a oe Ra INTERFACES MODULE 5 MODULE MICROSWI TCHES BAUD RATE SELECTION IV QUICK REFERENCE
11. 2 O 10 5 lt m 9 10 8 0 7 1 gi 1079 247 pd 20 d RESOLUTION 500 kHz VFC 1079 4 yor NOISE LEVEL 24 1 10 Hz 10710 1075 1072 107 1 101 10 103 INTEGRATION TIME Sec 22 METROLAB Instruments SA General Storage temperature Operature temperature Max DC field Power Supply Packagi ng Di mensions Wei ght METROLAB Instruments SA 20 C to 70 C 0 C to 40 C 0 05 Tesla voltage 85 264 VAC frequency 45 440 Hz power 60W bench or 19 rack mounted 3 units hi gh Wx H x D bench 260 x 148 x 260 mm 5 5 kg bench unit one channel 23 24 METROLAB Instruments SA 5 I NSTALLATI ON AND CONNECTI ONS This chapter describes the installation of the PDI 5025 and its various modes of operation The PDI 5025 forms part of a complete measurement system When it is used to measure magnetic fields using a moving coil the elements of the measurement system will comprise one or two rotating coils an incremental encoder a DC motor with a reduction gear box a host computer this is obligatory A set of jumpers allows the PDI 5025 to be adapted to different measurement environments The following sections define on a module by module basis the function of each jumper To access the jumpers the user should remove the module from the chassis by unscrewing the retaining screw at the front of the instrument Refer to appendix IIl f
12. 34 lt is selected either by use of the GAIN button on the front pane or by the host computer with the SGA Set GAin command example SGA 100 set gain to 100 on channe B SGA 20 set gain to 20 on the active channel s The Gain button is used to increment or decrement the Gain value Press the button once to increment the gain Press twice in rapid Succession to decrement the gain If the button is held down the gain will increment continuously until the button is released We recommend that the gain is set in such a manner that the voltage displayed on the bargraph display is the highest possible without an over range being detected during the measurement cycle An over range condition is indicated by the OVR or OVR LEDs on the bargraph display The FNC button performs several functions that are listed below starts a measurement sequence if one over range indicator is on the first depression of the button clears the over range indicator the second will start the measurement sequence the button may also be programmed to generate an SRQ to the host computer IEEE 488 interface When two channels are active the FNC buttons are connected in parallel 6 4 Offset adjustment The user has the possibility to reduce the linear drift of the integrator by adjusting the voltage offset at the input The voltage offset depends greatly of the Gain value Therefore the offset should be adjusted each time a new Gain is set The
13. 42 This bit is set to 1 to indicate that STATUS 2 is not zero and that it should be read bit 6 This bit is always set to 0 bit 5 command error This bit is set to 1 each time that a command sent by the host is not syntactically correct either because the mnemonic is unknown or because one or more values are incorrect This error is also generated when a command is issued at a time when it is out of context bit 4 overrange error This bit is set to 1 each time that the input voltage of channel A or B reaches the positive or negative overrange threshold Note an overrange error has no effects before the first trigger when waiting for a Synchro signal or the absolute value of the first trigger for example After that an overrange condition aborts the measurement cycle immediately and corresponds to the receipt of a BRK command see section 7 2 7 The run abort can be disabled with the command NBO Status register 4 indicates which overange has occurred bit 3 End of RUN This bit is set to 1 at the end of each measurement sequence or after the receipt of a BRK command when the Trigger Source is External It does not mean that the conversion of all the measured data has been completed bit 2 Data Ready The precise instant at which this bit is set depends on the transmission mode selected by the I MD command a the continuous transmission mode 1 MD 1 this bit is set each time a value is availabl
14. 4800 8 1 LF AS 1 OPEN TEMPORARY FILE IN CURRENT DI RECTORY OPEN PDI BLOCK TMP FOR OUTPUT AS 2 RESET READ STATUS 1 AND 2 WE DO NOT CARE OF CONTENT SEND STB 1 GOSUB 1520 SEND STB 2 GOSUB 1520 SET PDI5025 5 PARAMETERS PRINT 1 BOTH CHANNELS SELECTE PRINT 1 SGA A 5 SET GAIN CHANNEL A PRINT 1 SGA B 200 GAIN CHANNEL B PRINT 1 TRS TRIGGER SOURCE TI ME PRINT 1 TRI 0 100 20 TRIGGER SEQUENCE PRINT 1 0 BLOCK TRANSFERT PRINT 1 0 I NDI VUDUAL VALUES x TS SA GENEVA L M JUNE 1991 000100 ARE EXECUTED 1 CUTED VIA D STRING IS SEND AND E INS ADDITION T AND UPDATES DIN 1 FALSE 0 CLS BITS 1 STOP BIT D DEFAULT F CANNEL B PRESENT R DEFAULT DEFAULT METROLAB Instruments SA 81 MANRSTBL BAS continued 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 110 780 790 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990 1000 1010 1030 READ 60 IF START PR I NFOR PR PR READ GO WH WE NFOR PR PR PA EXECU PR IN NP CHECK WH WAIT WA I NPUT PAUSE STATUS 1 AND CHECK COMMAND ERROR BIT SUB 1300 D STB1 3 1 lt gt 0 THEN GOTO 510
15. IN ADDITI ON OF THE READING THE SUBROUTINE CHECKS THE END OF RUN BIT AND UPDATES THE VARIABLE ENDRUN IF NECESSARY THE STATUS IS RETURNED IN VARIABLE STB1 INITIALIZATION OF LOCAL VARI ABLES MES 0 ENDRUN 0 VSA 0 VSB 0 CLS INITI ALI ZATION RS232C PORT 1 4800 BAUDS NO PARITY 8 BITS 1 STOP BIT OPEN COMI 4800 8 1 LF AS 1 RESET READ STATUS 1 AND 2 WE DO NOT CARE OF CONTENT SEND STB 1 GOSUB 1190 SEND STB 2 GOSUB 1190 78 METROLAB Instruments SA MANRST BAS continued 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 110 180 190 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 SET PR PR PR PR PR PR PR READ GO IF IN START PR NF OR PR PR READ 60 WH WE READ WH EXECU CHECK CHECK CHECK PRI NT READ WE IF RU IF DEFAU PR CL EN PDI5025 S PARAMETERS T 1 BOTH CHANNELS SELECTED T 1 SGA A 5 SET GAIN CHANNEL A T 1 56 B 200 SET GAIN CHANNEL B IF CHANNE T 1 TRS T TRIGGER SOURCE TIMER DEFA T 1 TRI 0 100 200 TRIGGER SEQUENCE T 1 1MD 1 DIRECT TRANSFERT DEFA T 1 CUM 0 I NDI VUDUAL VALUES DEFA STATUS 1 AND CHECK COMMAN
16. 1550 1560 1570 1580 1590 1600 1610 1620 1630 1640 1650 1660 1670 1680 1690 SUBRO UTINE TO EXECUTE A COMMAND WHICH REQUI RES A RESPOND FROM PD SEND TO PDI COMMAND SEND PR NT 1 SENDS ACCEPT DATA UNTIL CARRIAGE RETURN AND LI NE FEED FOUND OR 2 WH WAIT WA ADD WEN RET LE I NSTR IN CHR 13 CHR 10 0 AND INSTR IN CHR 26 0 NPASS 0 FOR DATA IN RS232 BUFFER WHILE EOF 1 55 5541 T TO LONG TRY AGAIN COMMAND NOT DECODED BY PDI 5025 IF NPASS gt 500 THEN GOTO 1550 WE ND PUT CHARACTERS TO STRING IN 1 N I NPUTS LOC 1 1 BUILD STRING I N D URN 84 METROLAB Instruments SA MANRSE BAS 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 VR KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KK KK K K K K K K K K KK K K K K K K K K KK KKK K K K x E METROLAB INSTRUMENTS SA GENEVA L M JUNE 1991 PRECISION DIGITAL INTEGRATOR PDI 5025 E x LANGUAGE BASIC INTERFACE R5232C x PDI 5025 INCREMENTAL ENCODER WITH INDEX MODE E DI RECT DATA TRANSFER x KEK KKK KKK K K K K KKK KKK KKK KKK K K K
17. 9 bit 3 Negative Overrange not ON Error This bit shows that the deliberate negative overrange was not detected during the autotest This is tested with an input voltage of 0 494V and a gain of 10 bit 2 Positive Overrange not ON Error This bit shows that the deliberate positive overrange was not detected during the autotest This is tested with an input voltage of 0 494V and a gain of 10 bit 1 Negative Overrange not OFF Error This bit is the opposite of bit 3 If it is set to 1 the overrange condition was detected when it was not present This is first tested with an input voltage of OV and a gain of 10 then with 0 494V and a gain of 5 bit 0 Positive Overrange not OFF Error This bit is the opposite of bit 1 If it is set to 1 the overrange condition was detected when it was not present This is first tested with an input voltage of OV and a gain of 10 then with 0 494V and a gain of 5 METROLAB Instruments SA 1 1 6 STATUS 7 Acquisition status This status represents the state of the PDI 5025 at the time of reading 2 10 4 Infinite Data Storage Sequence Transfer Mode Active Mode bits 7 6 5 Unused Always zero bit 4 Infinite Sequence Active This bit is set to 1 when an infinite trigger sequence is in progress An infinite sequence is selected with nj in the TRI command This bit is similar to bit 4 of Status 3 bit 3 Run Active Th
18. Each 1 in the SRQ Mask can be considered as a hole which allows the information in the STATUS 1 or 2 registers through to generate a 1 in the SRQ status register and thus generate a Service Request Exampl e bit 7 6 5 4 3 2 1 0 STATUS 1 1 0 0 1 1 0 0 1 SRQ Mask Register 0 1 0 0 1 0 SRQ status register 1 1 0 1 0 0 0 0 RQS bit To create a mask firstly determine which conditions must generate interrupts In this example the bits corresponding to the Trigger bit 1 and the Overrange Error bit 4 wil be active Next determine the octal code containing two digits for these conditions Finally output the MSK message followed by the two octal digits see also section 7 3 10 If any of the bits from STATUS 2 once masked is non zero then bit 7 of the SRQ status register is set to 1 thus indicating that the interrupt is due to a condition in STATUS 2 The Instruments SA 595 56 host computer must therefore read STATUS 2 to determine the exact cause of the interrupt When the value of the mask register is changed the SRQ status register is updated Note that the RQS bit can only be cleared by a SPOLL 1 3 9 The SRQ Status Register A Service Request is generated by the PDI 5025 when bit 6 05 is set to 1 This bit must be tested by the controller when it executes a serial poll The remaining bits allow the controller to determine the nature of the Service Request a 1 representing the active state The SRQ status register is
19. Floating analog GND Inserted to general GND 2 1 2 coil shield at mid 2 3 coil shield to 2 3 point of input voltage analog GND 13 Balanced input Unbalanced input Inserted Zin 2 Megohms Zin 1000 Megohms 4 adj ust ments Inserted 5 adj ust ments 1 2 6 Direct analog input Input filter Inserted 1 kohms cap 7 Direct analog input Input filter Inserted 1 kohms cap Note Modifications must be implemented by qualified personnel The user can only change the jumpers indicated with a in the USER SELECT column Blue j umpers WARNING The factory adjustments which are indicated with a in the FACTORY SELECT column must not be changed Red j umpers The jumpers J1 to J3 are located on the solder side of the module and are covered by the shield plate which must be removed to access the jumpers J4 J5 TP1 TP4 m 1 OCD IE C40 VS C11 gt e Ici3 Uds RN1 IC9 R15 RN2 70 METROLAB Instruments SA ON 10 3 5140 TRIGGER MODULE UMPERS J UMPER NSERTED NOT USER FACTORY FACTORY INSERTED SETTING 11 Encoder channel Encoder A channel 1 2 1 2 polarity 2 3 polarity 2 1 2 Index polarity 2 3 Index polarity id 1 2 J3 Board address 11 12 13 14 14 Ext synch polarity Ext synch polarity 1 2 1 2 fal
20. KKK RK KKK RR KKK K K KKK KK KK K K K K K K K K GG K K K K K KK KK PDI S FRONT PANEL MICRO SWITCHES SETTING 1 to 10 1011000000 EXECUTES A RUN IN ENCODER MODE ACCEPT 1 OR 2 CHANNELS PDI S COMMANDS ARE SENT TO PDI IN TWO DIFFERENT WAYS 1 COMMANDS WHICH DO NOT REQUIRE A RESPOND FROM PDI ARE EXECUTED DIRECTLY BY WRITING CORRESPONDING STRING IN UNIT 1 EXAMPLE PRINT 1 TRS T 2 COMMANDS WHICH REQUIRE A RESPOND FROM PDI ARE EXECUTED VIA 3 THE SUBROUTINE LINE 1320 IN THIS CASE THE COMMAND STRING 15 PASSED TO THE SUBROUTINE WITH THE STRING VARIABLE SEND AND THE RESPOND OF THE PDI 15 RETURNED IN THE VARIABLE IN EXAMPLE SEND STB 2 60508 1320 STB2 IN THE READING OF STATUS 1 IS DONE BY THE ROUTINE LINE 1100 IN ADDITION OF THE READING THE SUBROUTINE CHECKS THE END OF RUN BIT AND UPDATES THE VARIABLE ENDRUN IF NECESSARY THE STATUS IS RETURNED IN VARIABLE 5 1 INITIALIZATION OF LOCAL VARI ABLES I MES 0 ENDRUN 0 VSA 0 VSB 0 CLS INITI ALL ZATION RS232C PORT 1 4800 BAUDS NO PARITY 8 BITS 1 STOP BIT OPEN COM1 4800 N 8 1 LF AS 1 RESET READ STATUS 1 AND 2 WE DO NOT CARE OF CONTENT SEND STB 1 60508 1320 SEND STB 2 GOSUB 1320 SET PDI5025 5 PARAMETERS PRINT 1 CHA BOTH CHANNELS SELECTED DEFAULT PRINT 1 56A A 5 SET GAIN CHANNEL A PRINT 1 SGA B 200 SET GAIN CHANNEL B IF CHANNEL B PRESE
21. OFFSET ADJUSTMENT mode facilitates this operation This mode puts the integrator into an infinite trigger sequence using a 300 ms continuous integration period with the values being shown on the front panel display The values are displayed in units of resolution of the integrator for the selected gain and VFC for gain 1 to 100 or twice this resolution for gain 200 to 1000 Therefore for the 500 kHz VCO the displayed unit is METROLAB Instruments SA Gain Units 10 8 vs The OFFSET ADJUSTMENT mode is selected either by simultaneously depressing both buttons GAIN and FNC or by the host computer sending the ADJ command Only one channel at a time can be set in the OFFSET ADJUST mode The other channel if present is disabled and cannot be accessed The selected channel does not respond to such commands as SGA and BRK To leave the OFFSET ADJUST mode either push one of the two buttons or use the ADJ command from the host computer The integrator then returns to its previous state Warning in the case of an encoder with an index the absolute position of the index is lost and has to be reinitialized with the I ND command 6 5 Integrator Mode The Integrator Ti mer mode TRS T which is the default at power on is generally used with fixed coil configurations to analyse time dependent flux variations The Integrator Displacement encoder mode TRS E is used with moving coil configurations to analyse space dependant
22. Programmable gain Integration interval Ext trigger Synchronization Encoder METROLAB Instruments SA 1 or optionally 2 which are triggered Simultaneously 5V divided by Gain 5V to 5mV depending on Gain setting 45V DC will drain 28mA 600V during 100us will drain 1A 12V vs connector shield 500V vs ground when the floating mode is set balanced vs floating ground 2 x unbalanced 1000MQ the connector shield can be driven at the average voltage of the and inputs preamplifier gain is programmable in the steps 1 2 5 10 20 50 100 200 500 1000 resolution one or two channels 1ms ti mer or 1 pulse encoder minimal time between two triggers 1 all modes maximum value limited by counter capa city 223 5 or encoder pulses TTL not debounced rising or falling edge with internal pull down or pull up resistors respectively jumper selectable parallel to the trigger generated by the 5140 TTL debounced rising or falling edge with internal pull down or pull up resistors respectively jumper selectable 2 UP DOWN counter channels 90 dephased and 1 index channel Polarities are jumper selectable The maximum frequency on the encoder input is 106 cycles s 19 4 2 Outputs Computer interfaces EEE 488 and RS 232 Output buffer 5200 results can be accumulated during the measurement sequence prior to being transmitted to the host compute
23. S CUMulative or individual
24. SA 9 APPENDIX II COMMAND REFERENCE GUI DE SYNTAX DEFAULT MNEMONI C PAGES SYNTAX DEFAULT MNEMONI C PAGES CHA A EX CHAnnel 33 59 MD 1 MeDiate or 48 62 CHA B MD 0 block data trans 49 62 CHA ENQ ENQuiry 62 TRS T MEX TRigger Source 37 59 mer FPT n Front Panel 39 63 Trigger TRS T S TRigger Source 37 59 Timer Synchro STH d read STatus Hex 41 63 TRS E TRigger Source 39 59 STB d read STatus Bin Encoder DSP i xxxx send char to 63 TRS E 5 TRigger Source 38 59 Dior ay Encoder Synchro VER Software VERsion 63 TRS E d d TRigger Source 31 59 rotational CVR i Clear oVeRrange 63 Encoder TRS X TRigger Source 39 59 RGA i Read GAin 63 eXterna RCT Read CounTer 64 TRS X S TRigger Source 39 59 eXternal Synchro ZCT Zero CounTer 64 TRI S a n1 Cl n2 C2 n20 C20 gger sequence NBO 0 Not Brk Overrange 64 TRI Returns a string 60 NBO 1 containing the current values of TST perform TeST 51 64 the sequence AUT d AUTo test 51 64 56 i d d Set GAin 33 60 err on SGA 10 The default Gain at power on 10 ISC i 0 Input Short Circ 52 65 ADJ i 1 ADJ ust offset 34 60 1SC i 1 ADJ 0 or ADJ i 0 stop ADJ ust mode FNC 1 button 33 65 IND 5 NDex 27 38 FNC 0 FuNCtion 60 MOT s MOTor 51 61 LLO 0 Local LOckout 65 5 TER MOTor Stop
25. TO STATUS REGISTERS 12 APPENDIX V SOFTWARE EXAMPLES 1 NTRODUCTI ON The Precision Digital Voltage Integrator Model PDI 5025 forms part of a system for the measurement and analysis of magnetic fields In this system the PDI 5025 is connected to one or two sense coils and a host computer that may be a minicomputer a personnel computer PC or a simpler device such as the pocket computer by Psion The host computer initializes the PDI 5025 for a definite series of measurements then collects the results and performs the required data analysis The main functions of the PDI 5025 are the integration of the pick up coil voltage relative to the interna ti me base or mechanical preset increments angular or linear generated by the motion of the pick up coil steering a DC motor for rotational or linear motion of the coil and monitoring its position with an incremental encoder transmission of the results to the external computer The PDI 5025 front panel houses all the instrument s connectors with the exception of the power connector the Gain and Level displays the buttons for local commands and the microswitches for setting the communications parameters with the host computer AIl other commands must be generated fromthe host via the computer interface The PDI 5025 can be packaged either in a bench top case or a 19 3U modular chassis for rack mounting Internal sub functions are performed in modular plug in units equipp
26. and displaying input values in multiples of the resolution values given in the table in section 2 1 3 on the front panel Then adjust the offset potentiometer so that the displayed value is as close to zero as possible METROLAB Instruments SA 4319009300140 KV SINANAXNSVWAW 40 110534 SINI 5300 LI ntegrator 5150 PDI figure 3 nstruments SA lt ee ON4 lt 91 NOLLO3T3S lt S39vsSdA NIVO AV1dSlQ 51 gt NOII23T3S va MOIVA3N3O 399lMl Ov1S WOj 8359lML an 7 MOSS32OMdDMOIA WOX gt p q dod ES NOILO313Q MOSS300MdOMOIW uil3W n yo st 0001 1 JANG M S9NILL3S quis 2 mew du P T g OHS ___ Y E 74 P z 5ooc o rE CD 193 ae TIAN 145440 SH3lNnOO 508 c METROLAB 12 5140 Trigger Module unit consists of one Euroboard card and performs the functions described below 3 2 1 Ti mer The timer driven by a precision quartz os
27. and overrange thresholds Ten microswitches situated on the front panel of the 5120 module control the configuration of the 1 0 ports METROLAB Instruments SA 15 16 SOFTWARE TRIGGER x NW _ C5 Ll Y I PS gt gt Q De A 00 ME Ga lt TERN Q RENE N N uU o9 eyv 98 48 NZ 2 x 28 8 figure 5 PDI 5130 Microprocessor and Interfaces METROLAB Instruments SA 3 3 2 RS 232 Port The RS 232 C interface can be used in a variety of configurations The microswitch definitions can be found in section 5 8 The principal functions that can be selected are baud rates from 300 to 4800 9600 19200 hardware handshake software handshake X ON X OFF 7 or 8 bit word length number of stop bits presence and nature of parity bit The last microswitch selects the normal conversational mode or an autonomous mode in which the instrument outputs measurement data at is own rate In this case the trigger period is set to 300 ms in continuous mode The RS 232 works in Full Duplex mode 3 3 3 EEE 488 Port The first five microswitches on the front panel are used to define the instruments IEEE Device Address The microsw
28. are integrated each for 1 second These voltages are given below Voltage Gain 0 10 0 494 10 0 494 10 10 494 5 0 494 5 The results of the above measurements are verified as well as the correct operation of the over range indicators Status bytes 5 and 6 indicate any error conditions that have been detected The results of the autotest made be accessed via the AUT command During the autotest the word Test is displayed on the 5150 module At the end of the test the 5150 will either show a gain of 10 with the channel indicator A or or if an error has been detected the word Fail will be displayed During the autotest the PDI 5025 does not process any communications with the host Thus any messages sent will be ignored 6 2 Channel Selection The PDI 5025 can be equipped with a second channel the standard unit is with a single channel These two channels are always triggered in parallel Measurements can be performed with either channel A channel B or both channels simultaneously The CHA command selects the active channel or channels A Command Error bit 5 of status 1 set to 1 will be generated if the PDI 5025 is equipped with only one channel In other words this command is valid only for PDI 5025 with two channels 6 3 Gain Selection and FNC Button The gain of each channel can be independently set to any of the following values 1 2 5 10 20 50 100 200 500 1000 METROLAB Instruments SA 35
29. host computer to drive a motor that is synchronised with the measurements On the motor socket two pins correspond to the direct motor connection according to the programmed sequence the output voltage between these pins may be 0 12V or 12V for forward FW or backward BW motion An internal jumper may METROLAB Instruments SA METROLAB convert these outputs in z24V if required The maximum output current is actively limited to 500mA If this current is insufficient two other pins in this Socket which deliver TTL signals for the forward FW or backward BW orders may control an external power supply to drive the motor An additional feature of these pins is that they may be used if short circuited to ground as controls for the interna motor power supply This allows manual control of the motor for mechanical trimming of the coil displacement mechanism Instruments SA 1 3 NOLLIVHO31NI OSLG OL ASOONAL 135 YOLVYVdNOO V 1 lt CO T SyO1VelvdWoo OOo 2zrum M3INnoo 18 pZ HOV 135 Y4LNN0 19 gt ILL 1OMINOO s gt gt e NOLWZINOYHONAS IVNH31X3
30. on state it is completely reinitialised During this time about 2 seconds it cannot process any communications Thus following a DCL the host should wait 2 seconds before sending another command to the instrument METROLAB Instruments SA ME TROLAB 1 3 7 Service Request SRQ An important feature of the PDI 5025 is its ability to interrupt the host computer when certain conditions occur When a service request is sent the controller must first determine which instrument instigated the demand This operation is carried out by a serial poll spoll of each device connected to the bus capable of generating a Service Request When the instrument is polled it replies with the contents of its SRQ status register which indicates if it is the originator of the Service Request and if so the nature of the request The above sequence supposes that the controller is programmed to receive the SRQ interrupts If one or more of the bits in the SRQ status register are set to 1 then the Require Service RQS bit will be set This causes a request for service to the controller However as soon as the Require Service bit is set the PDI 5025 puts the SRQ line of the IEEE bus true which in turn causes an interrupt in the controller STATUS registers 1 and 2 seen through the SRQ masks are used to derive the SRQ status register 1 3 8 Setting the SRQ Masks The SRQ Masks can only be applied to bits 0 to 5 of STATUS 1 and STATUS 2
31. on the SYNC input to start the measurement cycle Instruments SA 53 54 The IEEE 488 Interface Commands 1 3 1 The REMOTE Command PDI 5025 is always in the REMOTE mode and does not therefore react to the REN line Thus it is unnecessary to place the instrument in the REMOTE mode in order to send it messages 2 2 LOCAL LOCKOUT Command The 488 command LOCAL LOCKOUT LLO disables the front panel buttons on the 5150 module only the GTL LOCAL command can reactive these buttons 1 3 3 The GO TO LOCAL Command Normally the 488 Go To Local GTL command forces device to return to its LOCAL state when it has been placed in the REMOTE state As the PDI 5025 is always in the REMOTE state the GTL has no effect on the instrument other than to enable the front panel buttons that have been disabled by a previous LOCAL LOCKOUT LLO command 1 3 4 The GROUP EXECUTE TRIGGER Command The EEE 488 Group Execute Trigger GET forces synchronisation by the host computer Before it can be used the GET must be enabled by the SYN 1 command see section 722401027 1 3 5 The INTERFACE CLEAR Command This command aborts the present communication and frees the bus The instrument is unaddressed 1 3 6 The DEVICE CLEAR Command This command DCL resets the instrument to its power on state whether or not it is addressed Warning As the instrument goes to its power
32. on the market The timing diagrams below give the positions of these jumpers for the four possible configurations of the three input signals 21 on 1 2 42 on 1 2 Jl on 2 3 J2 on 1 2 21 on 1 2 42 on 2 3 Jl on 2 3 J2 on 2 3 If an index signal is not used then pin 4 of the Lemo connector must be left open and jumper J2 placed on pins 2 3 The position of jumper 115 not important 28 METROLAB Instruments SA 5 4 5140 Trigger Module External Synchronisation The SYNC input allows measurement sequences to be started by an external TTL or open collector signal This input is debounced so that the signal can be generated by a mechanical switch The jumper J4 is used to select the active edge of the synchronisation pulse 4 on 1 2 Synchronisation on falling edge 40kQ pull up resistor J4 on 2 3 Synchronisation on rising edge 40kQ pull down resistor 5 5 5140 Trigger Module Motor The 4 pin Lemo connector marked MOTOR is used to power an optional DC motor or to control an external power supply which in turn drives the motor pin 1 TTL out Motor command in pin 2 TTL out Motor command in pins 3 and 4 12V or 24V between pins 3 and 4 limited to 500mA shield ground up Front view If the motor is connected to pins 3 and 4 connecting pin 1 to ground will drive the motor in the positive sense while connecting pin 2 to ground will drive the motor in the n
33. one If an overrange occur during the measurement the returned value is 0 with an exclamation mark between the last digit and the channel descriptor e g O A TST This command allows the PDI 5025 channel or TeST channels to be tested automatically Following this command the state prior to its execution is restored n the case of an encoder with index the position of the index is lost and has to be reinitialized with the I ND s command AUT Returns test measurements AUTo test The command sends the block of 5 measurements calculated during the automatic test performed following the power on sequence or by the TST command 64 METROLAB Instruments SA SYNTAX DEFAULT DESCRI PTI ON MNEMONI C ISC i 0 NUS Internal short circuit of channel OFF Input Short Circ SC Internal short circuit of channel i ON i Bor means both channels Note if i is omitted the command will be executed on the active channel or channels The ISC short circuits the input of the 5150 integrator channel However the short circuit is made using an analog switch which is not as effective as one made by directly shorting the inputs FNC 1 E Definition of the front panel FNC switch FuNCtion FNC 1 defines the FNC button as equivalent to a RUN command starting a measurement sequence Note if an overrange LED has been lit the first depression of the FNC switch clears it and a second depression will start the measurement sequen
34. r n both channel selected default xj write SCA A 5Arin gain channel A write SGA B 200 r n gain channel B if present write pdi TRS E 360 r n trigger source rotaional encoder write pdi TRI 0 30 12 r n trigger sequence write MOT A r n automatic start and stop for motor write pdi IMD 1 r n direct transfert write O r n individual values do write pdi STB 1 r n read status 1 while nchar read pdi pointer while pointer 2 1 if error try again initializes encoder index position printf initializes encoder position n write pdi DSP 1NDX r n write I ND r n wait for synchro bit 1 in status 1 do do write pdi STB 1 r n while nchar read pdi pointer while pointer 7 1 synchro bit printf index found n write pdi DSP r n 96 METROLAB Instruments SA MANRSE C continued start run printf press ENTER to start scanf c dummy write pdi RUN r n write pdi DSP RUN r n read status 1 do write pdi STB 1 r n while nchar read_pdi pointer if pointer 4 1 endrun 1 end of run bit read data one at time do wait for data ready bit 1 in status 1 do do write _pdi STB 1 r n
35. to the host computer in a 32 bit digital signal with a sign bit in numerical integer form expressed in 10 8 Volt seconds units the case of a magnetic field measurement with a coil of N turns and a surface area of S in m the voltage generated is given by the formula 4 METROLAB Instruments SA ME TROLAB Vi N d9 dt where B S Scalar product The next section describes the successive operations of the 5150 Integrator unit and the software calculations performed by the instrument 2 1 2 Model 5150 Integrator and signal conditioning The coil voltage Vi is first amplified in the preamplifier whose gain will be called G Then the voltage V1 Vi G which must be within the 5V range is shifted by a 5V reference value in order to ensure that the resulting voltage Vz is always positive is applied to the whose input range is 0 to 10V for the output frequency of 0 to Fn Fn the maxi mum frequency of the VFC corresponding to a 10V input may have 3 values depending on the different configurations of the 5150 Integrator unit 100KHz 500KHz or I1MHz We shall call the current output frequency of the VFC corresponding to the Vz input F having a value between 0 and Fn hertz In parallel the VFC generates a reference frequency Fr whose value is 2Fn This frequency represents 4 times the VFC output frequency for 5V input voltage V5 which corresponds to a OV coil voltage Vi The two
36. trigger signals are ignored The bit 3 of Status 1 End of Run is set to 1 During a measurement cycle the external trigger can be disabled by the command 0 To reenable the externa trigger the command FPT 1 must by executed Note the FPT command does not terminate the measurement that is in progress as does the BRK command In the same way as the Timer mode a measurement sequence can be initiated by an external synchronisation signal To select this mode use the TRS X S This works in manner described above except that the trigger signals are disabled until the first external synchronisation pulse occurs this is fed to the SYNC input of the 5140 module that follows the RUN command Any following external SYNC signals are ignored 6 6 4 Fluxmeter Autonomous Talker only mode the Fluxmeter Autonomous Talker only mode the PDI 5025 performs a continuous measurement with a defined period at Instruments SA 39 40 the end of which a cumulated flux measurement is available This value is updated continuously This mode can be used to get relative magnetic field measurements this mode pressing the FNC button sets the cumulated measurement to zero An over range condition causes the PDI 5025 to stop its measurement cycle To resume the measurements the RUN command must be issued by the host computer or the FNC button must be pressed twice the first time to clear the over range error condition and the s
37. with 10 ppm accuracy The non linearity is balanced for the input voltage 0 4V and 0 4V Noise Noise 0 1Hz to 10Hz referred to input Gain ppm of input range 1 10 1 10 1 51 100 50 3 t3 1000 t0 2 20 ME TROLAB Instruments SA 21 Resolution and maxi mum range Gain C 1 2 5 10 20 50 100 200 500 1000 40 40 40 40 40 40 40 20 40 20 100KHz 10000 1100001 5000 2000 1000 500 200 100 50 20 10 40 40 40 40 40 40 40 20 40 20 300KHz 50000 1120001 1000 400 200 100 40 20 10 4 2 40 40 40 40 20 40 20 10 20 10 1MHz 100000 119000 500 200 100 50 20 10 5 2 1 In each box in the table the lower number gives the resolution in units of 10 8Vs and the upper number the maximum range in Vs The resolutions only depend on the timing of the reading of the integration counters and on the calculation algorithm evaluate the global resolution of a measurement the input noise must be taken into account The following diagram shows the measurement domains at different gains hatched G 10 and the noise levels 10 _ 40 VS MAX COUNTER FULL 10 4 z INPUT VOLTAGE Y 2 4 5 1071 gt oO P4 S gez 5 1073 3 1074 5 S
38. with two 5150 Integrator modules they are assigned to channels A and B respectively This assignment is independent of their location in the chassis The effective assignment can be seen just after Power on on the GAIN display following the autotest If necessary the user may change the assignment of each 5150 Integrator module by repositioning the internal jumper 2 See section 10 2 The other jumpers must not be moved as this may make the module inactive the red jumpers must not be moved only the blue ones are user configurable METROLAB Instruments SA 21 5 3 5140 Trigger Module Encoder Connections The 5 pin Lemo connector marked ENCODER is used to connect an incremental encoder to the module The pinouts are shown below pin 1 ground pin 2 channel TTL or open collector pin 3 channel B TTL or open collector pin 4 index TTL or open collector pin 5 5V 500mA output not limited shield ground Front view Warning the current consumption is not limited Care has to be taken to avoid over Current and short circuit conditions Channel A must be by definition that which is in phase with the index 1 pulse see below Channels A and B are dephased by 90 depending on the sense in which the encoder is rotating The index pulse supplied to channe fixes the reference point for the movements which follow Jumpers 1 and J2 are used to normalise the signals of most common encoders found
39. 0 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 VR KKK KKK OE KC KKK KKK KKK KKK KKK KKK KKK K K K K K K KK KK K K KK KKK K KKK KK K K x eT METROLAB NSTRUMEN PRECISION DIGITAL INTEGRATOR PDI 5025 Wk LANGUAGE GW BASI C NTERFACE RS232C PDI 5025 TIMER MODE BLOCK DATA TRANSFER KKK KKK KKK KKK KKK KKK KKK KKK RR K K K K K K KKK KKK KKK K K K K K K EG K KKK KK x PDI S FRONT PANEL MICRO SW TCHES SETTING 1 to 10 1011 EXECUTES A RUN IN TI MER MODE ACCEPT 1 OR 2 CHANNELS PDI S COMMANDS ARE SENT TO PDI IN TWO DIFFERENT WAYS 1 COMMANDS WHICH DO NOT REQUIRE A RESPOND FROM PD DIRECTLY BY WRITING CORRESPONDING STRING IN UNIT EXAMPLE PRINT 1 TRS T 2 COMMANDS WHICH REQUIRE A RESPOND FROM PDI ARE EXE 3 THE SUBROUTINE LINE 1520 IN THIS CASE THE COMMAN PASSED TO THE SUBROUTINE WITH THE STRING VARI ABLE THE RESPOND OF THE PDI 15 RETURNED IN THE VARI ABL EXAMPLE SEND STB 2 GOSUB 1520 STB2 THE READING OF STATUS 1 IS DONE BY THE ROUTINE LINE 1300 OF THE READING THE SUBROUTINE CHECKS THE END OF RUN THE VARIABLE ENDRUN IF NECESSARY THE STATUS 15 RETURNE VARIABLE 5 1 INITIALIZATION OF LOCAL VARI ABLES I MES 0 ENDRUN 0 VSA 0 VSB 0 TRUE INITI ALL ZATION RS232C PORT 1 4800 BAUDS NO PARITY 8 OPEN COMI
40. 0 890 900 910 920 930 940 950 960 970 980 990 1000 1010 SET PDI5025 S PARAMETERS OUTPUT CHA BOTH CHANNELS SELECTED DEFAULT OUTPUT 56 A 5 SET GAIN CHANNEL A OUTPUT Pdi SGA B 200 ISET GAIN CHANNEL B IF CHANNEL B PRESENT OUTPUT Pdi TRS E 360 I TRIGGER SOURCE TIMER DEFAULT OUTPUT TRI 0 10 200 TRI GGER SEQUENCE OUTPUT MOT A AUTOMATIC START AND STOP FOR MOTOR OUTPUT I MD 1 DIRECT TRANSFERT DEFAULT OUTPUT Pdi CUM 0 I NDI VUDUAL VALUES DEFAULT OUTPUT Pdi MSK 1 10 MASK END OF RUN BIT ACTI VE READ STATUS 1 AND CHECK COMMAND ERROR BIT GOSUB 1170 IF Stb1 3 1 0 THEN GOTO 590 INITI ALL ZES INDEX POSITION OF ENCODER OUTPUT I ND OUTPUT Pdi DSP I NDX WAIT FOR SYNCHRO BIT 1 IN STATUS 1 GOSUB 1170 WHILE Stb1 8 1 lt gt 1 GOSUB 1170 END WHILE OUTPUT Pdi P RINT INDEX FOUND PUT PRESS ENTER TO START RUN Dummy ISTART RUN WI TH COMMAND RUN OUTPUT Pdi RUN INFORM USER THAT RUN STARTED OUTPUT Pdi DSP RUN PRINT RUN N PROGRESS WAIT UNTIL END OF RUN Npass 0 Npass Npasstl GOTO 890 READ DATA UNTIL DATA READY BIT IN STATUS 1 IS 0 GOSUB 1170 WHILE Stb1 6 1 1 I GET DATA FROM PDI 5025 TER Pdi ln CHECK IF END OF DATA Z ASCII 26 POS In CHR 26 lt gt 0 THEN GOTO 1120 CHECK IF DATA FROM CHANNEL B IF POS In B z0 THEN
41. 1 byte 4 2 Overlap Ti meout 10 4 STATUS 4 Infinite Forwards Sequence or Backward S PDI module 5130 1 byte 5 1 0 20 2 1 type gt type gt Overrang Overrang Overrang Overrang e e Channel Channel STATUS 5 channel A and 6 channel Autotest 2 bytes 4 10 STATUS 7 Error in Analog Measure Acquisition status 4 2 10 4 METROLAB Infinite Data Sequence Active Transfer Active Mode Instruments SA Storage Mode 75 76 METROLAB Instruments SA 12 APPENDIX SOFTWARE EXAMPLES This appendix gives several listing to illustrate how the PDI 5025 can be programmed Examples are for GW Basic HP Basic and C HARDWARE LANGUAGE INTERFACE DESCRIPTION PAGES GW BASIC RS 232c TIMER MODE DIRECT DATA TRANSFER 78 GW BASIC RS 232c TIMER MIDE BLOCK DATA TRANSFER 81 PC XT AT GW BASIC RS 232c INCREMENTAL ENDODER WITH INDEX DIRECT DATA TRANSFER 85 GW BASIC IEEE 488 GPIB INCREMENTAL ENCODER WITH INDEX DIRECT DATA TRANSFER 88 hp COMPUTER HP BASIC IEEE 488 HPIB INCREMENTAL ENCODER WITH INDEX DIRECT DATA TRANSFER 92 200 300 series C QUICK C RS 232 INCREMENTAL ENCODER WITH INDEX DIRECT DATA TRANSFER 95 METRO
42. 25 has seven internal status registers that be accessed by the user These registers can be used to interrogate the instrument on its current state Each status register contains eight bits and can be read by the host computer in two different formats either in hexadecimal or binary The registers are numbered 1 to 7 To read a status register the host computer must either of the commands shown below STH n where n n 1 to 7 is the number associated with the status register if n is omitted then the value of 1 is assumed This command generates a two character reply representing the value of the status register in hexadeci mal STB where n n 1 to 7 is the number associated with the status register if n is omitted then the value of 1 is assumed This command generates an eight character reply 0 or 1 representing the value of the status register in binary The first character in the string corresponds to the most significant bit of the status register and the eight character to the least significant bit The detail of the seven status registers is given in the following sections 1 1 1 STATUS 1 Measurement Status 1 byte bit 7 5 hex 80 20 10 STATUS Command Overrang Trigger Synchro 0 Error e FLAG Error This status byte is cleared when it has been read except for bit 7 which is only cleared once STATUS 2 has been read bit 7 STATUS 2 flag METROLAB Instruments SA 41
43. 408050 B 0 494 5 49390300 A 0 494 5 In the case of the IEEE 488 interface the above data in the left hand column including the title are not separated by a CR LF but semicolons Warning It is essential that during the autotest nothing is detected on or fed to the TRIG input of the 5150 modules 1 2 10 Internal Short Circuit ISC To adjust the offset of the 5150 module it is possible to short circuit the measurement coil In the PDI 5025 this can be achieved by executing the I SC command The format of this command is shown below ISC c n where c is the channel A or B n is 0 to open circuit the coil or 1 to short circuit it c can be omitted in this case the command effects al active channels Exampl es ISC B 1 short circuit the input of channel B ISC 0 open circuit the input on all active channels METROLAB Instruments SA ME TROLAB The short circuit is made by a semi conductor analog switch and does not represent a real short circuit due to the smal residual resistance in the switch This fact must be taken into consideration when working with very high precision measurements 1 2 11 Synchronisation by the Host Computer SYN As already mentioned in section 6 6 it is possible to synchronise a sequence of measurements with an external event This can be either a signal supplied to the SYNC input of the 5140 module or it may be a command generated by the host computer This command
44. 65535 or Ci is the size of the integration intervals of the i subsequence given in number of counts of the 5140 module 1 to 223 The max number of subsequences is 20 Note an integration interval is defined by two consecutive trigger signals The second signal also starts the next interval meaning that there is no dead time between each integration intervals TRI Returns a string containing the current values of the sequence SGA i d d Sets the Gain of the 5150 module channel Set GAin Bor means both channels d d is the value of the Gain the leading zeroes can be omitted SGA 10 ERR The default Gain at power on is 10 Note if the channel designation is omitted the Gain is set on the active channel or channels ADJ 1 1 set the selected channel in OFFSET ADJUST mode ADJ ust ADJ 0 or stop the OFFSET ADJUST mode on the activated ADJ i 0 ADJ 0 or selected 4DJ i 0 channel If the selected channel is not in OFFSET ADJUST mode the command is ignored This command facilitates the adjustment of the input offset by running an infinite trigger sequence of 300ms and displaying the values on the front panel of the PDI 5025 See section 3 1 5 for a description of the displayed units The OFFSET ADJ UST mode can also be selected by pushing both buttons GAIN and FNC simultaneously Bits 5 6 7 of Status 3 are set to 0 0 0 while the OFFSET ADJ UST mode is selected ND s S forward direction ND
45. 90 CHECK IF DATA FROM CHANNEL B 900 IF 1 NSTR I N B 0 THEN GOTO 940 910 VAL LEFT IN 1 NSTR INS B 2 VALUE CHANNEL B 920 GOTO 1010 930 CHECK IF DATA FROM CHANNEL A 940 INSTR I N A 0 THEN GOTO 1010 950 VSA VAL LEFT INS I NSTR INS 2 VALUE CHANNEL A 960 MES MES41 OF MEASURMENT 970 PRINT VALUES 980 FORMAT CHA A CHA 10 8 Vis 990 PRINT USING FORMAT MES VSA VSB 1000 READ STATUS 1 IN ORDER TO CHECK DATA READY BIT IN WHILE LOOP 1010 GOSUB 1100 1020 WE ND 1030 RUN NOT FINISHED START WAITING AGAIN FOR DATA READY BIT 1040 IF ENDRUN 0 THEN GOTO 780 1050 DEFAULT DISPLAY ON PD 1060 PRINT 1 DSP 1070 CLOSE 1 1080 END 86 METROLAB Instruments SA MANRSE BAS continued 1090 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250 1260 1270 1280 1290 1300 1310 1320 1330 1340 1350 1360 1370 1380 1390 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 SUBRO CHECK IF RUN F EN I NFOR PR PR CHECK IF I NFOR PR PR IN CLEAR PR 60 RE SUBRO SEND PR WH WAIT WA ADD WEN RET UTI TO READ STATUS 1 AND CHECK END OF RUN BIT ND STB 1 GOSUB 1320 815 N END OF RUN BIT 1D STB1 5 1 lt gt 1 THEN RETURN SHED DRUN 1 USER THAT RUN IS OVER AND READING CONTI
46. ASCII 26 1090 IF INSTR IN CHR 26 lt gt 0 THEN GOTO 1260 1100 CHECK DATA FROM CHANNEL B 1110 INSTR I N B 0 THEN GOTO 1150 1120 VSB4 VAL LEFT INS I NSTR INS B 2 VALUE CHANNEL B 1130 GOTO 1220 1140 CHECK DATA FROM CHANNEL A 1150 STR IN A 0 THEN GOTO 1220 1160 VSA VAL LEFT IN 1 NSTR IN A 2 VALUE CHANNEL A 1170 MES MES 1 OF MEASURMENT 1180 PRINT VALUES 1190 FORMAT CHA A CHA B 10 8 Vis 1200 PRINT USING FORMAT 1 MES VSA VSB 1210 READ STATUS 1 IN ORDER TO CHECK DATA READY BIT IN WHILE LOOP 1220 GOSUB 1310 1230 WE ND 1240 RUN NOT FINISHED START WAITING AGAIN FOR DATA READY BIT 1250 IF ENDRUN 0 THEN GOTO 990 1260 DEFAULT DISPLAY ON PD 1270 SEND DSP CALL BWRT PDI SEND 1280 CLOSE 1 1290 END 1300 1310 SUBROUTINE TO READ STATUS 1 AND CHECK END OF RUN BIT 1320 1330 SEND STB 1 GOSUB 1530 1340 STB1 I N 1350 CHECK END OF RUN BIT 1360 IF MI D STB1 5 1 lt gt 1 THEN RETURN 1370 FI NI SHED 1380 ENDRUN 1 1390 INFORM USER THAT RUN IS OVER AND READING CONTI NUES 1400 PRINT RUN FINISHED READING CONTI NUI NC 1410 SEND DSP READ CALL BWRT PDI SEND 1420 CHECK OVERRANGE ERROR BIT 1430 IF MI D STB1 4 1 lt gt 1 THEN RETURN 1440 NFORM USER THAT OVERRANGE OCCURED 1450 PRINT ATTENTION OVERRANGE OCCURED RUN STOPPED 1460 SEND DSP
47. D ERROR BIT SUB 970 D STB1 3 1 lt gt 0 THEN GOTO 490 PUT PRESS ENTER TO START RUN DUMMY RUN W TH COMMAND RUN T 1 RUN USER THAT RUN STARTED T 1 DSP RUN T RUN IN PROGRESS STATUS 1 AND WAIT UNTIL DATA READY BIT IS 1 SUB 970 LE MID STB1 6 1 lt gt 1 GOSUB 970 D DATA UNTIL DATA READY BIT IN STATUS 1 IS 0 LE MI D STB1 6 1 1 TE ENQ COMMAND TO GET DATA SEND ENQ GOSUB 1190 F END OF DATA 7 ASCII 26 INSTR I CHR 26 lt gt 0 THEN GOTO 920 F DATA FROM CHANNEL B INSTR I NS B 0 THEN GOTO 810 VSB VAL LEFTS INS INSTR INS B 2 VALUE CHANNEL B GOTO 880 DATA FROM CHANNEL A IF STR IN A 0 THEN GOTO 880 VSA VAL LEFTS INS INSTR INS A 2 VALUE CHANNEL A 5 MES 1 OF MEASURMENT VALUES FORMAT CHA A PRINT USING FORMAT MES VSA VSB STATUS 1 IN ORDER TO CHECK DATA READY BIT IN WHILE LOOP GOSUB 970 D NOT FINISHED START WAITING AGAIN FOR DATA READY BIT ENDRUN 0 THEN GOTO 650 LT DISPLAY ON PD NT 1 DSP OSE 1 D LT L B PRESENT ULT ULT ULT 10 8 V s METROLAB Instruments SA 79 MANRST BAS continued 960 970 SUBROUTINE TO READ STATUS 1 AND CHECK END OF RUN BIT 990 1000 1010 1020 1030 1040 1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250
48. EXECUTE A COMMAND WHICH REQUIRES A RESPOND FROM PD 1420 lt 55 1430 SEND TO PDI COMMAND SEND 1440 OUTPUT Pdi Send 1450 ENTER 1460 RETURN 1470 1480 SRQ SERVICE ROUTI NE 1490 1500 S SPOLL Pdi 1510 IF 5 0 THEN RETURN NOT PDI GENERATED 580 1520 INI TL ATES DATA READING 1530 GOTO 910 1540 RETURN 1550 END 94 METROLAB Instruments SA MANRSE Jx KK K K K K K K K K K K K K K K K K K K K KKK KKK KKK K K K KK K K K K K K K K K K K K K K K K KK KK KK K K KK K KKK K K XG KK X X METROLAB Instruments SA Geneva 1 L M June 1991 Precision Digital Integrator PDI 5025 Language QUICK C Microsoft Interface RS232C PDI 5025 incremental encoder with index direct data transfer Lx J KKK EK KOC OK OK EE E EE KK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KKK KK KKKKKKKKKKKE PDI s front panel micro switches setting 1 to 10 1011000000 Executes a run in encoder mode Two functions are used to communicate with the PDI 5025 write pdi send string in argument to the PDI 5025 read pdi read data or parameters when necessary from PDI 5025 The pointer in argument points to the read string The function v
49. GOTO 1030 VsbzVAL In VALUE CHANNEL B GOTO 1100 rn METROLAB Instruments SA 93 MANI BE HPB continued 1020 CHECK IF DATA FROM CHANNEL 1030 IF 05 1 0 THEN GOTO 1100 1040 Vsa VAL In VALUE CHANNEL A 1050 mes mes 1 OF MEASURMENT 1060 PRINT VALUES 1070 OUTPUT Format USING 4D CHA A 12D CHA B 12D 10 8 V s mes Vsa Vsb 1080 PRINT Format 1090 READ STATUS 1 IN ORDER TO CHECK DATA READY BIT IN WHILE LOOP 1100 GOSUB 1170 1110 END WHI LE 1120 PRINT READING FINISHED 1130 DEFAULT DISPLAY 1140 OUTPUT Pdi 05 1150 STOP 1160 1170 SUBROUTINE TO READ STATUS 1 AND CHECK END OF RUN 1180 1190 Send STB 1 1200 GOSUB 1410 1210 Stb1 l 15 1220 CHECK END OF RUN BIT 1230 Stb1 5 1 lt gt 1 THEN RETURN 1240 RUN FINISHED 1250 Endrunzl 1260 NFORM USER THAT RUN IS OVER AND READING CONTI NUES 1270 PRINT RUN FINISHED READING N PROGRESS 1280 OUTPUT READ 1290 CHECK OVERRANGE ERROR BIT 1300 IF Stbi 4 1 1 THEN RETURN 1310 NFORM USER THAT OVERRANGE OCCURED 1320 PRINT ATTENTION OVERRANGE OCCURED RUN STOPPED 1330 OUTPUT Pdi DSP OVER 1340 ENTER 1 1350 NPUT PRESS ENTER TO CONTI NUE Dummy 1360 CLEAR OVERRANGE 1370 OUTPUT Pdi CVR 1380 GOTO 1120 1390 RETURN 1400 1410 SUBROUTINE TO
50. ING 1 TO 10 1011000010 250 EXECUTES A RUN IN ENCODER MODE 260 ACCEPT 1 OR 2 CHANNELS 270 PDI S COMMANDS ARE SENT TO PDI IN TWO DIFFERENT WAYS 280 1 COMMANDS WHICH DO NOT REQUIRE A RESPOND FROM PDI ARE EXECUTED 290 VIA THE GPIB SUBROUTINE I BWRT THE COMMAND STRING IS PASSED 300 TO THE SUBROUTINE THE STRING VARIABLE SEND 310 2 COMMANDS WHICH REQUIRE A RESPOND FROM PDI ARE EXECUTED VIA 320 THE SUBROUTINE LINE 1530 IN THIS CASE THE COMMAND STRING IS 330 PASSED TO THE SUBROUTINE WITH THE STRING VARI ABLE SEND AND 340 THE RESPOND OF THE PDI 15 RETURNED IN THE VARI ABLE IN 350 EXAMPLE SEND STB 2 GOSUB 1530 STB2 I N 360 THE READING OF STATUS 1 IS DONE BY THE ROUTINE LINE 1310 IN ADDITION 370 OF THE READING THE SUBROUTINE CHECKS THE END OF RUN BIT AND UPDATES 380 THE VARIABLE ENDRUN IF NECESSARY THE STATUS 15 RETURNED IN 390 VARIABLE STB1 400 410 INITIALIZATION HPIB 420 CLEAR 58077 430 58077 440 IBINIT2 IBINITI 3 450 BLOAD BI B IBI NITI 460 CALL BI NI T1 IBFI ND 1 BSTOP I BTRG BCLR I BPCT 1 BSI C 1 BLOC BPPC BBNA BONL BRSC BSRE BRSV BPAD BSAD IBI ST I BDMA BEOS I BTMO BEOT 410 CALL BI NI T2 1 BGTS BCAC BWAI T BPOKE BWRTF BWRTA BWRT BCMDA BCMD BRDF BRD BRPP BRSP BDI AG BXTRC BSTA BERR BCNT
51. LAB Instruments SA 77 MANRST BAS 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 UR KKK KKK KKK KKK KKK K K K KKK KK KKK KKK KKK KK RK KKK KK KKK K K K KKK KK KKK K K K K K K K KK KKK KKK K K x METROLAB INSTRUMENTS SA GENEVA E L M JUNE 1991 PRECISION DIGITAL INTEGRATOR PDI 5025 E xk LANGUAGE GW BASIC INTERFACE R5232C PDI 5025 TIMER MODE 3 DIRECT DATA TRANSFER x KKK K K K K K K K K K K K K K K K K K KKK KKK K K K K K K K K K K K K K K K K K K K K KKK K KKK K K KK K K K K K K K K K K K K KKK K PDI S FRONT PANEL MICRO SWITCHES SETTING 1 to 10 1011000000 EXECUTES A RUN IN TI MER MODE ACCEPT 1 OR 2 CHANNELS PDI S COMMANDS ARE SENT TO PDI IN TWO DIFFERENT WAYS i 1 COMMANDS WHICH DO NOT REQUIRE A RESPOND FROM PDI ARE EXECUTED DIRECTLY BY WRITING CORRESPONDING STRING IN UNIT 1 EXAMPLE PRINT 1 TRS T 2 COMMANDS WHICH REQUIRE A RESPOND FROM PDI ARE EXECUTED VIA i THE SUBROUTINE LINE 1190 IN THIS CASE THE COMMAND STRING IS PASSED TO THE SUBROUTINE WITH THE STRING VARIABLE SEND AND THE RESPOND OF THE PDI 15 RETURNED IN THE VARIABLE IN EXAMPLE SEND STB 2 GOSUB 1190 STB2 IN THE READING OF STATUS 1 IS DONE BY THE ROUTINE LINE 970
52. LUTION TABLE Range is expressed in Volt second in the upper number Resolution is expressed in 1078 vs in 55 5 METROLAB Instruments SA 3 DESCRIPTION OF THE PDI 5025 PLUG IN MODULES The plug in units of the PDI 5025 correspond to the different main functions described in the previous chapter In this section we shal describe in more detail the principal functions of each unit For a better understanding it is possible to refer to the general diagram of figure 1 and to the corresponding block diagram of each unit 3 1 5150 Integrator Module The 5150 Integrator module is recognized on the internal G 64 Bus by a hardware address set by positioning jumpers J2 located on the digital circuit board see section 10 1 The position of this jumper may assign the 5150 module either to channel A or This assignment is displayed on the left digit of the Gain display except when a gain of 1000 is selected One or two of these modules may be installed Following the sense signal from the coil we shall describe the elements that transformthe signal up to the final pair of counters accessed by the microprocessor via the G 64 bus 3 1 1 Preamplifier The preamplifier is a precision instrumentation differential amplifier that may work with a balanced or unbalanced input The cable s screen can either be linked to the floating ground or to a differential ground which is at the mid point between the two input voltages In this ca
53. METROLAB Instruments SA mia 2QOZ PRECISION DIGITAL INTEGRATOR User Manual Version 2 2 Revision 2 0 January 2000 1 2 3 NTRODUCTI ON 1 THEORY OF OPERATI ON 3 2 1 Transfer Egal ONS eccl cedat nw d ea sd 4 254 DOS Cl ON s eu ule xk c RC E a 4 2 1 2 Model 5150 Integrator and signal conditioning 5 PARAE Microprocessor 5 7 DESCRIPTION OF THE PDI 5025 PLUG IN MODULES 9 3 1 3150 I tegrator Modul deutet ho who ih E Rhea 9 euo euo 9 Bargraph Display ess POR Raed Re a ma ES 9 341 3 Voltage to Frequency Converter 10 3 1 4 nite qr ation COUTE eT S atch he Race be ador a bor 10 3 1 5 Manual offset 10 322 540 Lriqger Moqu l8 tec cewek ae hte t e REC at ARI AR N 12 3 2 4 Ti mer 12 3 2 2 ner emet qi Enden aras mua ar kid 12 357253 MOC OF CON CPO aae rd Eos YA a 12 3 3 5130 lmtertace Modules X kx REDE RG eR 15 3 3 1 Mi C0 PIO CBS SQ epe ee eet dc eoe pe o e abet dod 15 3 3 2 ee PO Ene om tp o asc audite e Ba dre hs 17 35343 POTU wie teed oe EISE 17 3 4 51120 P ower Supply MO du sacs dece xe pere at 18 SPECI FI CATI ONS 19 4 1 LANDAU de
54. NT PRINT 1 TRS E 1024 TRIGGER SOURCE ROTATIONAL ENCODER 1024 STEPS PRINT 1 TRI 0 32 128 TRIGGER SEQUENCE PRINT 1 MOT A AUTOMATIC START AND STOP FOR MOTOR PRINT 1 1 DIRECT TRANSFERT DEFAULT PRINT 1 CUM 0 I NDI VUDUAL VALUES DEFAULT READ STATUS 1 AND CHECK COMMAND ERROR BIT GOSUB 1100 IF MID STB1 3 1 lt gt 0 THEN GOTO 490 METROLAB Instruments SA 85 MANRSE BAS continued 600 INITI ALI ZE ENCODER INDEX POSITION 610 PRINT INITIALIZE ENCODER POSI TI ON 620 PRINT 1 DSP 1NDX 630 PRINT 1 IND 640 READ STATUS 1 AND CHECK SYNCHRO BIT 650 GOSUB 1100 660 WAIT FOR SYNCHRO BIT 1 INDEX FOUND 670 WHILE MI D STB1 8 1 lt gt 1 680 GOSUB 1100 690 WE ND 700 PRINT I NDEX FOUND 110 PRINT 1 DSP 120 PRESS ENTER TO START RUN DUMMY 730 START RUN WITH COMMAND RUN 140 PRINT 1 RUN 750 NFORM USER THAT RUN STARTED 760 PRINT 1 DSP RUN 110 PRINT RUN IN PROGRESS 780 READ STATUS 1 AND WAIT UNTIL DATA READY BIT IS 1 190 GOSUB 1100 800 WHILE MI D STB1 6 1 lt gt 1 810 GOSUB 1100 820 WE ND 830 READ DATA UNTIL DATA READY BIT IN STATUS 1 IS 0 840 WHILE MI D STB1 6 1 1 850 EXECUTE ENQ COMMAND TO GET DATA 860 SEND ENQ GOSUB 1320 870 CHECK IF END OF DATA 7 ASCII 26 880 IF INSTR IN CHR 26 lt gt 0 THEN GOTO 1050 8
55. NUES T RUN FINISHED READING CONTI NUI NG T 1 DSP READ OVERRANGE ERROR BIT 1D STB1 4 1 lt gt 1 THEN RETURN USER THAT OVERRANGE OCCURED T ATTENTION OVERRANGE OCCURED RUN STOPPED T 1 DSP OVER PUT PRESS ENTER TO CONTI NUE DUMMY OVERRANGE T 1 TO 1050 TURN UTINE TO EXECUTE A COMMAND WHICH REQUIRES A RESPOND FROM PD TO PDI COMMAND SEND 1 SENDS ge T DATA UNTIL CARRIAGE RETURN AND LINE FEED FOUND OR Z LE I NSTR IN CHR 13 CHR 10 0 AND INSTR IN CHR 26 0 NPASS 0 FOR DATA IN RS232 BUFFER WHILE EOF 1 55 5541 T TO LONG TRY AGAIN COMMAND NOT DECODED BY PDI 5025 IF NPASS gt 500 THEN GOTO 1350 WE ND PUT CHARACTERS TO STRING IN 1 N I NPUTS LOC 1 1 BUILD STRING I N D URN METROLAB Instruments SA 87 MANI BE BAS 100 KKK KKK KKK KKK KKK KKK KKK KKK KKK KK KKK KKK 110 120 METROLAB INSTRUMENTS SA GENEVA TQ ASK L M JUNE 1991 140 PRECISION DIGITAL INTEGRATOR PDI 5025 150 160 170 LANGUAGE GW BASI C 180 INTERFACE GPIB 1 EEE 488 190 f 200 PDI 5025 NCREMENTAL ENCODER WITH INDEX MODE 210 DIRECT DATA TRANSFER 220 230 VOKCKCK ECKE KCOK CK OEC ECKE ECKE KKK KKK ECKE KKK KKK KKK KKK KKK KKK KKK OK ECCE COE COE EGG GO XC KG EG GG XG X XN X X 240 PDI S FRONT PANEL MICRO SWITCHES SETT
56. ODEL 5130 DISPLAY CONTROL INTERFACES r 1 lt j MICRO IEEE 488 GAIN FROM PROCESSOR SETTING gus 4 0 100 C300 kHz 38 BIT CDUNTERS RS 232 C COIL AMP m MEASUREMENTS al 3 BUFFER 4 e EXTERNAL eae em SYNCHRONIZATION V ref F ref Tal 4 G 6 MODEL 5140 TRIGGER MODEL 5150 INTEGRATOR BPR HAE 4 L lt SEQUENCER B HEEL ee ANGULAR U ENCODER P OR LINEAR FILTERING DEPLACEMENT Q gt ENCODER EXTERNAL TIMER TRIGGER i MODEL 5150 INTEGRATOR 2ND OPTIONAL CHANNEL MOTOR CONTROL gt AVA 12 24V 05 A EXTERNAL TRIGGER figure 2 PDI 5025 block diagram A local microprocessor controls the measuring sequences Trigger generation motor power reception and decoding of commands from the host computer front panel commands display functions and the transfer of data to the host The instrument can store up to 5200 measurement results before a transfer to the host is necessary This local microprocessor may drive one or two integrator channels working synchronously 2 1 Transfer Equations 2 1 1 Description this section there is a brief description of the way the output measurements are obtained via the measurement chain 50 that the user may clearly understand the transfer function of each element of the PDI 5025 and the software calculations it performs The overall transfer function of the PDI 5025 is to send measurements
57. PUT PRESS ENTER TO START RUN DUMMY RUN W TH COMMAND RUN T 1 RUN USER THAT RUN STARTED T 1 DSP RUN T RUN IN PROGRESS STATUS 1 AND WAIT UNTIL DATA READY BIT IS 1 SUB 1300 LE MID STB1 6 1 lt gt 1 GOSUB 1300 D USER THAT TRANSFER BEGI NS T CALCULATION FINISHED TRANSFERT IN PROGRESS T 1 DSP TRAN USE FALSE TE ENQ COMMAND TO GET DATA T 1 ASS 0 F END OF DATA 7 ASCII 26 ILE I NSTR INS CHR 26 0 FOR DATA IN RS232 BUFFER WHILE EOF 1 PASS NPASS 1 TO LONG TRY AGAIN COMMAND NOT DECODED BY PDI 5025 F NPASS gt 500 THEN GOTO 770 WE ND STRING FROM RS232 AND PUT IT INTO TEMPORARY FILE I NPUTS LOC 1 1 PRINT 22 1 9 TRANSFERT IF TO MANY CHARACTERS IN RS232 BUFFER PAUSE THEN GOTO 970 F LOC 1 lt 128 THEN GOTO 1010 PAUSE TRUE PRINT 1 CHR 19 GOTO 1010 IF LOC 1 0 THEN GOTO 1010 RESUME TRANSFERT RS232 BUFFER EMPTY PAUSE FALSE PRINT 1 CHR 17 WE ND 1020 END OF DATA TRANSFERT CLOSE TEMPORARY FILE C LOSE 2 82 METROLAB Instruments SA MANRSTBL BAS continued 1040 1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250 1260 1270 1280 1290 1300 1310 1320 1330 1340 1350 1360 1370 1380 1390 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 1500 DEFAU PR RE
58. RESET to 0 after the controller has finished the serial poll The bits have the following significance bit 7 hex 80 20 10 STATUS Command Overrang Trigger Synchro Error Error 2 FLAG The SRQ status register is a copy of STATUS 1 but seen through the first mask register Mask 1 These bits have the Same meaning as those described in section 7 1 1 for STATUS 1 However bits 6 and 7 differ in the following manner bit 7 STATUS 2 FLAG This bit is set to 1 to indicate that the masked version of STATUS 2 is not zero and that it should be read Example If all the bits in STATUS 2 are masked then this bit will never be set irrespective of the bits in STATUS 2 Unlike STATUS 1 this bit like all the others is set to zero by reading the SRQ status register ie by a serial poll bit 6 RQS Request Service bit This bit is set to 1 if one or more bits of the SRQ status register are set to 1 to generate a Service Request METROLAB Instruments SA 1 3 10 SRQ Masks command MSK The two mask registers are programmed by using the MSK command which has the following format MSK x no where X is the number of the mask register if omitted the default is 1 n signifies the ASCII characters from 0 to 7 inclusive relating to the mask pattern in octal for bits 3 4 and 5 0 the ASCII characters from 0 to 7 inclusive relate to the mask pattern in octal for bits 0 1 and 2 Th
59. RI LE CRI LE Not sent Sent EEE 488 RS 232 Talker Only Talker Listener When microswitch 8 is set to 0 the carriage return CR and line feed LF characters are sent to the host at the end of each message The EOI signal is made active at the end of every message The Tal ker only mi croswitch sets the PDI 5025 in Autonomous Talker only mode see section 6 6 4 5 8 5130 Interface Module RS 232 The PDI 5025 is a DCE device The serial connection is a standard sub D 25 pin male connector We recommend the following cable layout to connect to the host computer The pinouts are also given for an PC or compatible with a 9 pin connector METROLAB Instruments SA 1 cable shield 1 see Note below TX 2 2 TX 3 RX 3 a and 3 RX 2 RTS 4 4 RTS 7 CTS 5 a d 5 CTS 8 DSR 6 6 DSR 6 DCD 8 8 DCD 1 DTR 20 20 DTR 4 GND i GND 5 5025 connector 25 pin computer connector DTE PC AT 9 pin serial interface connector Note Pin 1 of the RS 232 connector on the Interface module Supplies 10 5V at 100mA for the PSION Organiser handheld computer modified by METROLAB When connected to ground this power supply is automatically disabled The table below shows the functions assigned to each microswitch for the RS 232 C interface BAUD RATE SELECTION 8 bits 7 bits 2 stop bits 1 stop bit Parity No Parity Even Odd XON XOFF No XON XOFF EEE 488
60. RI sequence nj This means that once the run is started it will continue until a break command BRK or a buffer ful condition occurs Any length of integration period within the limits 1 2 pulses or ms can be associated with an infinite sequence Any finite sequence can precede an infinite sequence in the TRI command but the infinite sequence has to be the last one of the series If the reading of the measurement results is performed faster than triggering the buffer will never get ful and the run will last for ever If the LAST CUMULATED STORAGE mode CUM 1 L is selected the PDI 5025 works like a fluxmeter To demonstrate the use of the TRI command some examples are given below TRI 4500 4 15 10 2 1 100 TRI 5 200 R which is equivalent to TRI 0 5 200984 TRI 50 this command will move to an absolute position without performing any measurement TRI 89 10 250 1000 start at the absolute position of 89 then perform 10 sequences of 250 pulses then an infinite sequence of 1000 pulses METROLAB Instruments SA ME TROLAB 6 6 1 Trigger Source Timer The PDI 5025 has an internal quartz controlled time base generator set at 1 kHz which feeds the Trigger Source Counter The TRI command defines the integration intervals in milliseconds ms The counter can be activated in two different ways a by the RUN command or by pressing the FNC button In the later case the TRS com
61. RS 232 Autonomous Conversational METROLAB Instruments SA 31 32 The baud rate definition for microswitches 1 2 and 3 are given bel ow 0 0 0 0 1 1 1 m Warning Limited use of 9600 and 19200 baud When using RS 232 interface at these speeds the PDI 5025 may lose some of the characters transmitted by the host computer during a TRI sequence In this case the instrument will not recognise the command and it must be repeated by the host computer The problem which may occur is when the host requests the instrument s status but the instrument fails to understand the request due to a lost character A situation of deadly embrace will be reached as the PDI is waiting for the host and the host is waiting for the reply from the PDI Care must be taken when designing the host software to retransmit a message to the PDI 5025 if it does not reply within a few seconds The Talker only mi croswitch sets the PDI 5025 in Autonomous Talker only mode see section 6 6 4 METROLAB Instruments SA INSTRUMENT SETTINGS 6 1 Power On Sequence The PDI 5025 may be powered from any alternating mains supply giving between 85 and 264V with a line frequency from 45 to 440Hz The mains input socket is to be found at the rear of the chassis When powered on the first operation performed by the PDI 5025 is an autotest which takes 5 seconds During the autotest sequence 5 different voltages
62. RS 232 C only MOT A MOTor Automatic MSK a 00 MaSK 55 65 RUN RUN 61 EEE 488 only RRK een 3001 SYN SYNchroni zation 53 66 EOD al an End Of Data 50 61 RS 232 CUM 0 storage mode 48 62 SYN 1 SYNchroni zation 53 66 CUM 1 5 CUMulative or SYN 0 LEEE 488 CUM 1 1 i ndi vi dual METROLAB Instruments SA 67 68 METROLAB Instruments SA 10 APPENDIX 111 PDI 5025 UMPERS AND MI CROSWITCHES 10 1 5150 INTEGRATOR MODULE DIGITAL BOARD UMPERS J UMPER NSERTED NOT USER FACTORY FACTORY INSERTED SETTING 11 1 2 external trigger 3 4 external trigger 1 2 on rising edge on falling edge 2 Board address 1 2 and 11 12 chan A 3 4 and 11 12 chan B 13 Interrupt select 5 6 and 7 8 14 VFC frequency code 1 2 100 kHz 3 4 500 kHz 5 6 1 MHz JES Open G96 line of Inserted hardware trigger 6 G96 bus normal line Inserted Note Modifications must be implemented by qualified personnel The user can only change the jumpers indicated with a in the USER SELECT column Blue jumpers WARNING the factory adjustments which are indicated with a in the FACTORY SELECT column must not be changed Red j umpers TCE Cad IC15 1c16 METROLAB SA 065025 METROLAB Instruments SA 69 10 2 5150 INTEGRATOR MODULE ANALOG BOARD JUMPER J UMPER INSERTED NOT USER FACTORY FACTORY INSERTED SEINE Cie Cie SETTING 11 Connects analog GND
63. WH READ CHECK CHECK PRI NT WE CLOSE CL KI CL EN SUBRO ST CHECK IF RUN F EN I NFOR PR PR CHECK IF I NFOR PR PR IN CLEAR PR GO RE LT DISPLAY ON PD EN TEMPORARY FILE FOR READING EN PDI BLOCK TMP FOR INPUT AS 2 LE NOT EOF 2 ONE LINE AT A TIME LINE INPUT 2 LINS F DATA FROM CHANNEL B F INSTR LI N B 0 THEN GOTO 1160 VSB VAL LEFTS LI NS INSTR LI NS B 2 VALUE CHANNEL B GOTO 1220 DATA FROM CHANNEL A STR LIN A 0 THEN GOTO 1220 VSA VAL LEFTS LI NS 1 NSTR LINS A 2 VALUE CHANNEL A MES I MES 1 OF MEASURMENT VALUES FORMAT CHA A CHA 10 8 Vis PRINT USING FORMAT MES VSA VSB D AND DELETE TEMPORARY FILE OSE 2 LL PDI BLOCK TMP OSE 1 D UTINE TO READ STATUS 1 AND CHECK END OF RUN BIT D STB 1 GOSUB 1520 815 N END OF RUN BIT 1D STB1 5 1 lt gt 1 THEN RETURN SHED DRUN 1 USER THAT RUN 15 OVER AND READING CONTI NUES T RUN FI NI SHED CALCULATI ON I N PROGRESS T 1 DSP CALC OVERRANGE ERROR BIT 1D STB1 4 1 lt gt 1 THEN RETURN USER THAT OVERRANGE OCCURED T ATTENTION OVERRANGE OCCURED RUN STOPPED T 1 DSP OVER PUT PRESS ENTER TO CONTI NUE DUMMY OVERRANGE T 1 TO 1260 TURN METROLAB Instruments SA 83 MANRSTBL BAS continued 1510 1520 1530 1540
64. al trigger pulses which are not wanted STH d Returns the STATUS d in Hex 2 ASCII char STatus Hex STB d Returns the STATUS d in Binary 8 ASCII char STatus Binary ds1to7 Note if d is omitted the STATUS 1 is returned by default The first and last characters are respectively the MSB and LSB DSP i xxxx sends string XXXX to the display of the selected Di SPlay channel The string can be of any length but only the first four characters are displayed This command overwrites previous displays and the new display remains on until an other command which sends characters to the display is executed DSP SGA TST AD etc If xxxx is omitted the normal display Gain and channel is shown i A B or nothing means both channels and nothing means the active channel or channels The commas have to be present in all cases VER Returns the software revision number VERsi on CVR i Clears overrange of channel i i A B or Clear oVeRrange Note the or overrange LED lit on the front panel bargraph display is switched off If i is omitted the command is executed on the active channel or channels The CVR command is automatically executed following the RUN and SGA commands RGA A Returns the current Gain of channel A Read GAin RGA B Returns the current Gain of channel B Read GAin Note the Gains which can be different for the two channels be appropriate switch on the SGA commands If no parameter is Gain of the a
65. alue is the length of the read string include lt stdio h gt include lt stdlib h gt include lt bios h gt define nbtrymax 200 void write pdi char pwchr function writing to PDI 5025 int read pdi unsigned int pointer function reading from PDI 5025 unsigned int port 0 serial port 1 mai n int i nchar imes 0 unsigned int etat unsigned int pointer char dummy endrun 0 flagA pchar double val uea 0 val ueb 0 Initializes serial port 1 if bios serialcom COM INIT port COM 4800 COM NOPARITY COM CHR8 COM STOP1 amp 0x0030 printf serial port d not initialized n port 1 exit 0 reserve memory for data read from PDI 5025 if pointer unsigned int malloc 20 20 characters max printf memory for data not allocated n exit 0 METROLAB Instruments SA 95 MANRSE C continued x x x x x reserve memory for string to be converted to double if pchar char malloc 20 20 characters max printf memory for string not allocated n exit 0 reset read status 1 do write _pdi STB 1 r n while nchar read _pdi pointer reset read status 2 do write _pdi STB 2 r n while nchar read_pdi pointer set PDI 5025 s parameters and check command error bit in status 1 pointer 2 0 do write CHA
66. ation TRigger Source The SYNC connector Lemo on the 5140 module Timer Synchro provides the input for the external synchronization TRS E Incremental encoder without index signal TRigger Source The encoder can be rotational or linear Encoder TRS E S Linear incremental encoder with index signal TRigger Source This command can also be used with linear or Encoder Synchro rotational encoders which are not supplied with an index signal and for which the zero position must be defined externally IND command TRS E d d Rotational incremental encoder with d d cycles TRigger Source per turn and with index signal rotationa Note the 5140 module counts 4 pulses for each encoder Encoder cycle TRS X External hardware trigger The hardware trigger is TRigger Source fed into the appropriate Lemo connector of the 5150 eXternal module TRS 5 External hardware trigger with external TRigger Source synchronization eXternal Synchro Note When executing the TRS command the previous TR sequence is cancelled the motor is stopped and the MOT becomes inactive METROLAB Instruments SA 59 SYNTAX DEFAULT DESCRI PTI ON MNE MONI C TRI s a n1 C1 n2 C2 n20 C20 TRI gger sequence s defines the sense of displacement 0 a defines the absolute position of the start lst trigger 0 to 223 Sign ni is the number of integration intervals of the i subsequence ni 1 to
67. ce FNC 0 Following this command the first depression of the FNC button will set bit 5 of STATUS 2 to 1 and generate an SRQ to the host when using the IEEE 488 interface providing this bit is not masked RS 232 C onl LLO 0 Enables the front panel buttons Local LOckout LLO 1 Disables the front panel buttons Local LOckout Note the LLO command can be executed only when using the RS 232C interface and it operates as the Loca Lockout in IEEE 488 488 only MSK a 00 Mask setting Ma SK Sets a mask on STATUS a a 1 2 to define the conditions required to generate a SRQ interrupt oo is the mask definition in octals Note the oo default values for the mask patterns of STATUS 1 and STATUS 2 are 00 and 20 respectively METROLAB Instruments SA 65 SYNTAX DEFAULT DESCRI PTI ON MNEMONI C RS 232 C SYN A synchronization signal is generated by the host SYNchronization Note the SYN command can be executed only if the trigger source has been previously defined with a synchronization pulse 5 5 3TRS E S or TRS X S LEEE 488 SYN 1 Enables the IEEE 488 GET command to generate a synchronization signal SYN 0 TNR Disables the IEEE 488 GET command from generating a synchronization signal BOTH NTERFACES Note The software synchronization replaces the hardware synchronization which can be fed into the appropriate SYNC input of the 5140 module 66 METROLAB Instruments
68. cillator szlppm is used to define the duration of the integration when measurements are performed with respect to ti me The resolution and minimum duration are both Ims although there is maximum duration one integration period delimited by two triggers has to be shorter than 22 ms about 4 6 hours 3 2 2 Incremental Encoder The encoder reading function is used to define the displacement of the coil when the measurements are performed with respect to space The circuit receives the two phase signal from bi directional incremental encoder In order to give maxi mum resolution the circuit generates 4 pulses for each incoming encoder cycle When programming the instrument the user must remember to multiply by 4 the number of encoder cycles corresponding to the angle of di spl acement for the measurement The mini mum ti me between triggers is I1ms An Index signal from the Encoder if provided is used to define the mechanical origin of the motion and reset the position counter in the initialisation operation The encoder pulses are sent to the same Trigger Source Counter used by the timer so that the dynamic range is 223 ie more than 8 million pulses The 24th bit of the counter is used for the sign The SYNC input can be used to reset the counter in both encoder and timer modes and thus synchronise the measurement with an external event 3 2 3 Motor control The motor control function allows the
69. ctive channels are active modified manually the 5150 front using the panel or via given in the RGA command the channel is returned If two A is considered as default METROLAB Instruments SA 63 SYNTAX DEFAULT DESCRI PTI ON MNEMONI C RCT Reads the counters of the 5140 module Read CounTer After reading the counters 3 bytes the PDI 5025 converts the result to decimal and transfers it in the format ddd d Leading zeroes are Suppressed Note in the TRS E d d mode the counter values returned are always positive and represent the number of pulses counted following the index signal there is no indication of the number of turns ZCT Resets the counters of the 5140 module Zero Counter TX Automatic at power on WARNI NG Using this command requires particular care Use only for specific and well defined applications Resetting the counters to zero during a RUN wil perturb the sequence of measurements NBO 0 re The occurrence of overange condition will Not Brk Overrange immediately stop the measurement in progress if any and set bit 4 of status 1 to one NBO 1 This command disables the break of a run caused by an overange condition This command must be used with great care because it is not possible to determine when the overange condition occurred and for how long it lasted The wrong data are strored in the buffer as any valid data However bit 4 of Status 1 is set to
70. differs for the RS 232 C and 488 interfaces Note The synchronisation delay for the SYNC input is very Short less than 500ns Whereas the delay for a software SYNC depends on the transmission speed of the command and the software overhead for decoding the message It may therefore be in the order of several milliseconds liad RS 232 To perform the software synchronisation via the RS 232 C interface the host just sends the SYN command Thus when the user has defined the source of the trigger with external synchronisation TRS T S TRS E S or TRS X S the instrument will once it has received the RUN or IND commands wait for the external Signal on the SYNC input or the SYN command to start the measurement cycle 1 2 11 2 488 In this case the synchronisation command is the 488 Group Execute Trigger GET As this command can be sent to several devices on the bus it must be possible to enable and disable the synchronisation caused by the GET The SYN command is thus used to enable or disable the GET it is used as follows SYN 0 GET has no effect disabled SYN 1 GET causes the synchronisation of the instrument The GET is disabled by default Thus when the user has defined the source of the trigger with external synchronisation TRS T S TRS E S or TRS X S the instrument will once it has received the RUN command wait for the GET the SYN 1 having already been executed or a signal
71. e When STATUS 1 is read this bit is cleared but is immediately set to 1 if there is still data in the buffer b In the block transmission mode IMD 0 this bit is set to 1 as soon as all the measured data have been converted and are thus available to the host bit 1 Trigger This bit is set to 1 on receipt of the trigger signal occurring during a measurement cycle The trigger can be internally generated by the 5140 module or external bit 0 Synchro METROLAB Instruments SA ME TROLAB This bit is set to 1 each time a signal is detected on the SYNC input of the 5140 module or on the encoder index input This can be used to synchronise the host computer software with the pulse fromthe index of an encoder 1 1 2 STATUS 2 Error Status 1 byte 5 3 2 0 20 8 4 1 FNC Autotest Encoder Overlap button failed Count Ti meout Error This status byte is cleared once it has been read this also clears bit 7 of STATUS 1 Always 0 Always 0 bit 5 FNC Button The FNC button of the 5150 module can be programmed by the FNC 0 command to set this bit to 1 when it is pressed If the FNC button has been programmed to start RUN 1 this bit is inactive bit 4 Power on Reset This bit is set at power on or by the return of power after a power failure It is also set by the reset provoked by the watchdog following a software crash bit 3 Autotest Failed This b
72. econd time to restart the measurements Note if the command NBO 1 has been sent the occurrence of an overrange will not stop the measurement This mode can be used either with a fixed coil to measure time dependent flux variations or by a moving coil going from one field region to another one in order to perform field measurements or comparisons The Fluxmeter mode which is a particular case of the Integrator mode is selected with the following commands TRS T 0 300 CUM 1 L RUN The integration period can be chosen to be any value except when limited by the CUM 1 L command see section 7 2 3 The Fluxmeter mode is terminated by sending a BRK command from the host computer The Autonomous Talker only mode is selected using the microswitch 10 on the 5130 module This mode is equivalent to a Fluxmeter mode with a 300 ms integration period but the last processed value is sent by the PDI 5025 as soon as it is available It must be noted that in this mode the PDI 5025 cannot receive commands from the host computer To stop the Autonomous Talker only mode microswitch 10 must be set to position 0 METROLAB Instruments SA 1 PROGRAMMING THE PDI 5025 This chapter describes the way in which the PDI 5025 stores and transmits the measured data The internal status registers are also defined The differences between the two host computer interfaces are given 1 1 The PDI 5025 Status Registers The PDI 50
73. ed with electronic cards in Euroboard format 100x160mm The internal communication between cards is based on the G 64 bus Gespac this solution allows for the future development of this system Although developed to perform magnetic field measurements the PDI 5025 is in fact a Digital Voltage Integrator and thus the results and equations in this document are expressed in Volt x Seconds Vs METROLAB Instruments SA 1 HOLIMS NOILONN4 ILINW LAdNI 39VLTOA SOLV3O3INI 43594 TVNH31X3 SNOILOAYIG HLOG NI YOLOW 20 Avz ZL Y SANG QNVMMOVS NV QUVM2304 S NNOIS TLL Z SLAdLNO M3005N3 TIIN3AGSONI NV N3MOd Sillddns NO HOLIMS A ole 2 B 0615 dr S32V4431NI OSIS AlddNS u3MOd 0219 DG ores N A ES 5 amp lO10A f 2 9 De ca IN re core EIL B 3002N3 0 ER QNO235 21 lz P ss IMS recs EM YOLVADFINI 440 AES ae zi 1 11914 NOISIO33d HOLIMS NOILO313S NIVO ZEZ 5 gig gV IOAW NIVO IVONVN X A 2 21 Qi 0 2 2 2 5
74. egative sense Warning To be coherent with the rotational sense of the encoder and thus allow the motor to be driven automatically by the PDI 5025 software the user must connect the motor so that the forward FW LED is lit when the motor is driven in the positive sense command MOT or Lemo connector pin 1 connected to GND Jumper J7 selects the operating voltage for the motor With jumper 7 on pins 2 3 the motor is driven at 12V If it is placed on pins 1 2 the operating voltage for the motor is 24V For the position of jumper 7 see the layout diagram in section 10 3 5 6 5130 Interface Module The 5130 module is used to interface the PDI 5025 to the host computer Two digital interfaces are supported RS 232 C and IEEE 488 The choice of the interface and its parameters are set by microswitches on the front of this module The handshake mode for the RS 232 C interface is defined by 3 jumpers situated on the 5130 circuit board The PDI 5025 is equipped with a watchdog which automatically resets the internal microprocessor in the case of an eventua METROLAB Instruments SA 29 30 software crash The watchdog can be disabled by removing jumper 4 on the 5130 circuit board 5 1 5130 Interface Module IEEE 488 A standard IEEE 488 cable is used to connect the instrument to the host computer The table below shows the functions assigned to each mi croswitch DEVI CE ADDRESS Always 0 Always 0 C
75. enerates a syntax error BRK Stops the measurement sequence and the motor BReaK Terminate an external trigger measurement EOD al an P Defines an end of data string End Of Data Note al an decimal ASCII code of characters defining the end of data The string al an is returned following the command when the measurement buffer is empty the ASCII Dec 26 Z character is the default end of data string at power on if al an is omitted METROLAB Instruments SA 61 SYNTAX DEFAULT DESCRI PTI ON MNEMONI C CUM 0 EER integrated values are stored separately CUMulative CUM 1 5 the value cumulated from the start of the measurement is stored in memory at the end of each integration interval If the command NBO 1 has been sent previously to the PDI 5025 the cumulated value is cleared to 0 at each occurrence of an CUM 1 1 only the last cumulated value is stored and available for reading This mode is incompatible with the block data transfer IMD 0 and forces an immediate data transfer mode IMD 1 See section 7 2 3 concerning timing limitations Note It is not possible to change the storage mode during an active run MD 1 TOS Flux values can be read during the measurement MmeDi ate The flux values can be read before the sequence of measurements has been completed The values are read one by one If reading is performed before a data is available
76. er the IND s command If s until the first SYNC is specified the motor is moved pulse is received If s is not specified the instrument waits at the present position for the SYNC pulse After this the PDI 5025 behaves in the same way as the linear encoder with an index Warning the Index input of the encoder connector must not be wired and left open METROLAB Instruments SA ME TROLAB 6 2 4 Linear or Disk Encoder without Index or External Synchronisation TRS E The TSR counter is cleared by the RUN command Warning the sign of a must be the same as that of s in the TRI command 6 6 3 Trigger Source External The PDI 5025 can also accept external TRIGGER signals In this case the TRI command does not serve any purpose as the trigger pulses are not generated by the 5140 module The external trigger source the active edge of which can be set by jumper must be connected to the TRIG input of the 5150 module Warning If two channels are used care must be taken to connect the trigger signal to both channels i e in parallel Trigger signals must not occur during the autotest as this will cause the autotest to fail The TRS X command must be executed to enable the external trigger Following the reception of the RUN command each trigger signal defines the start of a new integration period The measurement sequence is terminated by the BRK command after which the external
77. ex 5 backward direction if s is omitted the motor does not move This command allows the encoder position to be initialized The motor is driven in the selected direction until the index signal or an external synchronization pulse arrives then the trigger Source counter is reset the motor is stopped and finally bit 0 of STATUS 1 is set to 1 60 METROLAB Instruments SA SYNTAX DEFAULT DESCRI PTI ON MNEMONI C s Starts the motor MOTor S starts the motor in the Forward direction FW s starts the motor in the Backward direction BW MOT 5 EET stops the motor and cancels the MOT A command MOTor Stop MOT A Automatic start of the motor MOTor Automatic The motor starts automatically following the RUN command The sense of rotation or displacement is defined by the TRI command When the sequence of measurements is completed the motor is stopped Note the MOT S command cancel MOT A WARNI NG The motor and encoder wiring must be such that MOT MOT starts the motor in the Forward Backward direction respectively the FW and BW front panel LEDs are lit RUN starts the TRI sequence or stands by the next external synchronization signal as defined by the TRS command TRS T S or TRS E S TRS X S Having already performed the MOT A command the motor starts in the direction defined by the TRI command Note when executed before the completion of the sequence of measurements the RUN command g
78. flux variations The time interval between triggers can be as short as 1ms In this mode channels A and B can be selected or deselected individually by CHA x command details of the syntax are given in appendix 1 The trigger source must be selected by the TRS trigger source command if the default value TRS T is not desired Finally a TRI sequence must be programmed defining a sequence of integration intervals After the execution of the TRI command the RUN command starts the measuring sequence The TRI sequence is memorized in the PDI 5025 and can be repeated as many time as required by the RUN command If needed the parameters of the current TRI sequence may be returned to the controller by issuing a TRI command 6 6 Programming The Integration Intervals The TRI is used to define the integration intervals which are delimited by Trigger events This command is explained below METROLAB Instruments SA 35 36 TRI S a ny Cy Ini Ci where 5 or is the sense of the movement default a value absolute position of the first TRIGGER default 0 nj 1 to 65535 or number of intervals of pulses or counts means infinite number of intervals Che 119220 number of encoder pulses or ti me counts between TRIGGERS always positive 1 to 20 number of different measu rement parameters pairs An infinite number of integration intervals can be selected in the T
79. fset adjustment AD 1 0 0 1 Timer without Synchro TRS T 0 1 0 Timer with Synchro TRS T S 0 1 1 Encoder without index or Synchro TRS E 1 0 0 Encoder with Ext Synchro or Linear with Index TRS E S 1 0 1 Rotating Encoder with index TRS E dddd 1 1 0 External Trigger TRS X 1 1 External Trigger with Synchro TRS 5 bit 4 Infinite Sequence This bit is set to 1 to indicate that an infinite trigger Sequence is in progress An infinite sequence is set using nj in the TRI command bit 3 Measurement in progress RUN Active This bit is set to 1 to indicate that the PDI 5025 is in the process of measuring The bit is set by the RUN command or by pressing the FNC button it is cleared when the sequence is terminated METROLAB Instruments SA ME TROLAB bit 2 Forward Backward 1 indicates motion in the FORWARDS sense FW LED lit a 0 refers to the BACKWARDS sense BW LED lit Note that in the timer mode this bit is always set to 1 FW lp bit 1 Motor This bit indicates that the motor has been activated in the positive sense corresponds to FWif cabling is correct see the MOT command for more details bit 0 Motor This bit indicates that the motor has been activated in the negative sense corresponds to BWif cabling is correct see the MOT command for more details 1 1 4 STATUS 4 PDI module 5130 1 byte 5 1 0 20 2 1 Overrang Overrang Overrang Overrang
80. he USER SELECT column Blue jumpers WARNING the factory adjustments which are indicated with a in the FACTORY SELECT column must not be changed Red jumpers ES x 9128 METROLAB SA No 40045 SM 72 caf 1017 1013 1015 1018 Reo METROLAB Instruments SA 10 5 5130 INTERFACES MODULE MI CROSWI TCHES EEE 488 OPERATI ON RS232c OPERATI ON SWITCHES 1 SWITCH POS gt 0 1 SWITCH POS gt 0 BAUD DEVICE RATE SELECTION ADDRESS 8 bits 7 bits 2 stop bits 1 stop bit Always 0 Parity No Parity Always 0 Even Odd NO CR LF CR LF XON XOFF No XON XOFF EEE 488 PA gs RS 232 Talker Only List Tal ker Autonomous Conversationa 10 6 5130 MODULE MICROSWI TCHES BAUD RATE SELECTI ON Switches ed use see section 5 1 0 1 1 METROLAB Instruments SA 73 74 METROLAB Instruments SA 11 APPENDIX IV QUICK REFERENCE TO STATUS REGISTERS STATUS 1 Measurement Status 1 byte bit 7 5 4 hex 80 20 10 STATUS 2 FLAG STATUS 2 Command Overrang Error e Error Error Status 1 byte 3 2 Trigger Synchro 0 8 4 1 STATUS 3 FNC Power ON Autotest Encoder button or failed Count Reset Error Trigger Source Module 5140
81. he integral between and of the input voltage Vi N can be expressed as 1 N COGOR DONE or R Nr C G This is the relation binding the output counts of the module and the desired result It depends on gain value of the preamplifier configuration of the VFC and flux variations To get an absolute measurement of the Voltage integration the microprocessor reads the fixed parameters C G of the 5150 Integrator module in the measuring situation and performs the calculations described below METROLAB Instruments SA ME TROLAB 2 1 3 Microprocessor calculations As explained in the introduction the desired result is R in Volt Seconds or a multiple thereof despite the successive modifications of the signal The information available on the G 64 bus are the counts N and Nr the Gain value and a code defining Fn Using these data the microprocessor calculates the result by employing the following formula directly derived from the previous ones R 4 N Nr 4 C G order to only manipulate integers N is multiplied by 4 and R is expressed in units of 10 8 Volt Seconds because of the different possible values of the 4 C G coefficient So in any measuring configuration the microprocessor firstly multiplies N by 4 secondly subtracts Nr and stores the result in the RAM ready for a next acquisition and precalculation thirdly when it has time it applies a multiplying factor to the sub
82. is bit is set to 1 to indicate that the PDI 5025 is taking measurements This status bit is similar to bit 3 of Status 3 bit 2 Data Transfer Mode This bit is set to 1 to indicate that the immediate data transfer mode IMD 1 is selected A 0 indicates that the block transfer mode IMD 0 is selected bits 1 amp 0 storage mode These bits indicate the selected data storage mode command CUM bits 1 0 Mode 0 0 Individual values 0 1 Cumul ated values 1 0 Only last cumulated value is available 1 2 Data Acquisition During a measurement cycle the PDI 5025 stores raw data in an internal buffer This raw data is then converted by the loca microprocessor and stored Following this operation data are available to the host computer There are three types of storage for converted data individual cumulated and last cumulated The CUM command selects the storage mode The processed data may be METROLAB Instruments SA 47 48 read block n two different ways either one after another or all in one The I MD command selects the data transfer mode 1 2 1 Individual data storage CUM 0 This is the default data storage mode Measured data are stored separately The data represent the integrated value during a period delimited by two triggers The number of values equals the number of integration periods Bits 1 and 0 of Status 7 are set to 0 1 24 Cumulated data storage CUM 1 S The value cumula
83. is message allows the user to set up a mask for the SRQ register in order to prevent the PDI 5025 from interrupting the controller when a particular event occurs On power up the default value for Mask 1 is 00 octal and 20 octal for Mask 2 SRQ Mask register bits 5 4 3 2 1 0 n value o value 0 M M 0 M M 1 M M A 1 M M A 2 M A 2 M A 3 M A A 3 M A A M masked 4 A M 4 A M A active 5 A M A 5 A M A 6 A A 6 A A 7 A A A 7 A A A Note that it is not possible to mask bits 6 and 7 Both bits are always active Example MSK 1 00 gives all bits masked on STATUS 1 MSK 2 77 gives all bits active on STATUS 2 Note See section 7 3 7 and 7 3 9 for more details on the SRQ register METROLAB Instruments SA 57 58 METROLAB Instruments SA 8 APPENDIX PDI 5025 COMMANDS All the PDI 5025 commands are listed in tabular formin this section in their order of use That is initialisation measurement data extraction and then miscellaneous This does not however signify that they must be executed in this order SYNTAX DEFAULT DESCRI PTI ON MNEMONI CHA A Exe Select channel A CHAnnel CHA B Select channel B CHA Select both channels A and B Note this command is valid only if the PDI 5025 is equipped with two channels Trigger source selection see section 6 6 TRS T Timer without external synchronization TRigger Source Ti mer TRS T S Timer with external Synchroniz
84. it is set to 1 if the autotest detects an error in the instrument The exact cause of the error can be found by examining status registers 5 and 6 bit 2 Encoder Count Error This bit is only valid if the PDI 5025 is used with an encoder encorporating an index Each time the index is detected the instrument verifies if the pulses which are counted are correct If an error is found this bit is set bit 1 Measurement Buffer Ful The PDI 5025 has a memory buffer that can hold 5200 values When the buffer is full this bit set to indicate this error Instruments SA 43 Note If this error happens the measurement cycle is aborted as if a BRK had been received see section 7 2 7 bit 0 Overlap Timeout The PDI 5025 has been designed to receive a trigger once every millisecond However if an external trigger is used or if the encoder turns too quickly and the interval between triggers is less than 1 millisecond this bit will set to indicate the problem Note If this error happens the measurement cycle is aborted as if a BRK had been received see section 7 2 7 1 1 3 STATUS 3 Trigger Source Module 5140 1 byte 4 2 10 4 Infinite Forwards Sequence or Backward 5 This status byte represents the state of the PDI 5025 at the time of reading bit 7 6 5 TRS mode These three bits indicate which trigger source has been selected TRS command bits 1 6 5 Mode 0 0 0 Of
85. itch definitions can be found in section 5 7 The IEEE 488 interface conforms to IEEE standards It can perform the following functions SH1 AH1 5 L4 521 RLO DC1 DT1 CO E2 The IEEE commands described below have the following effect on the PDI 5025 GET Group Execute Trigger generates a software SYNC signal to the 5140 Trigger module a SRQ can be generated by the PDI 5025 SPE Serial Poll returns the SRQ Byte and clears its content The Parallel Poll PPE and Remote Local REN NRE commands are not used by the PDI 5025 All unused commands will simply be ignored and will not affect the IEEE dialog METROLAB 1 See note in section 5 8 Instruments SA 17 18 3 4 5120 Power Supply Module The Euroboard format plug in power supply is a high efficiency Switching power supply ts input voltage can be anything from 85 to 264 Volts Alternating AC and the line frequency between 45 and 440 Hz Output voltages are following 5V 8A 12 2 This power supply is thus adapted to the majority of mains voltages and does not require any setting before use of the instrument The main fuse is located at the rear of this module METROLAB Instruments SA 4 SPECIFICATIONS The following sections give the technical specifications of the PDI 5025 4 1 Inputs Integration channels Input voltage range Overvoltage protection Common mode voltage Input impedance Boot strapping
86. lator Fr 3 1 4 Integration Counters Two pairs of 32 bit counters are alternatively in charge of counting the F and Fr pulse trains Following each trigger Signal counting is switched from one pair of counters to the other Whilst one pair is counting the contents of the other pair is transferred to the local microprocessor for preprocessing the two counters are reset and made ready for the next trigger pulse which will switch counting back to them Surrounding the counters are the usual address decoders and latches necessary for data transfer also circuits required to condition the trigger signals for counter switching counter reset overrange transfer and front panel command processing Physically the above mentioned functions are performed on two separate Euroboard cards respectively for the analog and digital parts A third small card supports display components for the front panel It handles command inputs and ensures data and power supplies transfers between the two main Euroboard cards 3 1 5 Manual offset adjustment A potentiometer accessible on the front panel allows the user to compensate the input offset voltage in order to lower the drift of the integrator The offset adjustment has to be performed with no signal at the input i e static coil and static field or shorted plug at the input The simultaneous depression of both buttons GAIN and FNC makes the offset adjustment easier by starting an automatic run
87. ling edge 2 3 rising edge 15 Reserved none 16 Interrupt selection 1 2 11 1 2 motor power 2 3 motor power 2 3 Supply 24 V Supply 12 V Note Modifications must be implemented by qualified personnel The user can only change the jumpers indicated with a in the USER SELECT column Blue jumpers WARNING the factory adjustments which are indicated with a in the FACTORY SELECT column must not be changed Red jumpers METROLAB 5025 No 40042 D Cu Ics b bp 1c12 106130 b w p oS b 5 s IE Ep e e eS Pi 3x P Jhb re eto a c 6 27 pice prcee 4 1629 g 2 NE 0 R14 2 Lb re 1025 cuo 191 J7 m R45 Te picse A E ei 12 30 b 134 XT1 METROLAB Instruments SA 71 10 4 5130 INTERFACES MODULE JUMPERS JUMPER INSERTED NOT USER FACTORY FACTORY INSERTED SELECT SELECT SETTING J1 RS 232 C DCD line DCD enable Inserted disable 2 RS 232 C CTS line CTS enable Inserted disable 3 RS 232 DSR line DSR enable Inserted disable 4 Watchdog enable Watchdog disable Inserted J5 1 2 27512 Eprom 2 3 27256 Eprom Note Modifications must be implemented by qualified personnel The user can only change the jumpers indicated with a in t
88. mand which must have been issued before must be TRS b by the first external synchronisation signal on the SYNC input which follows the RUN command issued by the host or by pressing the FNC button All following signals on the SYNC input are ignored In this case the TRS command must be TRS T S Note the synchronisation precision is better than 0 515 6 6 2 Trigger Source Encoder The 5140 module has been designed to accept the signals generated by a linear or rotational incremental encoder These signals are squared and filtered before being fed to the Trigger Source Counter with 4 pulses representing 1 encoder cycle multiplication by 4 The maximum counting frequency is 109 cycles s The TRS E command will depend on the type of encoder used 6 6 2 1 Rotational Encoder with Index TRS E dddd where dddd is the number of cycles per rotation expressed as a decimal number Note for an encoder with 360 cycles TRS E 360 actually gives 1440 pulses per rotation The use of the index pulse allows the measurements to be made absolute in relation to a fixed point The index point must be passed at least once to initialise the measurement sequence This may be done manually or by using the IND s where s or which will turn the motor in the indicated sense until the index pulse is detected From this point on all measurements are absolute and are verified on each successive index pulse It follows from the ab
89. n 38 6 6 2 4 Linear or Disk Encoder without Index or 6 6 3 6 6 4 External Synchronisation Trigger Source External Fluxmeter Autonomous Talker only 7 PROGRAMMING THE PDI 5025 7 1 Thies PDI 5025 Status els os scm Ru eu ee ui au C amp 7 7 2 D RO BO RO RO BO BO NYY ere OO C Un amp S W Lr 0 1 STATUS 1 Measurement Status 1 byte STATUS 2 Error Status 1 STATUS 3 Trigger Source Module 5140 1 byte STATUS 4 PDI module 5130 1 STATUS and 6 Autotest 2 bytes cosas urn STATUS Pes AC GUTS EON CS E at US sen Rs Ree AC 5 Ol hem e rore o a don tte kath t has euh Individual data storage Cumulated data storage CUM 1 5 Last cumulated data storage 1 1 Direct Data Transfer IMD 1 Block Data Transfer 0 Enid 04 gt Data TEOD 3 tng ee x P aot NE D elas Interrupting a measurement cycle BRK Automatic Use of a Motor Autotest TST amd AUT weed sawed oa bow ad x CA CI Internal Short Circuit
90. on the solder side of the circuit board The shield board must be removed to access these jumpers GROUND 7 47 330 J1 2 FLOATING GROUND INBUT AD 625 OVERVOLTAGE PROTECTION Y INPUT EMG Y E 15 FILTER E CAPACITOR 1MQ __ 330 INTEGRATOR INPUT CONFIGURATION 5 2 5150 Integrator Module Digital Part A TTL signal can be connected to the coaxial Lemo connector marked EXT TRIG The jumper J1 selects the active edge for the external trigger signal This input is not debounced so the input signal must be clean Jl on 1 2 Trigger on rising edge 40KQ pull down resistor METROLAB Instruments SA Jl on 3 4 Trigger on falling edge 40KQ pull up resistor The time between two active trigger edges must not be less than lms Jumper J2 is used to select the address of the module either as channel A or as channel B 1 1 Any other jumper RE p combination is invalid CHANNEL A CHANNEL B In section 3 1 it was stated that 5150 Integrator module is assigned to Channel or B by positioning the internal jumper If the PDI 5025 is delivered with only one 5150 Integrator module then it is factory set to channel A If the instrument is delivered
91. or jumpers location 5 1 5150 Integrator Module Analog Part The measurement coil is connected to the differential preamplifier by a four pin Lemo connector Pin connections are shown below pins 1 and 2 input pins 3 and 4 input Connector for the Coi Input Front View The analog ground can be left floating 300V or tied to ground with jumper J 1 The screening of the cable connecting the coil to the instrument can be connected directly to analog ground by placing jumper 2 between pins 2 and 3 However the screen can also be set at a voltage which is half way between the two input voltages This is achieved by placing jumper J2 between pins 1 and 2 In this case in order to avoid a short circuit it is essential that the coil connections are left floating and are not connected to METROLAB Instruments SA 25 26 the shield of the cable earth or the ground of the magnet etc See figure 6 If jumper J3 is in place factory default the input is balanced with an input impedance of 2MO If J3 is removed then the input is unbalanced but with an input impedance of 1000MO An optional low pass RC filter may be inserted before the input amplifier by removing jumpers 6 and 7 and by connecting capacitor between pads TP8 and TP9 The value of the capacitor can be calculated on the basis of an R value of 26600 6 and 7 short circuit the resistors of the RC filter Note 1 2 and 3 are located
92. orm the PDI 5025 to the host computer but the user should verify that the host is capable of accepting the quantity of data to be transferred 1 2 6 End of Data EOD As mentioned in sections 7 2 4 and 7 2 5 the End of Data string sent by the instrument when the buffer is empty and the host requests to read data can be programmed by the host computer By default the End of Data string is the character Ctrl Z ASCII 26 The EOD command allows the End of Data string to be modified to contain one or more characters The EOD command parameters are decimal ASCII codes separated by commas Example following the reception of the command EOD 69 109 112 116 121 13 10 the PDI 5025 will reply Empty The maximum length for the End of Data string is 20 characters If the EOD command is executed without any parameters then the default string Ctrl Z is assumed 1 2 7 Interrupting a measurement cycle BRK It may be necessary to stop the measurement cycle once it has begun This may be because of a programming error in the cycle itself or simply to restart a new cycle without waiting for the present one to end the RUN command being ignored during the measurement cycle To abort the measurement cycle the host should execute the BRK command This command is also used to stop measurements when externa triggers are used TRS X In this case the bit 3 of the Status 1 End of Run is set to 1 The BRK command has the following effects
93. ounters This permits the non active counters to be read without loss of counts The local microprocessor picks up the contents of each pair of counters at the end of each measurement period calculates the difference which is proportional to the integral of the coi voltage during this period then processes the data to generate the final result which is stored in memory prior to transfer to the host computer This data is expressed in 10 8 5 units A trigger circuit controls measurement sequences either with an internal programmable timer with a lms resolution or an externa incremental encoder that indicates the motion of the coil during measurements Finally a DC motor control circuit delivers a 12V or 24V 0 5A power signal to drive a motor in either direction For motors which need more power 2 TTL signals are provided for forward FW and backward BW commands of an external supply These outputs can be used as inputs if short circuited to ground to control the internal motor power supply in order to perform a manual conditioning of the mechanical system before an automatised sequence is undertaken Instruments SA 3 GAIN M
94. ove that the values in the TRI command can not be greater than the number of pulses per encoder rotation nor can they be negative The value of is also limited to the number of pulses per encoder rotation The command MOT A starts the motor in the sense defined by the s in the TRI command immediately following the reception of the RUN command and stops the motor at the end of the measurement sequence Instruments SA 37 38 Programming example of TRS E 360 TRI 140 8 10 3 1000 5025 with encoder and index Indicate a disk encoder with 360 cycles per rotation with an index Turn the motor in the backwards sense BW unti the index pulse is detected prepare a sequence of 11 measurements in the BW sense the first TRIGGER is at absolute position 140 pulses not cycles MOT A Set motor to automatic RUN Start the motor perform the measurements then stop the motor 6 6 2 2 Linear Encoder with Index TRS E S This case is identical to the one above except for the following points the absolute position either side of the index point can range from 223 to 4223 The value of in the TRI can be negative 6 6 2 3 Linear or Rotational Encoder without Index but with External Synchronisation TRS E S The external synchronisation signal must be connected to the SYNC input It is used to define the zero position of the encoder when it first occurs aft
95. pulse trains F amp Fr are sent in the two active counters during the programmed period T or motion At each trigger signal the content of each counter N and Nr is transferred to the microprocessor while 2 other counters resume counting The values N and Nr will be then be processed by the microprocessor according to the rules defined in next section before being transferred to the host computer The transformation of the input signal in the PDI Module may be expressed by the following equations V1726 Vi in the preamplifier 6 1 1000 The DC shift of 5V is expressed by V2 6 MP 5 If we call C the transfer function of the VFC expressed in Hz Volt the voltage value for obtaining F we can write G Vi 5 Instruments SA F C G Vi 5 C The expression 5 C which represents the frequency for which Vi 0 has a value equal to 1 4 of Fr described above since Fn 10 and Fr 2Fn this leads to the final expression EN 4 If T and T are the times of the start and end of a counting period between two trigger signals the count results N and Nr will represent the integral of F and Fr between T and As a consequence the former expression when integrated can be expressed by T2 T2 1 T2 ieee Gege vi at po 4 We know that T2 N sat TI and that T2 Nr TI and if we call R the result of the integration equation ie t
96. r in 10 78 Vs units Encoder power 5V and up to 500mA without short circuit protection Motor power 12V or 24V actively limited internally to 500mA Additional pins are allocated for external power unit control or motor manual control when Short circited to ground 4 3 Accuracy Setting time Time to match an input step 20ps Gain 1 200 at 100 8025 Gain 1000 Drift Manual offset adjustment effect Temperature coefficient after 1h30 warm Gain uV ppm of max input range uV C ppm of max input range 1 70 7 10 1 10 7 7 1 1 100 EIS 15 0 15 1259 1000 l 100 0 1 10 l All values are referred to an input voltage 2 Refer to an operator with an average skill level Drift variation versus time max per month 200V max per year 500nV Divide by Gain in order to refer to input METROLAB Instruments SA Gain Gain linearity max Gain deviation from the straight line crossing the zero in ppm of input range VFC Gain 100 kHz 500 kHz 1 MHz 1 200 10 20 60 1000 50 60 100 Gain stability vs temp 7 ppm 100kHz max temp coefficient 9 ppm VFC 500kHz 25 ppm 1 MHz Gain stability vs time per month 30 ppm per year 50 ppm Gain ratio error max 100 ppm when interchanging the Gain adjustment gain settings gain is factory set to 10
97. read int read pdi unsigned int pointer int nchar 0 nbtry 0 wait for data in serial port buffer while pointer bios serialcom COM RECEIVE port 0 amp OxFFOO amp amp nbtry lt nbtrymax if nbtry lt nbtrymax nchar 1 accept data until empty buffer while pointer bios serialcom COM RECEIVE port 0 amp OxFF00 nchar return nchar number of characters read 98 METROLAB Instruments SA PDI 5025 SUMMARY Status Registers Software Commands SYNTAX DE MNEMONIC PAGES SYNTAX DE MNEMONIC PAGES FAULT FAULT STATUS Command Overrange Data Trigger Synchro rg CHAnnel 33 59 IMD 1 48 62 2 Error Error of Ready CHA B IMD O block data trans 49 62 FLAG Run FNC Power ON Autotest Encoder Data Overlap CHA ENQ ENQuiry 62 button or failed Count Buffer Timeout SES Reset Error Full TRS T TRigger Source 37 59 FPT n m Front Panel 39 63 Infinite Run Forwards ad Trigger Sequence Active or TRS T S TRigger Source 37 59 STHd read STatus Hex 41 63 Backwards Timer Synchro STB d read STatus Bin Overrange Overrange Overrange TRS E TRigger Source 39 59 DSP i xxxx send char to 63 Encoder x DiSPlay TRS E S TRigger Source 38 59 a VER software VERsion 63 Error in OVR OVR Encoder Synch
98. ro Analog Not OFF Not OFF ES TB Clear oVeRrange 63 Measure gt Error gt Error RSE dd eons 999 Infinite Run Data Storage RGAi Read GAin 63 Sequence Active Transfer Mode TRS X TRigger Source 39 59 RCT Read CounTer 64 Active Mode eXternal TRSXSS TRigger Source 39 59 ZCT Zero CounTer 64 eXternal Synchro NBO O Not Brk 64 Micro Switches TRI s a n1 C1 n2 C2 n20 C20 NBO 1 Overrange TRigger sequence 99 2 35 60 TST perform TeST 51 64 z TRI Returns a string 60 IEEE 488 RS232c Switches BAUD containing the AUT read AUTo test 51 64 3 2 1 current values of the data 1 lt SWITCH POS gt 0 1 lt SWITCH 5 gt 0 sequence ISC i 0 Input Short Circ 52 65 SGA i d d Set GAin 33 60 ISC i 1 SGA 10 dd The default Gain at 2 DEVICE RATE power on 10 button 33 65 3 SELECTION FuNCtion ADJ i 1 ADJust offset 34 60 FNC 0 4 ADDRESS 8 bits 7 bits or ADJi O stop ADJust mode LLO O Local LOckout 65 5 2 stop bits 1 stop bit LLO 1 RS 232 C only IND s INDex 37 38 6 Always 0 Parity No Parity 60 MSK a 00 MaSK 55 65 7 Always 0 Even Odd MOT s MOTor 51 61 IEEE 488 only 8 NO CR LF CR LF XON XOFF XON XOFF MOT S a MOTor Stop SYN SYNchronization 53 66 9 IEEE 488 EN ae RS 232c MOT A MOTor Automatic RS 232 10 Talker Only List Talker Autonomous Conversational RUN RUN 61 SYN 1 SYNchronization 53 66 BRK BReak run 50 61 SYN O IEEE 488 EOD at an End Of Data 50 61 CUM 0 storage mode 48 62 CUM 1
99. s alee re RR i RS ae CR OR C AN 19 4 2 DIMISIT 20 4 3 mrg ixi Saure Rav vam Rau aeta uat paa a 20 NSTALLATI ON AND CONNECTI ONS 25 5 1 5150 Integrator Module Analog 25 52962 5150 Integrator Module Digital 26 253 5140 Trigger Module Encoder 1 28 5 4 5140 Trigger Module External Synchronisation 29 5 5 5140 Trigger Module 29 5 6 5130 mterrtace ess rec weave aver EXE TE Ea 29 5 7 5130 Interface Module IEEE 480 On brc rer 30 5 8 5130 nterface Module RS 232 bodas suede 30 NSTRUMENT SETTINGS 33 6 1 Power eq UCN COs uou dion perdo eto Rowdee doe 33 6 2 Channel Selectii Miian pea ions oro er a dora 33 6 3 Gain Selection and FNC xx ex ara ves 33 6 4 Or TS et adj US Ane TE ax za peat a aca ds 34 6 5 t egrator a coe bee 35 6 6 Programming The Integration 5 35 6 6 1 pr cgger Source TI MET adh sed ER xe 31 6 6 2 Pri gger Sources dad eue 31 6 6 2 1 Rotational Encoder with Index 31 6 6 2 2 Linear Encoder with Index 38 6 6 2 3 Linear or Rotational Encoder without Index but with External Synchronisatio
100. s powered up it performs an autotest which lasts five seconds and performs five preset measurements and verifies the results During the autotest the display shows the word Test Once finished if the autotest was successful the display will show the channel to which it is assigned and the current value of the gain Should the test proves incorrect the display will show the word Fail The user may obtain detailed information on the problems encountered during the autotest by examining status registers STATUS 5 and STATUS 6 see sections 7 1 5 and appendix IV The autotest may also be executed by the host computer by issuing a TST command Note Following the autotest the PDI 5025 returns to its previous state In case of an encoder with index the index position is lost and has to be reinitialized with the I ND s command During the autotest the PDI 5025 does not respond to any host computer commands sent via the RS 232 C interface while IEEE 488 commands will be executed once the autotest has finished Instruments SA 5 52 The command AUT allows the host computer to access the values measured by the autotest The instrument transfers this data in one block in a format similar to that shown below Correspondin nput Voltage a Gain Autotest Data 450 B 0 00 10 500 A 0 00 10 49420500 B 0 494 10 49399850 A 0 494 10 49410150 B 0 494 10 49400200 A 0 494 5 49410800 B 0 494 5 49399700 A 0 494 5 49
101. se the two inputs must be isolated form the ground of the connector Thus care Should be taken when using a coaxial cable to connect the coil Selection is made by jumpers see description of jumpers in section 10 1 The gain of the preamplifier may be set from 1 to 1000 in a 1 2 5 progression The gain may be controlled manually by use of the front panel GAIN button or by the host computer via the external interface n either case the value of gain is displayed on the front panel GAIN LED display All the analog parts of the integrator are fed by a floating 15V supply in order to allow a common mode of input coi voltage reaching z300V from ground As a consequence al commands eg gain commands and outgoing signals are transmitted via photocouplers 3 1 2 Bargraph Display On the front panel a LED bargraph display monitors the amplitude of the amplified signal from the coil as output from the preamplifier The outer LEDs of this display correspond to the 5V and 5V levels and are the plus and minus overrange indicators In the case of a signal exceeding METROLAB Instruments SA 10 the limit they remain lit until cleared by the host computer by manually pressing the FNC button or by changing the gain 3 1 3 Voltage to Frequency Converter VFC The VFC circuit is a module containing a very high precision Voltage to Frequency Converter F it also contains the 5V DC shifter for the input signal and the Reference Oscil
102. ted from the start of the measurement is stored in memory at the end of each integration interval If the command NBO 1 has been sent previously to the PDI 5025 the cumulated value is cleared to O zero at each occurrence of an overrange At the end of a run the number of available data is identical to the number of integration periods Bits 1 and 0 of Status 7 are set respectively to 0 and 1 1 2 3 Last cumulated data storage CUM 1 1 This mode stores only the last cumulated value That means when a reading is performed the integrated value from the beginning of the run until the last trigger preceding the reading time is transferred Pressing the FNC button resets the cumulated value Since the local processor needs time to perform calculations on raw data the trigger rate must not be too fast If this is the case the last cumulated available value is not the last measured value When this happens the character appears in the read string between the last digit and the channel descriptor example 12546 4 This mode is incompatible with the block data transfer I MD 0 and forces an immediate data transfer mode 1 This mode with an adequate TRI sequence allows the user to use the PDI 5025 as a fluxmeter 1 2 4 Direct Data Transfer 1MD 1 This is the default data transfer mode Measured data are read individually As soon as the measured data has been processed the DATA READY bit in STATUS 1 is set to 1
103. th the End Of Data string which by default is set to Ctrl Z ASCII 26 This string may be programmed by the user see section 7 2 6 1 2 5 Block Data Transfer IMD 0 This mode allows the internal data buffer to be emptied in one single block transfer Therefore it is not possible to obtain data whilst the measurement is in progress the host computer must wait until all the data have been taken and converted As soon as the last value has been converted the DATA READY bit is set to 1 bit 2 STATUS 1 To initiate the block transfer the host computer must send the ENQ command for the RS 232 C interface or address the instrument as a Talker for the IEEE 488 bus The PDI 5025 will then transmit all the data in the order that it was measured Each value is separated by the CR LF pair of characters If two channels are active the value for Channe is sent before the value for Channel A The End Of Data string default Ctrl Z is emitted immediately after the last data value The End Of Data string can be programmed with the EOD command see section 7 2 6 Note If the External Trigger is used then the measurement cycle must by terminated by the BRK command which will end the cycle and allow the data to be read in the Block Transfer mode Note this mode is incompatible with CUM 1 L and therefore cannot be executed in this case Instruments SA 49 50 Warning The Block Data Transfer is the most rapid way to transfer data f
104. the PDI 5025 returns lt CR gt lt LF gt The Data ready bit in STATUS 1 bit 2 being set to 1 indicates that a new measurement value is available MD 0 Flux values are read as a block at the end of the sequence of measurements and as soon as the microprocessor has completed the calculations The different values in the block are separated by a CR LF The bit 2 in STATUS 1 being set to 1 indicates that the block of data can be read Note this mode is incompatible with the CUM 1 L command ENQ Valid only for the RS 232C interface ENQuiry This command allows data to read in the manner specified by the MD command When using the EEE 488 interface this command is not valid and reading is carried out by addressing the PDI 5025 as a Talker Data are transferred according to the I MD command setting Not e when the data buffer has been read and reset a new read request will make the PDI 5025 return either the ASCII Dec 26 character Z or the string programmed with EOD This command is only used to read the measured values and must not be sent to read the status registers 62 METROLAB Instruments SA SYNTAX DEFAULT DESCRI PTI ON MNEMONI C FPT n ESSA n 1 enables the front panel trigger input Front Pane Trigger 0 disables the front panel trigger input Note this command can only be used when TRS X or TRS X S have been executed previously The typical application is to disable extern
105. the measurement cycle is terminated the motor if it is operational is stopped irrespective of the commands used to start it MOT MOT or MOT A disables the external trigger input all the data measured up to the instant that the BRK was received are valid and can be read by the host METROLAB Instruments SA ME TROLAB The PDI 5025 can also execute a BRK itself if any of the following errors occurs Overrange error bit 4 STATUS 1 Overlap timeout bit 0 STATUS 2 Measurement buffer full bit 1 STATUS 2 1 2 8 Automatic Use of a Motor MOT As described in section 5 5 a DC motor can be connected to the 5140 module to control the movements of the measurement coil Apart form the three commands MOT and 5 which are used to start and stop the motor there is also the possibility to control the motor automatically during a measurement cycle Thus the motor starts when the RUN command is received or the FNC button is pressed and stops when the measurement cycle is complete If is executed before the RUN command the motor will start after the RUN If MOT A is sent after a RUN the motor will start immediately following the reception of the MOT A This function remains active and it is not necessary to repeat the MOT A command before each measurement cycle The function is cancelled by the the reception of the command MOT S 1 2 9 Autotest TST and AUT Each ti me the PDI 5025 i
106. traction result depending on the 4 C G value Namely this coefficient 108 4 C G The result is also stored in the memory whilst awaiting transmission to the host controller Depending on the possible values and combinations of C and G there are 30 coefficients stored in EPROM selected according to the effective C G product Thus results are always expressed in the same units despite different Gain settings The consequence due to the maximum capacity of the N and Nr counters is that the maximum measuring range and resolution depend on the value of the C G product It is interesting to note that the 32 bit capacity is equivalent in both counters since F is expressed in form 0 Fn a 31 bit number plus sign and Fr in form of 2Fn a 32 bit number with 4 times higher resolution as described above Instruments SA The next table gives the values of maximum range and resolution for each possible C and G combi nati on G possible values of preamplifier Gain VEC C 1 2 5 10 20 50 100 200 500 1000 40 40 40 40 40 40 40 20 40 20 100KHz 10000 1110000 5000 2000 1000 500 200 100 50 20 10 40 40 40 40 40 40 40 20 40 20 300KHz 50000 1120001 1000 400 200 100 40 20 10 4 2 40 40 40 40 20 40 20 10 20 10 1MHz 1100000 t1000 500 200 100 50 20 10 5 2 1 MEASURING RANGE amp RESO
107. while nchar read_pdi pointer if pointer 4 1 endrunzl end of run bit while pointer 5 1 data ready bit read data until data ready bit 0 in status 1 while pointer 5 1 do write pdi ENQ r n ENQ command while nchar read pdi pointer convert characters into double value flagA 0 for i 0 i lt if pointerti gt 0 amp amp lt 9 pcharti pointer ti else if pointerti A flagA 1 if flagA valuea atof pchar printf 4d tCHA 10 0Lf tCHA 10 0Lf 10 8 V s n i mes val uea val ueb else valueb atof pchar do write pdi STB 1 r n read status 1 while nchar read_pdi pointer if pointer 4 1 endrun 1 end of run bit while endrun 1 write pdi DSP r n default display free poi nter free allocated memory end of main METROLAB Instruments SA 97 MANRSE C continued function write pdi send command to PDI 5025 void write pdi char pwchr while pwchr 0 _bios_serialcom _COM SEND port return function read pdi read data or parameters from PDI 5025 the read string is put at the position pointer the function value is the total number of characters
Download Pdf Manuals
Related Search
Related Contents
Concours Photo Numérique – Déclic 2014 – Formulaire de L`HIVER - Dominique SCHUELLER Vulcan-Hart 2XG45CF Specifications MA200CDR - Radio Materiel Sony Cyber-shot DSC-D700 User's Manual Router Billion FM900 Ultrasonic Open Channel Flowmeter G2 credle dcr 50 user manual 110110 R330 R430Z/R530Z/R630Z Copyright © All rights reserved.
Failed to retrieve file