Home

VM6068 - VTI Instruments

image

Contents

1. eode tied ue 114 ea meto 115 5 ooa diesen due ERE D Te De aceasta 116 SMAR PREV E e RR ERR AENEA 117 E E ina ANS 118 TRAC CVA ttis 119 555 trench etras ae tein eaa i det 120 TRAC FREE x eR aite c REN Rs eR E Ss ee eS RI iet dtes 122 TRACE LENG tete e dee dence ee ier ERE 123 TRACE POIN ettet aet pee e t aec e ree aede ee eene 124 REQUIRED COMMANDS tec 125 STATus OPERation CONDition A enne enne a entes eerie nennen ette eise etnies 125 STATUS OPERationt testet e EE e SERE E 126 ase eter OY S e 127 STATus PRESet ECC AUR E TERES ER 128 STATus QUEStionable CONDition eseeesesesseseeeeeeeee eene eere een 129 STATus QUEStionable ENABle n cr E E E eh USE TED eo Vete epe tuere 130 STATus QUESt
2. M 29 SERial E EEE EE EEEE EEEE E EE E 30 NEIREBSG OP Rm 31 SERiali CON TTOL CTS nnne hee ee rere PEU teet ens 32 SERIA CRG 33 SERIA PROTOCOL 2e etit met uu nii eani RI nt ht 34 SERial RECEIVE C ODE 55 edite rti teer E PR ETERNI EE Ee aes ERES 35 SERIaE REGCeIyeERROGMAS Kitts A E E ANS 36 SERial RECeive PARuty eins esc eren ede mei e dee 38 SER1aE S TAN d td eee eco a bees RR E etie aee edid pue per Ra eese HE 39 SERial TRANS mit PARIY nescire e eU ER GI RI ee See noe em 40 SERial TRANsmiCCLOCK DIVide eee hotte e me cete eI Bee en d epe Id 41 SERiaETRANsmit CEOCK SOURGG o p NIA d tee ero ce RETE 42 SERialTRANSmIt CODE tette adt tte ete eive ver eee da 43 SERial TRANSimit SBLLS oett eee EN ve fretta des 44 TRA CC DAT A S serere tm DNE SRL NES DES QS 45 been 46 utei t obe re d t ae ices 47 VM6068 Preface 3 VXI Technology Inc TRAGCGIBENG E initi cttm A ane 48 TRA CeiPOINIS deter odi TEE ann e P dicop Pan eant 49 XON XOFE FUNCTIONALITY seis decide de eie e te e sed se de ee a RR ER E cre ferenda 50 SERIA REG lverPAC Be EE AT 50 SERial RECeive PACE THReshold STOP vrinne a E O E TEA A a 51 SER
3. 14 Serial Interface Protocols hee eee e c eed Ue y dee cu be 16 VM 6068 Specifications nete ee tedio etes eite indc e eee e tee bee edes its 17 CO p M M 19 PREPARATION FOR iu 19 Installation 19 Calculating System Power and Cooling 19 Setting the Chassis Backplane nennen enne nnn 20 Setting the Logical Address onto e UNDE ORE S EORR UU DRUG E UR IER TES d 20 Front Panel Interface Wirmo ie EE ea Ru 21 RS 485 Wiring Termination 23 SECTION 25 PROGRAMMING woos LAU ee 25 Int od ction s s decet 25 vn D e eim e eye eed t d Pa eese ied ee Pede 27 EXAMPLES OF SCPI COMMANDS 5 tena A C E 28 dis taste dioit 28
4. Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive XON Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 8 bit binary value Description User definable XON character associated with pacing the receiver Examples Command Query Response Description SER1 REC XON H11 SER1 REC XON Related Commands 106 VM6068 Command Dictioinary www vxitech com SERial STANdard Purpose Sets the electrical interface standard for the selected channel Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt STANdard standard lt channel gt 1 2 3 4 default is Channel 1 standard 232 422 449 485 35 530 OFF Reset Value lt standard gt OFF Query Syntax SYSTem COMMunicate SERial lt channel gt STANdard Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response lt standard gt 232 422 449 485 V 35 530 OFF Description The Serial Standard command selects the desired physical interface standard for a given channel The available standards are RS 232 RS 422 RS 449 RS 485 EIA 530 and V 35 This command controls both the transmit and receive hardware For additional information refer to the section in this manual discussing the physical interface The Serial Standard query reports the selected physica
5. COMMunicate SERial lt channel gt RECeive PA CE XON NONE IRQ I TRIGGER lt trigline gt NONE Self evident XON When the receiving channel s queue capacity drops below its specified STOP threshold it will issue and XOFF When the receiving channel s queue empties out freeing up more than its specified START threshold it will issue an XON IRQ When the receiving channel s queue capacity drops below its specified STOP threshold it will trigger an interrupt TRIGGER When the receiving channel s queue capacity drops below specified STOP threshold it will yank on the specified trigline EXAMPLES SER2 REC PACE XON SER REC PACE 50 VM6068 Programming www vxitech com SERial RECeive PACE THReshold STOP The user specifies the minimum number of free buffers Stop Threshold expressed as a percentage This means that when the number of buffers available falls below the STOP THReshold an XOFF will be issued The stop threshold is not allowed to be less than 0 017857142 and must be less than the start threshold SYSTem COMMunicate SERial lt channel gt RECeive PACE THReshold STOP lt percent gt DEFINITIONS QUEUE The VM6068 has a queue for each of its 4 channels BUFFER Each Queue has 28 buffers BUFFER RAM Each of the 28 Buffers can allocate a maximum of roughly 8 k and a minimum of 28 as specifically documented in the TRACe POINts command DEFAULT 0 30 EXAMPLES SER REC PACE THR
6. Description Describes in detail what the command does and refers to additional sources Examples Present the proper use of each command and its query when available Related Commands Lists commands that affect the use of this command or commands that are affected by this command VM6068 Command Dictionary 71 VXI Technology Inc 72 VM6068 Command Dictioinary www vxitech com IEEE 488 2 COMMON COMMANDS CLS Purpose Clears the Status Register Type IEEE 488 2 Common Command Command Syntax CLS None Reset Value N A Query Syntax None Query Parameters N A Query Response N A Description This command clears all event registers clears the OPC flag and clears all queues except the output queue Examples Command Query Response Descriptions CLS Clears all status and event registers Related Commands None VM6068 Command Dictionary 73 VXI Technology Inc ESE Purpose Sets the bits of the Event Status Enable Register Type IEEE 488 2 Common Command Command Syntax ESE lt mask gt mask numeric ASCII value from 0 to 255 Reset Value N A Query Syntax ESE Query Parameters None Query Response Numeric ASCII value from 0 to 255 Description The Event Status Enable command is used to set the bits of the Event Status Enable Register See
7. 134 VM6068 Command Dictioinary www vxitech com TST 0 tests the input and output capabilities by transmitting and receiving on alternate channels as follows Transmit Receive Channel 1 Channel 3 Channel 2 Channel 4 Channel 3 Channel 1 Channel 4 Channel 2 As with TST a bit value of 1 in any location indicates a failure while a 0 value indicates successful test If TST 0 encounters a failure the test is aborted It then reports the standard being tested at the time of the failure as well as the test the standard failed The standard 15 reported in data bits 8 through 11 The standards are identified as follows Failed Standard Data Bits 8 11 0001 RS 232 0010 RS 422 0011 RS 485 0100 RS 423 0101 RS 449 0110 RS 530 0111 V 35 There are two sets of tests run for each standard The tests transmit data from one channel and recieve it on another channel Since the unit cannot distinguish between the two if either channel fails the results will be the same The first set of tests are reported in bits 0 through 2 with bit 3 set to 0 and the second set of tests are reported at data bits 0 through 2 with bit 3 set to 1 Data bits 4 through 7 and 11 through 15 are not used for test failure reporting If a test from the first set fails it is reported at data bits 0 through 3 as First Test Set Failed Data Bits 0 3 000
8. TRANsmit SBITs bits Where channel is 1121314 default is Channel 1 Where bits is either 1 or 2 EXAMPLES SER4 TRAN SBIT 1 Sets the number of stop bits to one for Channel 4 SERA TRAN SBIT Returns the number of stop bits for 1 Channel 4 which is currently set to 1 44 VM6068 Programming www vxitech com TRACe DATA The trace data command is used to load or retrieve data to or from the transmit or receive queues using the word serial interface Data may be loaded into a transmit queue using the block format or by using a series of comma separated values The Trace Data query is used to retrieve received data in the format determined by FORMat DATA command TRACe DATA lt trace_name gt lt block gt lt NRf gt lt NRf gt Where trace name is TCH1 TCH2 TCH3 TCH4 for transmit queues Where block is as defined in IEEE 488 2 Where lt NRf gt is as defined in IEEE 488 2 Note When the query for the above command is used the trace names are RCH1 RCH2 RCH3 and RCHA for receive queues EXAMPLES TRAC DATA TCH1 65 66 67 Loads data to the transmit queue using word serial interface TRAC DATA RCH1 Retrieves data from the receive queue using 13ABC word serial interface in the format determined by FORMAT DATA command TRAC DATA TCH2 18ABCDEFGH lt block gt lt Definite Length Arbitrary Block Response Data gt see section 8 7 9 of IEEE STD 488 2 VM606
9. 0 1 OFF ON Default value for Channel is 1 Reset Value 0 All handshaking disabled OFF Query Syntax SYSTem COMMunicate SERial lt channel gt CONTrol CTS Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response Returns the currently set value of the lt boolean gt parameter Description The Serial Control CTS command selects if CTS handshaking is to be used on a specific channel The CTS input is a true hardware handshaking input and does not require CPU intervention to operate If CTS handshaking is enabled the input must be true for transmission to occur on the selected channel If the input goes false mid character the current character is completed and transmission is stopped until the input is re asserted The Serial Control CTS query reports if this handshake mode is enabled or not Examples Command Que Response Description SER3 COUN CTS 1 SER3 CONT CTS Related Commands 90 VM6068 Command Dictioinary www vxitech com SERial CRC Purpose Selects CRC generation in HDLC mode Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt CRC lt type gt lt channel gt 1 2 3 4 default is Channel 1 lt type gt 6 CCITT32 Reset Value At reset all channels are placed in the UART mode which has no CRC When a channel is placed in HDLC mode the CCITT16 CRC
10. E Technology VM6068 HIGH PERFORMANCE SERIAL INTERFACE MODULE USER S MANUAL P N 82 0027 000 Released February 19 2007 VXI Technology Inc 2031 Main Street Irvine CA 92614 6509 949 955 1894 www vxitech com TABLE OF CONTENTS INTRODUCTION TABLE OF CONTENTS ete cov eie vae ace oan e depo acetone Bee eerie Vande on eed teks 3 MaMa hem Ue 7 eta uere ier DUREE DU 7 Limitation of Warranty 3 e tae eee RR Eee nd 7 Restricted Rights Eegend aee eee t eee teh ptu i tete eA i diea ges 7 DECLARATION OF CONFORMILTY rece feine eei bee eet aenn bee rae 8 GENERAL SAFETY INSTRUCTIONS efe eee cese se tree cord oet ves e eben e EP Fere epa La re vds Td 9 i leak tdt se mie ERI e e Nee E 9 M 9 SUPPORT RESOURCES 11 SECTION 1 ee 13 INTROBUG HON tutte e t ree t t E ROMERO I nu De IR DU 13 Io estu 13 DescfiptlODs ms e heo ttt
11. tchan msg3 CALL ibwrt LA trace data tchan msg4S CALL ibwrt LA trace data tchan msgb NEXT REM Look at messages received and verifies REM Read channel 1 for data message CALL ibwrt LA CALL ibrd LA REM Include all except the CRC in the test tests left 1 REM If the received data doesn t match 15 ibent 3 trace data rchi string then error they are correct and mask to full compare in the receive string IF test lt gt msgl1 THEN PRINT Message doesn t match Expected msg1 Received test GOTO CTRLC END IF REM Read channel 1 for broadcast message CALL ibwrt LA trace data rchi CALL ibrd LA 15 VM6068 Programming 59 REM Include all except the CRC in the test string testS left l ibcnt 3 REM If the received data doesn t match then error IF test lt gt msgb THEN PRINT Message doesn t match Expected GOTO CTRLC END IF REM Read channel 2 for data message CALL ibwrt trace data rch2 CALL ibrd LA 1 msgb REM Include all except the CRC in the test string testS left l ibcnt 3 REM If the received data doesn t match then error IF test lt gt msg2 THEN PRINT Message doesn t match Expected GOTO CTRLC END IF REM Read channel 2 for broadcast message CALL ibwrt LA trace data rch2 CALL ibrd LA 1 msg2 REM Include all except the CRC in
12. BITS lt bits gt lt Cchannel gt 1 2 3 4 default is Channel 1 bit 5 6 7 8 Reset Value lt bits gt 8 on all channels Query Syntax SYSTem COMMunicate SERial lt channel gt BITS Query Parameters channel 1 2 3 4 default is Channel 1 Query Response Returns the currently set value of the lt bits gt parameter Description The Serial Bits command sets the number of transmit and receive data bits on the selected channel This command is only valid in UART mode In non UART mode the query response is always 8 The query reports the number of transmit and receive data bits from the selected channel Examples Command Query Response Description SER4 BITS 7 SER4 BITS Related Commands SERial PROTocol 88 VM6068 Command Dictioinary www vxitech com SERial CLOCk Purpose Sets the direction of the bi directional clock Type Setting Command Syntax SY STem COMMunicate SERial lt channel gt CLOCk lt direction gt lt channel gt 1 2 3 4 default is Channel 1 lt direction gt IN OUT Reset Value Bi directional clocks are set for IN on all channels Query Syntax SYSTem COMMunicate SERial lt channel gt CLOCk Query Parameters channel 1 2 3 4 default is Channel 1 Query Response lt direction gt IN OUT Description There is one bi directional clock
13. Description TRAC DATA FEED TCH1 FIFO OPC 1 TRAC DATA FEED NONE TCHI Related Commands VM6068 Command Dictionary 121 VXI Technology Inc TRACe FREE Purpose Queries the amount of memory that is unused in a queue Type Query Command Syntax None Query Only N A Reset Value N A Query Syntax TRACe FREE lt trace_name gt Query Parameters lt trace_name gt TCH1 TCH2 TCH3 TCH4 for transmit queues lt trace_name gt RCH1 RCH2 RCH3 RCH4 for receive queues Query Response Numeric ASCII value from 0 to BUFFER SIZE Description The Trace Free query reports the amount of available memory in the selected queue The returned value reports the number of unused data bytes Examples Command Query Response Description TRAC FREE TCH4 1024 Related Commands TRACe POINts lt trace_name gt lt points gt 122 VM6068 Command Dictioinary www vxitech com TRACe LENGth Purpose Queries the number of characters in the specified queues Type Query Command Syntax None Query Only N A Default Value N A Query Syntax TRACe LENGth lt trace_name gt Query Parameters lt trace_name gt TCH1 TCH2 TCH3 TCH4 for transmit queues lt trace_name gt RCH1 RCH2 RCH3 RCH4 for receive queues Query Response Numeric ASCII value from 0 to BUFFER SIZE Description The Trace Length query
14. I SERial TRANsmit XOFF IEEE STD 488 2 Common 5 21 5 TRANsmit XON INTeger SMARTREV 9 5 ter o e ore EE 117 STATus OPERation CONDition 125 K STATus OPERation ENABle gis 5 127 Keywords eee eerie eoe edente ede aene 26 27 STATus PRBSet 2t rtt Ide e o o cose 128 STATus QUEStionable CONDition w 129 L STATus QUEStionable ENABIe 130 STATus QUEStionable EVENt e131 logical address eee 19 20 SYSTem ERROor eee ener nne 132 loop back connector essen 134 5 5 2 020 00040 001 00 133 VM6068 Index 137 T TRAC6 CLOS ien ecu rh I ede 118 DATA oiei a E E E 119 TRACe DATA FEED nesccaine 120 TRACE FREE E E a 122 TRACe LBENGt onere rS 123 TRACe POINts TST OP QUETI ett RI Coe HERE IER EINER Cede U UART mode 16 30 40 44 88 91 97 98 103 113 114 V etnia fare a UH 13 14 18 20 13 14 17 19 25 VXIplug amp play Driver Example sess 64 W WEEE sisi 9 VXI Technology Inc 138 VM6068 Index
15. Query Syntax None Query Parameters N A Query Response N A Description The Wait to Continue command halts the execution of commands and queries until the No Operation Pending message is true This command makes sure that all previous commands have been executed before processing It provides a way of synchronizing the module with its master Examples Command Query Response Description WAI Related Commands 82 VM6068 Command Dictioinary www vxitech com INSTRUMENT SPECIFIC SCPI COMMANDS BAUD Purpose Sets the baud rate for a given baud rate generator Type Setting Command Syntax SYSTem COMMunicate BAUD lt generator gt lt baud_rate gt lt divisor gt lt generator gt 1 2 3 4 baud rate numeric ASCII value from 367 to divisor 1 8 16 32 Reset Value baud rate 9615 384615 on all generators divisor 16 all generators Query Syntax SYSTem COMMunicate BAUD lt generator gt Query Parameters generator 1 2 3 4 Query Response Returns the values currently set for the lt baud_rate gt and lt divisor gt parameters in the following format lt baud_rate gt lt divisor gt lt baud_rate gt Numeric ASCII value from 367 to divisor 1 8 16 32 Description The Baud command sets the baud rate for one of four baud rate generators available in the VM6068 Generator 1 is used for Channel 1 g
16. SYSTem COMMunicate SERial lt channel gt TRANsmit CLOCk DIVide Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 1 8 16 32 Description The Serial Transmit Clock Divide command sets the baud rate divider ratio used in receiver when sampling data The divide ratio is normally set to 1 when synchronous clocking is selected and is normally set to 16 when asynchronous clocking is used The other divide ratios are provided for further flexibility It is important to consider the selected divide ratio when setting the desired baud rate The supplied clock will have to operate at a rate equal to the desired baud rate times the divide ratio Examples Command Query Response Description SER2 TRAN CLOC DIV 1 SER2 TRAN CLOC DIV Related Commands SERial TRANsmit CLOCk SOURce BAUD VM6068 Command Dictionary 109 VXI Technology Inc SERial TRANsmitCLOCk SOURce Purpose Selects the baud rate clock source for a transmitter Type Setting Command Syntax SYSTem COMMunicate SERial channel TRANsmit CLOCk SOURce source lt channel gt 1 2 3 4 default is Channel 1 source EXTI EXT2 EXT3 EXTA INT1 INT2 INT3 INT4 Reset Value Channel 1 INT1 Channel 2 INT2 Channel 3 INT3 Channel 4 INT4 Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit CLOCk
17. SYSTem COMMunicate SERial channel RECeive IDLe lt idle_count gt 118 VM6068 Command Dictioinary www vxitech com TRACe DATA Purpose Loads or retrieves data to or from the specified queue using the word serial interface Type Data movement Command Syntax TRACe DATA lt trace_name gt lt block gt lt NRf gt lt NRf gt CHINE lt trace name gt TCHI TCH2 TCH3 TCH4 for transmit queues lt block gt As defined in IEEE 488 2 lt NRf gt As defined in IEEE 488 2 Reset Value N A Query Syntax TRACe DATA lt trace_name gt Query Parameters lt trace_name gt RCH1 RCH2 RCH3 RCH4 for receive queues Query Default Value trace name RCHI Query Response As set by the FORMat DATA command Description The Trace Data command is used to load and retrieve data to or from the transmit or receive queues using the word serial interface Data may be loaded into a transmit queue using the block format or by using a series of comma separated values See the FORMat DATA command for details on data formats The Trace Data query is used to retrieve received data The format of the received data 15 determined by the FORMat DATA command See the FORMat DATA command for further details on data formatting Examples Command Que Response Description TRAC DATA TCH1 65 66 67 TRAC DATA 3 LABC Related Commands FORMat DATA lt channel
18. The mating connector is an IDC Insulation Displacement Connector component and is available from a variety of sources The connector attaches to two 34 conductor 0 050 centers ribbon cable and the pin out has been selected to allow for using the twisted pair type of ribbon cable Some manufacturers also allow the use of discrete 30 gauge stranded wire VM6068 Preparation for Use 21 Signal Name TXD TXD RXD RXD RTS RTS CTS CTS DTR DTR DSR DSR TXC TXC RXC RXC GROUND VXI Technology Inc TABLE 2 1 J200 J201 AND J202 PIN OUT J200 J201 and J202 PIN OUT for V 35 RS 422 RS 485 RS 449 and 530 Type Channel 1 Pin Channel 2 Pin Channel3 Pin Channel 4 Pin 53 Output 2 50 3 mw 3 a 5 55 4 2 3 5 252 9 57 6 4 40 58 59 8 6 a2 60 9 7 49 61 10 28 4 62 Iu 11 9 4 63 nR 90 4 64 13 3 4 65 66 95 Power 17 18 51 52 Signal Name J200 J201 and J202 PIN OUT for RS 232 Type Channel 1 Pin Channel 2 Pin Channel 3 Pin Channel 4 Pin 35 Input 8 Opt 5 3 399 22 VM6068 Preparation for Use www vxitech com RS 485 WIRING TERMINATION DIAGRAM In order to communicate between VM6068 channels with a RS 485 connection an impedance must be applied on the transmitting line to adjust the tri
19. 1 Where type is EVEN ODD NONE IGN ZERO EVEN Received characters are checked for even parity ODD Received characters are checked for odd parity NONE No parity is checked on received characters If a parity bit is sent to the receiver it may cause a framing error This also turns off the parity for the transmitter IGNore All parity errors on received data are ignored ZERO Received characters are checked for a 0 parity bit ONE Received characters are selected for a 1 parity bit EXAMPLES SER1 PROT UART Setting Channel 1 protocol to UART SER2 REC PARITY EVEN Sets Channel 2 s parity type to EVEN SER2 REC PAR Return the EVEN parity type used ona EVEN selected receive Channel 2 SER1 REC PAR ONE Sets the parity of Channel 1 to one parity bit VM6068 Programming www vxitech com SERial STANdard The serial standard command sets the desired physical interface standard for the selected channel The available standards are RS 232 RS 422 RS 449 RS 485 V 35 and EIA 530 This command controls both transmit and receive hardware SYSTem COMMunicate SERial lt channel gt STANdard standard Where channel is 1121314 default is Channel 1 Where standard is 232 1422 449 485 V 35 EIA 530 EXAMPLES SER2 STAN 422 Sets the physical interface standard as 422 for Channel 2 SER2 STAN Returns the physical interface standard for 422 Channel 2 which is curr
20. EXAMPLES TRAC FREE TCH1 Queries the amount of unused memory in 100 transmit queue TCHI TRAC FREE RCH2 Queries the amount of unused memory in 1000 receive queue RCH2 VM6068 Programming 47 VXI Technology Inc TRACe LENGth This command queries the number of characters in the specified queue TRACe LENGth trace name Where trace name specifies the queue whose number of characters present is to be queried EXAMPLES TRAC LENG TCH1 Queries the number of characters present in 100 transmit queue TCHI TRAC LENG RCH3 Queries the number of characters present in 1002 receive queue RCH3 48 VM6068 Programming www vxitech com TRACe POINts This command sets the size of a transmit or receive queue TRACe POINts lt trace_name gt lt points gt Where lt trace_name gt specifies the queue size is to be configured Where lt points gt specifies the size of the queue EXAMPLES TRAC POIN TCH1 2500 Configures the size of transmit queue TCH1 as 2500 bytes TRAC POIN RCH4 4500 Configures the size of receive queue RCH4 as 4500 bytes TRAC POIN Queries the size of receive queue RCH4 RCH4 4500 VM6068 Programming 49 VXI Technology Inc XON XOFF FUNCTIONALITY SERial RECeive PACE This command is used to pace the receiver channel s receive queue THReshold is monitored When a THReshold limit has been exceeded the appropriate action will be taken SYSTem
21. Inc APPPENDIX TST 0 QUERY The TST 0 query is loop back test and requires a loop back connector be connected to the VM6068 prior to executing the query see Table 4 4 for connector details To conduct the loop back self test simply send TST 0 query A successful self test performance will result in a 0 response Pin Function Input Output Pin Function Input Output 1 TXD 37 RXD I 2 TXD 38 RXD I 3 RXD I 35 TXD 4 RXD I 36 TXD O 5 RTS 41 CTS I 6 RTS 42 CTS I 7 CTS I 39 RTS O 8 CTS I 40 RTS O 9 DTR 45 DSR I 10 DTR 46 DSR I 11 DSR I 43 DTR 12 DSR I 44 DTR O 13 TXC 49 RXC Io 14 50 IO 15 RXC IO 47 TXC 16 TO 48 TXC 17 GND 51 GND Not conencted 18 GND 52 GND Not conencted 19 TXD 55 RXD I 20 TXD O 56 RXD I 21 RXD I 53 TXD 22 1 54 TXD O 23 RTS O 59 CTS I 24 RTS O 60 CTS I 25 CTS I 57 RTS O 26 CTS I 58 RTS O 27 DTR 63 DSR I 28 DTR 64 DSR I 29 DSR I 61 DTR 30 DSR I 62 DTR O 31 TXC 67 RXC Io 32 68 33 IO 65 TXC 34 TO 66 TABLE 4 4 LOOP BACK TEST CONNECTOR
22. Manual this manual components should be immediately inspected for damage upon receipt of the unit Once the VM6068 15 assessed to be in good condition it may be installed into an appropriate C size or D size VXIbus chassis in any slot other than slot 0 The chassis should be checked to ensure that it is capable of providing adequate power and cooling for the VM6068 Once the chassis is found be adequate the VM6068 s logical address and the chassis backplane jumpers should be configured prior to the VM6068 s installation CALCULATING SYSTEM POWER AND COOLING REQUIREMENTS It is imperative that the chassis provide adequate power and cooling for this module Referring to the chassis user s manual confirm that the power budget for the system the chassis and all modules installed therein is not exceeded and that the cooling system can provide adequate airflow at the specified backpressure It should be noted that if the chassis cannot provide adequate power to the module the instrument may not perform to specification or possibly not operate at all In addition if adequate cooling is not provided the reliability of the instrument will be jeopardized and permanent damage may occur Damage found to have occurred due to inadequate cooling would also void the warranty of the module VM6068 Preparation for Use 19 VXI Technology Inc SETTING THE CHASSIS BACKPLANE JUMPERS Please refer to the chassis User s Manual for furt
23. aU es Behe 95 gt RECeIVe ERROEM ASK eret eR ER RI uk E ae deed ee ERA 96 REGeive HA DDTesSS ene hte tee ee Ete Dh aee e erre tates ies 97 gt idi e LUE M te RT e 98 SERI3ERECeiIVe IDDB6 nione eite ibus eie inimi 99 SERI3EREC6GIVeIPACE Aie t RUD E 100 SERial REGeive PACE THReshold rette re PH Eee eee ETE xa bee ee Reo 101 SERial RECeive PA CE THReshold STOP iir ee de RH ERE ER X ER Te RES 102 SERial RECeive PARity eee eter e ee E dec d re Eee 103 SERIaEREGeive S TATUS ONE REIR ER 104 4 VM 6068 Preface www vxitech com 5 n vas ere er tese 105 SERIaE RECeilVe X QN necem n ee RR e RTI ROT X REPE UAI 106 SER1aESTANdatd 3 aane Rete rp pee IBN RT dled CORRE Rha BETES 107 Simi ttim 108 SERial EFRANSmit CLOCK DIV 106 i i dene oen ERR RERO ARN Dre treten ten tud s 109 SERiaE TRANSmiCCLOCISOURGS trece itte ere cert cer eee E 110 SERial TRANSmit CODE ceci cere ENS 111 SERIA TRANS MItt PAGCE 4 intente ies ceeds ee dete aquia teet eiie 112 SERial TRANsmit PARIty AREE 113 5
24. associated with each channel and one tri state clock associated with each channel The bi directional clock is labeled RXCx on the connector pin out At reset the bi directional clock is made an INput to the module Under program control this clock can be made an OUTput from the module When a bi directional clock is made an output it sources the TXCx clock signal When a bi directional clock is made an input it can be selected as a clock source for internal baud rate generation A bi directional clock is selected as a source with the designator EXTx Note There are certain restrictions on the use of the bi directional clock as a clock source Channels 1 and 2 can only select EXTI or EXT2 Channels 3 and 4 can only select EXT3 and EXTA The tri state clock is labeled TXC on the connector pin out At reset this clock is driven out Under program control this clock is tri stated by setting SERial CLOCk OUT Examples Command Query Response Description SER2 CLOC OUT SER2 CLOC OUT Related Commands SERial RECeive CLOCk SOURce SERial TRANsmit CLOCk SOURce VM6068 Command Dictionary 89 VXI Technology Inc SERial CONTrol CTS Purpose Enables or disables the CTS handshaking on a serial channel Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt CONTrol CTS lt boolean gt lt channel gt 1 2 3 4 default is Channel 1 lt boolean gt
25. clock source for Channel 1 SER2 TRAN CLOC SOUR 1 Configures EXTI as the baud rate clock source for Channel 2 SER2 TRAN CLOC SOUR Queries the baud rate clock source for 1 Channel 2 SER3 TRAN CLOC SOUR 4 Configures EXT4 as the baud rate clock source for Channel 3 SER3 TRAN CLOC SOUR Queries the baud rate clock source for EXT4 Channel 3 42 VM6068 Programming www vxitech com SERial TRANsmit CODE This command configures the data encoding method for a transmit channel See SERial RECeive CODE SERial lt channel gt TRANsmit CODE encode Where lt channel gt specifies the serial channel whose data encoding method is to be configured default isChannel 1 Where encode specifies the data encoding method to be configured EXAMPLES SER1 TRAN CODE DMAN Configures Differential Manchester as the data encoding method for Channel 1 SER2 TRAN CODE 1 Configures as the data encoding method for Channel 2 SER2 TRAN CODE Queries the data encoding method for 1 Channel 2 VM6068 Programming 43 VXI Technology Inc SERial TRANsmit SBITs The serial transmit sbits command sets the number of stop bits on the selected transmit channel It is important to note that this command is not applicable for RECEIVE channels This command is only valid in the UART mode For non UART mode this command is ignored SYSTem COMMunicate SERial lt channel gt
26. command Keywords can have both a short form and a long form some commands only have one form The short form uses just the keyword characters in uppercase The long form uses the keyword characters in uppercase plus the keyword characters in lowercase Either form 15 acceptable Note that there are no intermediate forms characters of the short form or all characters of the long form must be used Short forms and long forms may be freely intermixed The actual commands sent can be in upper case lower case or mixed case case is only used to distinguish long form and short form for the user As an example these commands are all correct and all have the same effect R2 rec par even R2 receive par even R2 rec parity even R2 receive parity even RIAL2 REC PAR EVEN RIAL2 RECEIVE PAR EVEN RIAL2 REC PARITY EVEN RIAL2 RECEIVE PARITY EVEN E E Dx Er E E D EH 2 Co The following command is not correct because it uses part of long form of SERial but not all letters of the long form SERI2 REC PARITY EVEN incorrect syntax additional i of the SCPI commands also have a query form unless otherwise noted Query forms contain a question mark The query form allows the system to ask what the current setting of a parameter 15 The query form of the command generally replaces the parameter with the question mark Query responses
27. is currently set to ONE 40 VM6068 Programming www vxitech com SERial TRANsmit CLOCk DIVide This command configures the baud clock divide ratio used by the transmitter SERial lt channel gt TRANsmit CLOCk DIVide ratio Where channel specifies the serial channel whose transmitter baud clock divide ratio is to be configured default is Channel 1 Where ratio specifies the divide ratio to be configured EXAMPLES SER1 TRAN CLOC DIV 32 SER2 TRAN CLOC DIV 8 SER2 TRAN 8 Configures the baud clock divide ratio of Channel 1 as 32 Configures the baud clock divide ratio of Channel 2 as 8 Queries the baud clock divide ratio of Channel 2 VM6068 Programming 41 VXI Technology Inc SERial TRANsmit CLOCk SOURce This command configures the baud rate clock source for a serial channel s transmitter SERial channel TRANsmitter CLOCk SOURce source Where lt channel gt specifies the serial channel whose baud rate clock source is to be configured default is Channel 1 Where source specifies the baud rate clock source to be configured Note that Channel 1 and 2 can be only connected to EXTI or EXT2 if an external source is to be selected Similarly Channel 3 and 4 can be only connected to EXT3 or EXTA if an external source is to be selected else an instrument error is generated EXAMPLES SRE1 TRAN CLOC SOUR INT1 Configures INTI as the baud rate
28. is selected Query Syntax SYSTem COMMunicate SERial lt channel gt CRC Query Parameters channel 1 2 3 4 default is Channel 1 Query Response CCITT 16 CCITT32 NONE Description The Serial Receive CRC command selects the type of automatic CRC generation and checking that the VM6068 performs when in HDLC mode The CRC types are defined by the following polynomials CCITT16 X16 X12 5 1 CCITT32 X32 X26 X23 X22 X16 X12 X11 X10 X8 X7 X5 X44 X2 X1 1 Trying to set a CRC type when in UART mode will generate an error Querying the CRC when in UART mode will return a value of NONE Examples Command Query Response Description SER3 CRC CCITT32 SER3 CRC CCITT32 Related Commands SERial PROTocol VM6068 Command Dictionary 91 VXI Technology Inc SERial PROTocol Purpose This command sets the serial interface OSI layer 2 protocol Type Setting Command Syntax SYSTem COMMunicate SERial channel PROTocol lt type gt channel 1 2 3 4 default is Channel 1 lt type gt HDLC UART Reset Value lt type gt UART Query Syntax SYSTem COMMunicate SERial channel PROTocol Query Parameters channel 1 2 3 4 default is Channel 1 Query Response lt type gt HDLC UART UNKNOWN Description The Serial Protocol command sets the serial inte
29. more information on coding methods Note Here when levels are mentioned it refers to logical levels Different electrical standards produce different voltage levels on the signal lines Examples Command Query Response Description SER3 REC CODE MANC SER3 REC CODE MANC Related Commands SERial TRANsmit CODE VM6068 Command Dictionary 95 VXI Technology Inc SERial RECeive ERRor MASK Purpose Masks reporting of selected errors Type Setting Command Syntax SYSTem COMMunicate SERial channel RECeive ERRor MASK lt bits gt lt channel gt 1 2 3 4 default is Channel 1 bits 0 1 Reset Value 1 allows reporting of the error Query Syntax None Command Only Query Parameters N A Query Response N A Description This 15 a setup item that sets a mask of what types of errors will be reported by triggering the front panel LED The mask has a direct correlation to the Buffer Descriptor A bit of 1 allows the error 0 masks the error Default mask for UART mode for HDLC mode See this command in the previous section for error descriptions Examples Command Query Response Description SER3 REC ERR MASK Masks all errors on Channel 3 Related Commands SYSTem COMMunicate SERial lt channel gt RECeive STATus NEXT ALL 96 VM6068 Command Dictioinary www vxitec
30. pacing the transmitter Examples Command Query Response Description Related Commands 116 VM6068 Command Dictioinary www vxitech com SMARTREV Purpose Type Command Syntax Command Parameters Reset Value Query Syntax Query Parameters Query Response Description Examples Related Commands Determine the current revision of the Smart Application Query only N A N A N A SMARTREV N A Software revision level of the Smart Application Report the current revision of the Smart Application Command Query Response Description SMARTREV 1 16 The Smart Application is revision 1 16 VM6068 Command Dictionary 117 VXI Technology Inc TRACe CLOSe Purpose Closes the Buffer Descriptor Type Instrument specific Command Syntax TRACe BUFFer CLOSe channel lt channel gt 1121314 Reset Value N A Query Syntax None Command Only Query Parameters N A Query Response N A Description Manually close a Buffer Descriptor BD This feature is considered complimentary to the SERial RECeive DLe command If a user specifies zero 0 for an idle count then this command would be used to close the BD This typically would be done before a query Examples Command Query Response Description TRAC BUFF CLOS RCH1 Related Commands
31. reports the number of characters in the selected queue This allows the user to calculate the number of additional characters that may be queued Examples Command Query Response Description TRAC LENG RCH4 128 Related Commands VM6068 Command Dictionary 123 VXI Technology Inc TRACe POINts Purpose Sets the size of a transmit or receive queue Type Setting Command Syntax TRACe POINts lt trace_name gt lt points gt lt trace name gt TCHI TCH2 TCH3 TCH4 for transmit queues trace gt RCHI RCH2 RCH3 RCHA for receive queues points numeric ASCII value from 2 to the size of the RAM installed Reset Value lt points gt 1024 Query Syntax TRACe POINts lt trace_name gt Query Parameters trace name TCH2 TCH3 TCH4 for transmit queues trace name RCH2 RCH3 RCH4 for receive queues Query Response Numeric ASCII value from 2 to the size of the buffer RAM installed Description The Trace Points command sets the size of a transmit or receive queue It allocates buffer RAM from an available pool to each queue Note TRACe POINts always rounds up to the next multiple of 28 If the number of points specified exceeds the available memory the maximum amount of memory is allocated to the queue and an error is generated Note that any time the number of points in a queue is changed the data in all
32. the test string testS left l ibcnt 3 REM If the received data doesn t match then error IF test lt gt msgb THEN PRINT Message doesn t match Expected GOTO CTRLC END IF REM Read channel 3 for data message CALL ibwrt LA trace data rch3 CALL ibrd LA 1 msgb REM Include all except the CRC in the test string test left l ibcnt 3 REM If the received data doesn t match then error IF test msg3 THEN PRINT Message doesn t match Expected GOTO CTRLC END IF msg3 VXI Technology Inc Received test Received test Received test Received test 60 VM6068 Programming www vxitech com REM Read channel 3 for broadcast message CALL ibwrt LA trace data rch3 CALL ibrd LA 1 REM Include all except the CRC in the test string test left l ibcnt 3 REM If the received data doesn t match IF test msgb THEN then error PRINT Message doesn t match Expected msgb Received test GOTO CTRLC END IF REM Read channel 4 for data message CALL ibwrt LA trace data rch4 CALL ibrd LA 15 REM Include all except the CRC in the test string test left l ibcnt 3 REM If the received data doesn t match then error IF test lt gt msg4 THEN PRINT Message doesn t match Expected msg4 Received test GOTO CTRLC END IF REM Read channel 1 for broadcast message CALL ibwrt LA tra
33. to VTI and VTI shall prepay all returns of the product to the buyer However the buyer shall pay all shipping charges duties and taxes for products returned to VTI from another country VTI warrants that its software and firmware designated by VTI for use with a product will execute its programming when properly installed on that product VTI does not however warrant that the operation of the product or software or firmware will be uninterrupted or error free LIMITATION OF WARRANTY The warranty shall not apply to defects resulting from improper or inadequate maintenance by the buyer buyer supplied products or interfacing unauthorized modification or misuse operation outside the environmental specifications for the product or improper site preparation or maintenance VXI Technology Inc shall not be liable for injury to property other than the goods themselves Other than the limited warranty stated above VXI Technology Inc makes no other warranties express or implied with respect to the quality of product beyond the description of the goods on the face of the contract VTI specifically disclaims the implied warranties of merchantability and fitness for a particular purpose RESTRICTED RIGHTS LEGEND Use duplication or disclosure by the Government is subject to restrictions as set forth in subdivision b 3 11 of the Rights in Technical Data and Computer Software clause in DFARS 252 227 7013 VXI Technology Inc 2031 Main St
34. value Reset Value 0 70 Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive PACE THReshold STARt Query Parameters channel 1 2 3 4 default is Channel 1 Query Response Numeric value Description The user specifies the maximum number of free buffers Start Threshold expressed as a percentage This means that AFTER an XOFF has been issued AND subsequently the number of buffers available rises above the STARt THReshold an XON will be issued The start threshold must be greater than the stop threshold and less than or equal to 100 Examples Command Query Response Description SER1 REC PACE THR START 0 70 SER1 REC PACE THR START 0 714286 Related Commands SERial RECeive PACE THReshold STOP VM6068 Command Dictionary 101 VXI Technology Inc SERial RECeive PACE THReshold STOP Purpose Specifies the minimum number of free buffers Type Setting Command Syntax SYSTem COMMunicate SERial channel RECeive PACE THReshold STOP lt percent gt lt channel gt 1 2 3 4 default is Channel 1 percent Numeric value Reset Value 0 30 Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive PACE THReshold STOP Query Parameters channel 1 2 3 4 default is Channel 1 Query Response Numeric value Description The user specifies the minimum number of free buffe
35. www vxitech com SERial RECeive XON User definable XON character associated with pacing the receiver SYSTem COMMunicate SERial lt channel gt RECeive XON n Where channel is 1121314 default is Channel 1 Where n is an 8 bit binary value the default is 17 EXAMPLES SER1 REC XON 11 SER1 REC XON 17 SERial RECeive XOFF User definable XOFF character associated with pacing the receiver SYSTem COMMunicate SERial channel RECeive XOFF n Where channel is 1121314 default is Channel 1 Where n is an 8 bit binary value EXAMPLES SER1 REC XOFF H13 SERI REC XOFF 19 VM6068 Programming 53 VXI Technology Inc SERial TRANsmit PACE This command is used to pace the transmitter When this channel receives an XOFF this channel s transmitter will be disabled SYSTem COMMunicate SERial channel TRANsmit PACE NONE SERial TRANsmit XON User definable XON character associated with pacing the transmitter SYSTem COMMunicate SERial channel TRANsmit XON n Where channel is 112134 default is Channel 1 Where n is an 8 bit binary Value the default is 17 SERial TRANsmit OFF User definable XOFF character associated with pacing the transmitter SYSTem COMMunicate SERial lt channel gt TRANsmit XOFF n Where channel is 1121314 default is Channel 1 Where n is an 8 bit binary v
36. 0 out RX3 in 0001 TX2 out RX4 in 0010 TX3 out RX1 in 0011 TX4 out RX2 in 0100 out RXC3 in 0101 TXC2 out RXCA in 0110 TXC3 out RXC1 in 0111 4 out RXC2 in VM6068 Command Dictionary 135 VXI Technology Inc If a test from the second set fails it is reported at data bits 0 through 3 as Data Bits 0 3 1000 DTRI out DSR3 in 1001 DTR2 out DSR4 in 1010 DTR3 out DSR1 in 1011 DTR4 out DSR2 in 1100 RTSI out CTS3 in 1101 RTS2 out CTS4 in 1110 RTS3 out CTS1 in 1111 RTS4 out CTS2 in 136 VM6068 Command Dictioinary www vxitech com INDEX Register ACCOSS i cscs eerte do RS423BLAQGI ei ht RE Untere des 87 S SCPI Commands acia dee Don eoe SGPI on be Oeo n ies BEDS mm ortis SERial SERial CLOCKk SERial CONTrol CTS SERial PROTOCOL iine TORRE SERial RECeive CLOCK DIV SERial RECeive CLOCk SOURce C SERial RECeive CODE CALibration SECure STATe esee 84 COON Gis sie cete emen a 19 D dynamic address configuration sss 20 F FIFO 2 55 FORMat DATA 285 tiir RENE SIE TERES 86 HDLC Programming Example HEXadecimal SERial TRANsmit PARity eee SERial TRANsmit SBITs
37. 0 V 0 20 VM6068 3 5 0 V 3 62 A 12 0 V 0 30 A 12 0 0 30 A COOLING REQUIREMENTS VM6068 1 1 0 L s 0 7 mm H O for 10 C rise VM6068 2 1 5 L s 0 7 mm H O for 10 C rise VM6068 3 2 0 L s 0 7 mm H20 for 10 C rise OPERATING TEMPERATURE 09 to 50 C NON OPERATING TEMPERATURE 55 C to 75 C HUMIDITY NON CONDENSING lt 95 relative humidity from 0 C to 30 lt 75 relative humidity to 40 lt 45 relative humidity to 50 SIZE 10 309 H x 1 188 W x 14 469 D 261 849 mm x 30 175 mm x 367 513 mm MANUFACTURER S ID 3915 MODULE MODEL CODE 261 VM6068 Introduction 17 VXI Technology Inc DRIVER RECEIVER SPECIFICATIONS RS 485 DRIVER High Level Output Low Level Output Differential Output Open Circuit Voltage Transition Time Transmission Rate 6 0 V max 0 3 V min 1 5 min 5 0 V max 6 0 V max 120 ns max 5 Mb s max RS 485 RECEIVER High Threshold 10 2 V min 12 0 V max a b Low Threshold 7 0 V min 0 2 V max a b Common Mode Range 7 0 V min 12 0 V max Receiver Sensitivity 0 2 V over the common mode range V 35 DRIVER Differential Output 0 44 V min 0 66 V max 100 Q Load Transition Time 40 ns max Transmission Rate 5 Mb s max V 35 RECEIVER High Threshold 0 2 V min 12 0 volts max a b Low Threshold 7 0 V min 0 2 V max a b Common Mode
38. 3 rec haddress 1 h4143 CALL ibwrt LA serial3 rec haddress 2 h4143 CALL ibwrt LA serial3 rec haddress 3 1h4143 CALL ibwrt LA serial3 rec haddress 4 h2020 58 VM6068 Programming www vxitech com REM Set channel 4 s address to 16708 REM This makes the address appear as REM Also set to recognize an AD 14144 address of 65535 CALL ibwrt LA serial4 rec hmask hffff CALL ibwrt LA serial4 rec haddress 1 h4144 CALL ibwrt LA serial4 rec haddress 2 h4144 CALL ibwrt LA serial4 rec haddress 3 h4144 CALL ibwrt LA serial4 rec haddress 4 2020 REM Build 5 messages one for each address and one broadcast 05915 0 chr amp H41 chr amp h41 char info Message 1 msg2 0 chr amp H42 chr amp h41 char info Message 2 msg3 0 chr amp H43 chr amp H41 char info Message 3 msg4 0 chr amp H44 chr amp H41 char info Message 4 msgb 0 chr amp H20 chr amp H20 char info Broadcast REM Set the data retrieval format CALL ibwrt LA format 1 integer CALL ibwrt LA format 2 integer CALL ibwrt LA format 3 integer CALL ibwrt LA format 4 integer WHILE 1 REM Send all 5 messages to all 4 channels FOR 1 1 to 4 tchans tch chr 48 i CALL ibwrt LA trace data tchan 15915 CALL ibwrt LA trace data tchan msg2 CALL ibwrt LA trace data
39. 41 VXI Technology Cleveland Instrument Division 5425 Warner Road Suite 13 Valley View OH 44125 Phone 216 447 8950 Fax 216 447 8951 VXI Technology Lake Stevens Instrument Division VXI Technology Inc 1924 203 Bickford Snohomish WA 98290 Phone 425 212 2285 Fax 425 212 2289 Technical Support Phone 949 955 1894 Fax 949 955 3041 E mail support vxitech com Visit http www vxitech com for worldwide support sites and service plan information VM6068 Preface 11 VXI Technology Inc 12 VM 06068 Preface www vxitech com SECTION 1 INTRODUCTION INTRODUCTION The VM6068 is a high performance serial interface module that has been designed for high data throughput multiple serial protocols and flexible electrical interfacing The instrument uses the message based word serial interface for programming and data movement and allows direct register access for very high speed data input and retrieval The VM6068 command set conforms to the SCPI standard for consistency and ease of programming The VM6068 is a member of the VXI Technology VMIP VXI Modular Instrumentation Platform family and is available as a 4 8 or 12 channel single wide VXIbus instrument Figure 1 2 shows the 12 channel version of the VM6068 The 8 channel version would not have J200 and its associated LEDs and nomenclature and the 4 channel version would have neither J200 nor J202 In addition to the
40. 8 Programming 45 TRACe DATA FEED VXI Technology Inc The trace data feed command is used to establish a hardware FIFO based data path for a specified queue This command sets up all the necessary hardware to move data written directly to the VXI device dependent register at offset 2016 into the desired queue This command also allows the user to retrieve data through the hardware FIFO data path in a similar fashion to loading the queues TRACe DATA FEED trace name data handle Where trace name 2 TCH3 TCH4 for transmit queues and RCHI RCH2 RCH3 RCH4 for receive queues Where data handle is FIFO NONE If FIFO is selected the connection is established NONE breaks the connection EXAMPLES TRAC DATA FEED TCH2 FIFO OPC TRAC DATA FEED NONE TCH1 Selects transmit Channel 1 and established a connection As the instrument must set the internal registers and initialize a DMA channel OPC Command is used to determine whether the connection is properly established prior to sending data to the VM6068 Returns NONE which is the trace name of receive queues and TCH I which is the trace name of transmit queues 46 VM6068 Programming www vxitech com TRACe FREE This command queries the amount of memory that is unused in a queue TRACe FREE lt trace_name gt Where lt trace_name gt specifies the queue whose amount of unused memory is to be queried
41. ANSI IEEE 488 2 1987 section 11 5 1 for a complete description of the ESE register A value of 1 in a bit position of the ESE register enables generation of the ESB Event Status Bit in the Status Byte by the corresponding bit in the ESR If the ESB 15 set in SRE register then an interrupt will be generated See the ESR command for details regarding the individual bits The ESE register layout 1s Bit 0 Operation Complete Bit 1 Request Control not used in the VM6068 Bit 2 Query Error Bit 3 Device Dependent Error not used in the VM6068 Bit 4 Execution Error Bit 5 Command Error Bit 6 User Request not used in the VM6068 Bit 7 Power On The Event Status Enable query reports the current contents of the Event Status Enable Register Examples Command Query Response Description ESE 36 ESE 36 Returns the value of the event status enable register Related Commands ESR 74 VM6068 Command Dictioinary www vxitech com ESR Purpose Type Command Syntax Command Parameters Reset Value Query Syntax Query Parameters Query Response Description Related Commands Queries and clears the Standard Event Status Register IEEE 488 2 Common Command None Query Only N A N A ESR None Numeric ASCII value from 0 to 255 The Event Status Register query queries and clears the contents of the Standard Event Status Register This r
42. I ERROR PARAMETER2 Status vtvm6068 reset instrHndl if status VI SUCCESS return status Setup baud rate of 250 000 BAUD for channel 1 status vtvm6068 setupBaudRate instrHndl vtvm6068 GENERATOR 1 250000 vtvm6068 DIVISOR 16 if status VI SUCCESS return vtvm6068 ERROR SETTING BAUD RATE Setup baud rate of 250 000 BAUD for channel 3 status vtvm6068 setupBaudRate instrHndl vtvm6068 GENERATOR 3 250000 vtvm6068 DIVISOR 16 if status VI SUCCESS return vtvm6068 ERROR SETTING BAUD RATE Setup Tx channel 1 parameters status vtvm6068 setupTxRxChannel instrHndl vtvm6068 CHANNEL 1 vtvm6068 CONFIGURE AS TX vtvm6068 PARITY NONE vtvm6068 NUM BITS 8 vtvm6068 STOP BITS 1 vtvm6068 INTERFACE 232 vtvm6068 PROT UART if status VI SUCCESS return vtvm6068 ERROR SETTING TX CH PARAMETERS Setup Rx channel 3 parameters status vtvm6068 setupTxRxChannel instrHndl vtvm6068 CHANNEL 3 vtvm6068 CONFIGURE AS RX vtvm6068 PARITY NONE vtvm6068 NUM BITS 8 vtvm6068 STOP BITS 1 vtvm6068 INTERFACE 232 vtvm6068 PROT UART if status VI SUCCESS return vtvm6068 ERROR SETTING RX CH PARAMETERS VM6068 Programming 65 VXI Technology Inc Transmit 1000 bytes on channel 1 using Word Serial status vtvm6068 loadDataViaWS instrHndl vtvm6068 TCH1 txData 100 if status VI SUCCESS return vtvm6068 ERROR LOADING DATA ON TX CHANNEL Read the receive queue for chan
43. If Bit 1 of the Status Byte Register is set to low it indicates that no more valid data is available in the data register at offset 0x20 0x20 FIFO 0x22 FIFO Status L Empty Full FIGURE 3 3 A16 REGISTER BITS VM6068 Programming 55 VXI Technology Inc When a FEED ALL command is made in addition to the receive data in the lower 8 bits bits 0 through 7 the channel number 15 also indicated in bit 8 and 9 Bit 9 Bit 8 Channel 0 0 RCHI 0 1 RCH2 1 0 RCH3 1 1 RCH4 For status data bit 10 is the OR of the normal bits 8 9 and 10 so bits 8 and 9 can be used for the channel indicator In FEED ALL transmit data the lower 8 bits bits 0 to 7 are still for data The end indicator is bit 15 The user must place the channel indicator in bits 8 and 9 Bit 9 Bit 8 Channel 0 0 TCHI 0 1 TCH2 1 0 TCH3 1 1 4 Refer to page 120 for more information on the FEED ALL command 56 VM6068 Programming www vxitech com HDLC PROGRAMMING EXAMPLE REM Program to demonstrate HDLC and address recognition REM This program sends messages to 5 different addresses REM Each channel should receive the message addressed to it and REM the broadcast message REM The physical connections are REM Channel 1 transmit is connected to channel REM Channel 2 transmit is connected to channel REM Channel 3 transmit is connected to channel REM Channel 4 transmit is connected to channel receiv
44. OC DIV 1 SER2 REC CLOC DIV Related Commands SERial RECeive CLOCKk SOURce SERial RECeive BAUD VM6068 Command Dictionary 93 VXI Technology Inc SERial RECeive CLOCk SOURce Purpose Selects the baud rate clock source for a receiver Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive CLOCk SOURce lt source gt lt channel gt 1 2 3 4 default is Channel 1 lt source gt EXT1 EXT2 EXT3 EXT4 INT1 INT2 INT3 INT4 Default Value Channel 1 INT1 Channel 2 INT2 Channel 3 INT3 Channel 4 INT4 Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive CLOCk SOURce Query Parameters channel 1 2 3 4 default is Channel 1 Query Response EXTI EXT2 EXT3 EXTA INTI INT2 INT3 INT4 Description The Serial Receive Clock Source command sets the baud rate clock source for a receiver The clock source is either one of the four internal baud rate generators or an external source connected to the front panel mounted I O connector An external clock source Is used when the channel is to be operated in synchronous mode The receive channel will accept an externally provided source from the front panel when the EXT source 15 selected Note There are certain restrictions on which EXT can be used with which channels Channels 1 and 2 can only be connected to and EX
45. RECeive PACE THReshold Sets the minimum number of free buffers Query for serial reception errors Pacing the receiver SERial TRANsmit Forces transmission of a character SERial TRANsmit CLOCk DIVide Selects the baud clock divide ratio SERial TRANsmit CLOCk SOURce Selects baud rate clock source SERial TRANsmit CODE Sets the transmit encoding method SERial TRANsmitPACE Pace the transmitter TRACe CLOSe Manually close a BD feature 558 Transfers data into and out of the module TRACe DATA FEED Establishes a hardware connection to a data queue TRACe FREE Queries the space left in a queue TRACe LENGth Queries the number of entries in a queue TRACe POINts Sets the size of a queue Rst Reset Value 8 xX 0 Divide Ratio 16 E EE xX X CH2 INT2 etc X X 1 X 1 0 X X X F Z X NONE N N X 0 3 X Ll 0 x x x OF X N A N A N n N 1 8 of buffer RAM N A VM6068 Command Dictionary 69 STATus OPERation CONDition Queries the Operation Status Condition Register STATus OPERation ENABle Sets the Operation Status Enable Register STATus PRESet Presets the Status Register STATus QUEStionable ENABle Sets the Questionable Status Enable x Regi
46. Range Receiver Sensitivity 7 0 V min 12 0 V max 0 2 V over the common mode range RS 422 DRIVER Differential Output Open Circuit Voltage Balance Offset Short Circuit Current Transition Time Transmission Rate 2 0 V min 5 0 V max 6 0 V max 0 4 V max 3 0 V max 150 mA max 60 ns 5 Mb s max RS 422 RECEIVER High Threshold Low Threshold Common Mode Range Receiver Sensitivity Input Impedance 0 2 V min 6 0 V max a b 6 0 V min 0 2 V max a b 10 0 V min 10 0 V max 0 2 V over the common mode range 4 kO min RS 232 DRIVER High Level Output Low Level Output Short Circuit Current Open Circuit Voltage Power Off Impedance Slew Rate Transition Time Transmission Rate 5 0 V min 15 0 V max 5 0 V min 15 0 V max 100 mA max 15 0 V max 300 min 30 0 V us max Ry 3 15 pF 1 56 us max 120 kb s max RS 232 RECEIVER High Threshold Low Threshold Open Circuit Bias Input Impedance 1 7 V typ 2 4 V max a b 0 8 V min 1 2 V min a b 0 0 V min 42 0 V max 3 kO min 7 kO max 5 kO typ 18 VM 06068 Introduction www vxitech com SECTION 2 PREPARATION FOR USE INSTALLATION When the VM6068 is unpacked from its shipping carton the contents should include the following items 1 VM6068 VXIbus module 1 VM6068 High performance Serial Interface Module User s
47. Response Description SER2 REC IDL 65535 SER2 REC IDL 65535 Related Commands TRACe BUFFer CLOSe lt channel gt VM6068 Command Dictionary 99 VXI Technology Inc SERial RECeive PACE Purpose Used to pace the receiver Type Setting Command Syntax SYSTem COMMunicate SERial channel RECeive PACE NONE IRQ RTS TRIGGER lt trigline gt lt channel gt 1 2 3 4 default is Channel 1 lt trigline gt 0 7 Reset Value NONE Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive PACE Query Parameters channel 1 2 3 4 default is Channel 1 Query Response NONE XON IRQ RTS TRIGGER lt trigline gt Description This command is used to pace the receiver A channel s receive queue THReshold is monitored When a THReshold limit has been exceeded the appropriate action will be taken s Examples Command Query Response Description SER1 REC PACE XON SER1 REC PACE Related Commands 100 VM6068 Command Dictioinary www vxitech com SERial RECeive PACE THReshold STARt Purpose Specify the maximum number of free buffers Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive PACE THReshold STARt lt percent gt lt channel gt 1 2 3 4 default is Channel 1 lt percent gt Numeric
48. SCPI command Command Syntax None Query Only M VICE N A Reset Value N A Query Syntax SYSTem ERRor Query Parameters None Query Response ASCII string Description The System Error query is used to retrieve error messages from the error queue The error queue will maintain the two error messages If additional errors occur the queue will overflow and the second and subsequent error messages will be lost In the case of an overflow an overflow message will replace the second error message See the SCPI standard Volume 2 Command Reference for details on errors and reporting them Refer to the Error Messages section of this manual for specific details regarding the reported errors Examples Command Query Response Description SYST ERR 350 Queue overflow Related Commands 132 VM6068 Command Dictioinary www vxitech com SYSTem VERSion Purpose Queries the SCPI version number the VM6068 complies with Type Required SCPI command Command Syntax None Query Only Ome N A Reset Value N A Query Syntax SYSTem VERSion Query Parameters None Query Response Numeric ASCII value Description The System Version query reports version of the SCPI standard with which the VM6068 complies Examples Command Query Response Description SYST VERS 1994 0 Related Commands VM6068 Command Dictionary 133 VXI Technology
49. SOURce Query Parameters channel 1 2 3 4 default is Channel 1 Query Response EXTI EXT2 EXT3 EXTA INTI INT2 INT3 INT4 Description This command sets the baud rate clock source for a transmitter The clock source is one of the internal baud rate generators or an externally provided clock source The external clock source is connected to the front panel mounted I O connector allowing synchronous operation The receive channel will accept an externally provided source from the front panel when the EXT source is selected Note There are certain restrictions on which EXT can be used with which channels Channels 1 and 2 can only be connected to and EXT2 Channels 3 and 4 can only be connected to EXT3 and EXTA There is no such restriction on the internal generators Examples Command Query Response Description SER1 TRAN CLOC SOUR INT2 SER1 TRAN CLOC SOUR Related Commands SERial CLOCk SERial TRANsmit CLOCk DIVide SERial TRANsmit BAUD 110 VM6068 Command Dictioinary www vxitech com SERial TRANS mit C ODE Purpose Sets the data encoding method for a transmit channel Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit CODE lt encode gt lt channel gt 1 2 3 4 default is Channel 1 encode NRZ NRZM NRZS FM0 FM1 MANChester DMANchester Reset Value All channels are se
50. STOP 0 3 This command says when the number of free Buffers drops below 30 issue an XOFF NOTE The percentage ultimately refers to some number of buffers rounded to the nearest buffer The following example demonstrates this SER1 REC PACE THR STOP 0 24 SER1 REC PACE THR STOP 0 250000 SER1 REC PACE THR STOP 0 221 Parameter error minimum Stop threshold is 0 017857 SER1 REC PACE THR STOP 0 94 221 Parameter error Stop threshold must be less than Start threshold VM6068 Programming 51 VXI Technology Inc SERial RECeive PACE THReshold STARt The user specifies the maximum number of free buffers Start Threshold expressed as a percentage This means that AFTER an XOFF has been issued AND subsequently the number of buffers available rises above the STARt THReshold an XON will be issued The start threshold must be greater than the stop threshold and less than or equal to 100 SYSTem COMMunicate SERial channel RECeive PA CE THReshold STARt percent See Definitions above Default 0 70 EXAMPLES SER1 REC PACE THR START 0 70 This command says when the number of free Buffers rises above 7096 issue an XON SER1 REC PACE THR START 0 714286 SER1 REC PACE THR START 0 10 221 Parameter error Start threshold must be greater than Stop threshold SER1 REC PACE THR START 1 10 221 Parameter error Start threshold must not be greater than 100 VM6068 Programming
51. T2 Channels 3 and 4 can only be connected to EXT3 and EXTA There is no such restriction on the internal generators Examples Command Query Response Description SER3 REC CLOC SOUR 4 SER3 REC CLOC SOUR EXT4 Related Commands SERial CLOCk SERial RECeive CLOCk DIVide SERial RECeive BAUD 94 VM6068 Command Dictioinary www vxitech com SERial RECeive CODE Purpose Sets the data decoding method for a receive channel Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive CODE lt decode gt lt channel gt 1 2 3 4 default is Channel 1 decode NRZ NRZM NRZS FM1 MANChester DMANchester Reset Value All channels are set to NRZ Query Syntax SYSTem COMMunicate SERial channel RECeive CODE Query Parameters channel 1 2 3 4 default is Channel 1 Query Response decode NRZ NRZM NRZS FM0 FM1 MANC DMAN NONE A query response of NONE indicates an unrecognized code type Description Each channel contains a digital phase locked loop DPLL that can be programmed to decode a variety of different coding methods NRZ Non Return to Zero NRZM NRZI Mark NRZS Space Reverse of FMI Reverse of FMO MANC Manchester DMAN Differential Manchester AKA Differential Biphase L See previous section for
52. alue the default is 19 SERial TRANsmit Forces transmission of a character over the specified UART channel This transmission will occur even if this transmit channel has been XOFFed SYSTem COMMunicate SERial channel TRANsmit n Where channel is 112134 default is Channel 1 Where n is an 8 bit binary value VM6068 Programming www vxitech com REGISTER ACCESS The VM6068 module supports register access for very high speed data transfers LOADING DATA VIA THE HARDWARE FIFO INTERFACE The VXI device dependent register at offset 0x20 can be used for loading serial data via the Hardware FIFO interface It must be ensured that a hardware based data path for a particular channel has been established before the data can be loaded using the register In order to check if there is any space for the data bytes to be loaded into the transmit queue of the channel the Status Byte at offset 0x22 must be read If Bit 2 of the register is set to high it indicates that there is room for at least one more byte in the transmit queue of the channel If Bit 2 of the register is set to low it indicates that the transmit queue of the channel is full and no more data can be loaded into it Since it may take some time between the loading of the data into the data register at offset 0x20 and the data being moved into the channel s transmit queue via the hardware based data path enough time must be provided for the sa
53. ce data rch4 CALL ibrd LA 1 REM Include all except the CRC in the test string testS left l ibcnt 3 REM If the received data doesn t match then error IF test lt gt msgb THEN PRINT Message doesn t match Expected msgb Received test GOTO CTRLC END IF REM Indicate one successful pass print WEND REM Close down the VXI library ret CloseVXIlibrary END VM6068 Programming 61 VXI Technology Inc ck kk kk ke ke ke kk REM REM Delay a specified number of ticks REM SUB delayticks ticks amp starttime amp getticks amp WHILE getticks amp starttime amp lt ticks amp WEND END SUB delayticks REM x xkxkxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk REM REM Read the system timer ticks 18 2 per second REM REM Xckckckckck kk kk kk kx kk FUNCTION getticks amp DEF SEG 0 tickl PEEK amp H46C tickm PEEK amp HA6D tickh PEEK amp HAGE ticku PEEK amp H46F WHILE tickl lt gt 46 tickl PEEK amp H46C tickm PEEK amp HA6D tickh PEEK a
54. d Commands Determine response to requests for RS 423 Setting RS423FLAG lt flag gt lt flag gt Numeric ASCII value 0 to 2 N A RS423FLAG N A 0 to 2 Older VM6068 boards contain an undocumented RS 423 mode which is not available on newer boards Boards with an FPGAREV of 0 are the only boards that allow this undocumented mode To provide some measure of backward compatibility the RS423FLAG is stored in non volatile memory The flag defaults to 0 if RS423FLAG has never been set Older VM6068 boards respond to RS 423 requests based on the flag as follows 0 Allow the undocumented mode 1 Don t allow the mode issue an error 2 Silently coerce the mode to RS 422 New 6068 boards respond to RS 423 requests based on the flag as follows 0 Silently coerce the mode to RS 422 1 or 2 Don t allow the mode issue an error To use the command form CAL SEC STAT must be 0 Command Query Response Description CAL SEC STAT 0 16VM6068 Turn security off RS423FLAG 1 Set the flag to 1 CAL SEC STAT 1 RS423FLAG Turn security back on 1 on a new VM6068 don t issue an error CAL SEC STAT FPGAREV VM6068 Command Dictionary 87 VXI Technology Inc SERial BITS Purpose Sets the number of transmit or receive data bits on the selected channel Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt
55. d one of the address register should be set to AA668 To recognize this as an 8 bit address the mask register should be set to 00FF and one of the address register should be set to XX68 the upper 8 bits don t matter Examples Command Query Response Description SER3 REC HMAS 255 SER3 REC HMAS 255 Related Commands SERial RECeive HADDress 98 VM6068 Command Dictioinary www vxitech com SERial RECeive IDLe Purpose Specify character times Buffer Descriptor Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive IDLe lt idle_count gt lt channel gt 1 2 3 4 default is Channel 1 idle count 0 65535 Reset Value 1 Query Syntax SYSTem COMMunicate SERial channel RECeive IDLe Query Parameters channel 1 2 3 4 default is Channel 1 Query Response idle count 0 65535 Description Programmable IDLe count Feature The user can specify how many character times occur before a BD Buffer Descriptor is automatically closed This is an unassigned integer value Zero 0 specifies infinity For example At 9600 baud 1 start 1 stop and 8 data bits the maximum idle of 65535 will take roughly 68 seconds to close 104 166 per bit times 10 1042 us per character times 65535 68 seconds Note This command operates in UART mode only Examples Command Query
56. do not include the command header This means only the parameter is returned no part of the command is returned When character data is used for a parameter both short and long forms are recognized If the command has a query form with character response data the short form is always returned in upper case As an example to find out what the current receive parity mode is on Channel 2 use the following command SER2 REC PAR The response could be EVEN This tells the user that the Channel 2 receive parity mode is set to EVEN 26 VM6068 Programming www vxitech com NOTATION Multiple commands can also be combined on one line To do this terminate one command with a semicolon and start the next command with a colon As an example Channel 2 format and receive parity mode could be set as follows FORM DATA 2 INT SER2 REC PAR EVEN When combining commands keep in mind the size of the input buffer Command lines that are too long will generate an error and not be used The IEEE STD 488 2 Common Commands can be placed anywhere set off from the rest of the command by a semicolon They can also be placed alone on a line For example place the RST command in front of an initialization string as follows RST SER2 REC CLOC DIV 1 CODE MANC PAR EVEN Note that the SER2 REC CLOC DIV 1 command did not require a leading colon because there was no pri
57. e receive receive receive NP REM Include library declarations SINCLUDE c nivxi include NIVXI INC DECLARE SUB ibwrt LA Cmmands DECLARE SUB ibrd add 1 DECLARE FUNCTION getticks amp DECLARE SUB delayticks ticks amp REM Enable CTRL C to break KEY 20 5 4 CHR 46 ON 20 GOSUB CTRLC KEY 20 ON DIM ibcnt AS INTEGER DIM 1 AS STRING 100 REM Initialize the VXI library ret InitVXIlibrary REM Locate a module ret FindDevLA 1 261 1 1 1 1 LA REM Confirm we have a card IF ret lt gt 0 THEN PRINT No 6068 card found GOTO CTRLC END IF REM Set time out to 1000 mS rett WSsetTmo 1000 amp timo amp IF ret lt gt 0 THEN PRINT Time out value not set END IF VM6068 Programming REM Start in a known state CALL ibwrt LA rgt REM Read error queue once Syst err CALL CALL ibwrt LA ibrd LA 15 REM Set the baud rates CALL CALL CALL CALL ibwrt ibwrt LA ibwrt LAS ibwrt LA BAUD1 BAUD2 BAUD3 BAUD4 100000 1 100000 1 100000 1 100000 1 REM Say what electrical standard to use CALL CALL CALL CALL ibwrt LA ibwrt LA ibwrt LA ibwrt LA REM Use HDLC CALL CALL CALL CALL REM Set channel REM Also set to CALL CALL CALL CALL CALL REM Set channel REM Also set to CALL CALL CALL CALL CALL REM Set channel REM Also s
58. e HMASK Query Parameters channel 1 2 3 4 default is Channel 1 Query Response mask ASCII number from 0 to 65535 Description This command is only valid in HDLC mode When issued in another mode an error is generated In HDLC mode each channel has five 16 bit registers for address recognition one mask register and four address registers This command deals with the mask register As a frame is received the address is checked against the four address registers and then masked by the mask register A one in the mask register represents a bit position for address comparison A zero in the mask register represents a bit position that is not compared Upon an address match the address and data are stored in the buffer If the address does not match nothing is stored in the buffer Note For 8 bit addresses the upper 8 bits of the mask register should be set to Os Only the low order 8 bits of the mask register and address registers are then used for address matching If the mask register is set to all Os then all addresses are recognized All address registers are used for address comparison all the time If the user wants only one address to be recognized all address registers must be set to that address Note The least significant byte of an address is received first Example A frame that begins with 7E Flag 68 is received To recognize this as a 16 bit address the mask should be set to FFFF an
59. e Sets the data format for retrieving received characters Type Setting Command Syntax FORMat DATA lt channel gt lt type gt lt Cchannel gt 1 2 3 4 type ASCii INTeger HEXadecimal OCTal BINary Reset Value N A Query Syntax FORMat DATA channel Query Parameters channel 1 2 3 4 Query Response Returns the currently set value of the lt type gt parameter Description The Format Data command sets the data format for retrieving received characters Examples Command Query Response Description FORMAT 2 INT FORMAT 2 Related Commands TRACe DATA lt trace_name gt lt block gt lt NRf gt lt NRf gt VM6068 Command Dictionary 85 VXI Technology Inc FPGAREV Purpose Returns the current revision of the FPGA Type Query only Command Syntax N A N A Reset Value N A Query Syntax FPGAREV Query Parameters N A Query Response 0 to 63 Description Report the current revision of the FPGA First revision FPGAs are reported as 0 Second revision FPGAs are reported as 1 Examples Command Query Response Description FPGAREV 1 Related Commands RS423FLAG 86 VM6068 Command Dictioinary www vxitech com RS423FLAG Purpose Type Command Syntax Command Parameters Reset Value Query Syntax Query Parameters Query Response Description Examples Relate
60. e locked loop DPLL that can be programmed to decode a variety of different coding methods non zero return NRZI mark NRZI space 1 Manchester and differential Manchester SYSTem COMMunicate SERial channel RECeive CODE decode Where channel 1121314 default is Channel 1 Where decode NRZ NRZM NRZS FMO MANChester DMANchester NRZ Non Return to Zero A 1 is represented by a high data level for the entire bit time A 0 is represented by a low data level for the entire bit time NRZM NRZI Mark A 1 is represented by no transition at the beginning of the bit A 0 is represented by a transition at the beginning of the bit This is the reverse of NRZI Space NRZS NRZI Space A 1 is represented by a transition at the beginning of the bit A 0 15 represented by no transition at the beginning of the bit This is the reverse of NRZI Mark 1 is represented by a transition at the beginning of the bit and no transition at the center of the bit A 0 15 represented by a transition at the beginning of the bit and a transition at the center of the bit This is the reverse of FM1 A is represented by a transition at the beginning of the bit and a transition at the center of the bit A 0 1s represented by a transition at the beginning of the bit and no transition at the center of the bit This is the reverse of FMO MANC Manchester A 1 is represented by a high to low t
61. e specified voltage Use Proper Fuse To avoid fire hazard only use the type and rating fuse specified for this product VM6068 Preface WARNINGS CONT Avoid Electric Shock Ground the Product Operating Conditions VXI Technology Inc To avoid electric shock or fire hazard do not operate this product with the covers removed Do not connect or disconnect any cable probes test leads etc while they are connected to a voltage source Remove all power and unplug unit before performing any service Service should only be performed by qualified personnel This product is grounded through the grounding conductor of the power cord To avoid electric shock the grounding conductor must be connected to earth ground To avoid injury electric shock or fire hazard Do not operate in wet or damp conditions Do not operate in an explosive atmosphere Operate or store only in specified temperature range Provide proper clearance for product ventilation to prevent overheating DO NOT operate if any damage to this product is suspected Product should be inspected or serviced only by qualified personnel 10 VM 06068 Preface www vxitech com SUPPORT RESOURCES Support resources for this product are available on the Internet and at VXI Technology customer support centers VXI Technology World Headquarters VXI Technology Inc 2031 Main Street Irvine CA 92614 6509 Phone 949 955 1894 Fax 949 955 30
62. eceded by a H as specified in IEEE 488 2 The length is fixed at 2 digits The string ABC is output as H41 H42 H43 Data is encoded as a non decimal numeric using base 8 and preceded by a Q as specified in IEEE 488 2 The length is fixed at 3 digits The string is output as Q101 Q102 Q103 Data is encoded as a non decimal numeric using base 2 and preceded by a B as specified in IEEE 488 2 The length is fixed at 8 digits The string is output as B01000001 B01000010 B01000011 Data is the same as INTeger data as described above EXAMPLES FORM 3 ASC FORM 4 OCT FORM 2 INT FORM DATA INT Sets the data format for Channel 3 to ASCII Sets the data format for Channel 4 to OCT Sets the data format for retrieving receivedcharacters to INTeger on Channel 2 Indicates that the data format for Channel 2 is set to INTerger 28 VM6068 Programming www vxitech com BAUD The Baud command sets the baud rate for one of the four generators available in the VM6068 Generator is used for Channel 1 Generator 2 for Channel 2 etc Each baud rate generator is a series of programmable dividers driven by the CPU clock operating at 24 MHz The programmed baud rate is rounded to the nearest available baud rate Because the generator s output may be divided by a receive or transmit channel a divisor parameter is allowed which will take into account this clock division in calculati
63. eceiver SDLC is IBM s specific version of HDLC Universal Asynchronous Receiver Transmitter This protocol provides the standard asynchronous character oriented UART serial interface with features such as appending a start bit a parity bit and two or less stop bits to each character sent The receiver typically over samples the incoming data by a factor of 16 although the UART mode also supports a 1x clock in synchronous mode 16 VM6068 Introduction www vxitech com VM6068 SPECIFICATIONS NUMBER OF CHANNELS VM6068 1 4 VM6068 2 8 VM6068 3 12 VXI COMMUNICATION Message based Word Serial Interface Direct Register Access 16 memory space PROTOCOLS HDLC SDLC UART DATA TRANSMISSION MODES Block Mode Character Mode BUFFER Standard 2 MB megabytes per group of four channels Option 1 4 MB per group of four channels DATA THROUGHPUT 1HDLC 5 0 Mb s megabits per second I O limited QUICC will do 8 Mb s 2 HDLC 4 0 Mb s 3 HDLC 2 6 Mb s 4 HDLC 2 048 Mb s 4 UART 625 kb s kilobits per second PHYSICAL INTERFACE STANDARDS RS 232 RS 422 RS 449 RS 485 V 35 EIA 530 TRIGGER SOURCE Word Serial Message VXIbus TTL Trigger 0 through 7 Internal Timer INTERNAL TIMER RANGE 1 us to 2 147 s POWER REQUIREMENTS VM6068 1 5 0 V 1 70 A 12 0 V 0 10 A 12 0 V 0 10 A VM6068 2 45 0 V 2 66 A 12 0 V 0 20 A 12
64. egister is used in conjunction with the ESE register to generate the ESB Event Status Bit in the Status Byte The layout of the ESR is Bit 0 Operation Complete Bit 1 Request Control not used in the VM6068 always 0 Bit 2 Query Error Bit 3 Device Dependent Error not used in the VM6068 always 0 Bit 4 Execution Error Bit 5 Command Error Bit 6 User Request not used in the VM6068 always 0 Bit 7 Power On The Operation Complete bit is set by the VM6068 when it receives an OPC command The Query Error bit is set when data is over written in the output queue This could occur if one query is followed by another without reading the data from the first query The Execution Error bit is set when an execution error is detected See the section in the manual covering Error Messages for a list of execution error Errors which range from 200 to 299 are execution errors The Command Error bit is set when a command error is detected See the section in this manual covering Error Messages for a list of command errors Errors that range from 100 to 199 are command errors The Power On bit is set when the module is first powered on or after it receives a reset via the VXI Control Register Once the bit is cleared by executing the ESR command it will remain cleared Examples Command Query Response Description 4 ESR ESE VM6068 Command Dictionary 75 VXI Technology Inc IDN Purpose Q
65. el 3 s corresponding clock IN SER3 Queries the direction in which Channel 3 INT clock is being driven VM6068 Programming 31 SERial CONTrol CTS VXI Technology Inc This command enables or disables the CTS handshaking on the specified serial channel SERial channel CONTrol CTS boolean Where channel is the serial channel for which CTS handshaking is to be enabled or Disabled default is Channel 1 Where boolean specifies whether CTS handshaking is to be enabled or disabled EXAMPLES SER1 SER2 SER3 SER3 1 CONT CTS ON CONT CTS OFF CONT CTS ON CONT CTS Enables CTS handshaking on Channel 1 Disables CTS handshaking on Channel 2 Enables CTS handshaking on Channel 3 Queries whether CTS handshaking is enabled disabled on Channel 3 32 VM6068 Programming www vxitech com SERial CRC This command selects the CRC generation in HDLC mode SYSTem COMMunicate SERial lt channel gt CRC type Where lt channel gt specifies the serial channel for which the CRC generation mode is to be configured in HDLC mode default is Channel 1 Note that the command generates an error if the channel is not operating in HDLC mode Where lt type gt specifies the CRC generation mode EXAMPLES SERI SER2 SER2 SER3 SER3 SER3 CRC CCITT16 PROT HDLC CRC CCITT32 PROT HDLC CRC CCITT16 CRC CCITT16 Configures C
66. ending operations have completed Examples Command Query Response Description OPC OPC Related Commands VM6068 Command Dictionary 77 VXI Technology Inc RST Resets the module s hardware and software to a known state IEEE 488 2 Common Command RST None N A None N A N A The Reset command resets the module s hardware and software to a known state See the command index at the beginning of this chapter for the individual command settings associated with this command Command Query Response Description RST None 78 VM6068 Command Dictioinary www vxitech com SRE Purpose Sets the Service Request Enable Register bits Type IEEE 488 2 Common Command Command Syntax SRE lt mask gt lt mask gt Numeric ASCII value from 0 to 255 Reset Value N A Query Syntax SRE Query Parameters None Query Response Numeric ASCII value from 64 to 255 Description The Service Request Enable command is used to set the 8 bit Service Request Enable Register bits to generate a service request If one of the bits is set and the corresponding bit in the Status Register becomes true a Request True event will be sent Bit 6 Master Summary Status is always set true regardless of what mask value is sent See the IEEE 488 2 specification for additional information regarding the Service Request Enable Registe
67. enerator 2 is used for Channel 2 etc Each generator is a series of programmable dividers driven by the CPU clock operating at 24 MHz The programmed baud rate is rounded to the nearest available baud rate Because the generator s output may be divided by a receive or transmit channel a divisor parameter is allowed which will take into account this clock division in calculating the desired baud rate For example if an asynchronous receive channel is to operate at 19 2 kbaud and uses 16 mode the baud rate generator would need to be programmed to 307 2 kbaud The user would instead specify 19 2 kbaud and a 16 divisor to attain the desired baud rate The Baud query reports the selected baud rate after rounding off to the nearest available baud rate This provides a means to check that the baud rate is within the required tolerance The product of the baud rate and the divisor must lt 24e6 Examples Command Query Response Description BAUD 2 38400 BAUD 2 38400 16 Related Commands None VM6068 Command Dictionary 83 VXI Technology Inc CALibration SE 5 TATe Purpose Secure unsecure storing information in non volatile memory Type Setting Command Syntax CALibration SECure STATe boolean security code CALibration SECure STATe 1 ON lt boolean gt 0 1 OFF ON security code IEEE 488 2 definite or indefinite length b
68. enter position will automatically be set to the switch set address plus one while the third instrument the instrument in the lowest position will automatically be set to the switch set address plus two If dynamic address configuration is desired the address switch should be set for a value of 255 switches set to ON Upon power up the slot 0 resource manager will assign the first available logical addresses to each instrument in the VMIP module If dynamic address configuration is desired the address switch should be set for a value of 255 All switches set to ON Upon power up the slot 0 resource manager will assign the first available logical addresses to each instrument in the VMIP module 20 VM6068 Preparation for Use www vxitech com FRONT PANEL INTERFACE WIRING The VM6068 s serial interface is made available on the front panel of the instrument The 4 channel version VM6068 1 will have J201 that contains all signals for this instrument The 8 channel version VM6068 2 will have J201 and J202 provided while the 12 channel version VM6068 3 will have J200 J201 and J202 The wiring for each of these connectors is identical and since each group of four channels is treated as a separate instrument the module will have three Channel 1s three Channel 2s three Channel 3s and three Channel 4s The connector used in the VM6068 is a 68 pin high density type commonly known as a 68 pin version of the SCSI 2 connector
69. ently set to 422 SER1 STAN 530 Setting Channel 175 standard interface to EIA 530 SER1 STAN Querying Channel 1 standard interface 530 SER2 STAN 449 Setting Channel 2 s standard interface to RS449 SER2 STAN Querying Channel 2 s standard interface 449 VM6068 Programming 39 VXI Technology Inc SERial TRANsmit PARity The serial transmit parity command sets the transmit channel s parity The following modes are supported even odd none zero one or unknown SYSTem COMMunicate SERial channeb TRANsmit PARity type EVEN ODD NONE ZERO ONE UNKNOWN Where channel is 112134 default is Channel 1 Where type is EVEN ODD NONE ZERO ONE UNKNOWN Transmitted characters are sent with an even parity Transmitted characters are sent with an odd parity No parity bit is sent on transmitted characters Transmitted characters are sent with a 0 parity bit Transmitted characters are sent with a 1 parity bit This is what is returned in the non UART mode Enabling parity for the transmitter EVEN ODD ONE ZERO also enables the parity for the receiver Turning parity off NONE also disables parity for the receiver It is important to note that this command is only valid in UART mode EXAMPLES SER2 PROT UART Setting Channel 2 protocol to UART SER2 TRAN PAR ONE Sets the transmit parity for Channel 2 to one SER2 TRAN PAR Returns the transmit Channel 2 s parity ONE which
70. et to ibwrt LA ibwrt LA ibwrt LA ibwrt LA ibwrt LA ibwrt LA ibwrt LA ibwrt ibwrt LA ibwrt ibwrt ibwrt LAS ibwrt LAS ibwrt LA Seriall Serial2 Serial3 Serial4 Seriall Serial2 Serial3 Serial4 standard Standard Standard Standard protocol protocol protocol protocol l s address to 16705 REM This makes the address appear as Seriall Seriall Seriall Seriall Seriall rec rec haddress rec rec rec h4141 DA recognize an address of 8224 449 449 449 449 hdlc hdlc hdlc hdlc hmask hffff haddress haddress haddress 2 s address to 16706 REM This makes the address appear as recognize an address of 65535 hmask hffff Serial2 Serial2 Serial2 Serial2 Serial2 rec haddress haddress haddress haddress 3 s address to 16707 REM This makes the address appear as recognize an address of 65535 14142 14143 1 4141 2 4141 3 h4141 4 h2020 1 h4142 2 h4142 3 h4142 4 h2020 VXI Technology Inc and mask to full compare in the receive string h2020 and mask to full compare in the receive string and mask to full compare in the receive string CALL ibwrt LA serial3 rec hmask hffff CALL ibwrt serial
71. fine U PARITY ERR 0x0008 define U FRAME ERR 0x0010 define U BREAK ERR 0x0020 Bit Number CD Carrier Detect lost OV Overrun Not used PR Parity FR Framing Error BR Break Received Not used Not used FIGURE 3 1 UART ERROR MASK CD Carrier Detect Lost The carrier detect signal was negated during message reception OV Overrun A receiver overrun occurred during message reception PR Parity Error A character with a parity error was received and is located in the last byte of this buffer A new receive buffer will be used for further data reception FR Framing Error A character framing error was received and is located in the last byte of this buffer A framing error is a character without a stop bit A new receive buffer will be used for further data reception BR Break Received A break sequence was received while receiving data into this buffer 36 VM6068 Programming www vxitech com HDLC define H CDLOST ERR define OV ERR define ERR define ABORT ERR define NONOCTET ERR define FRAME ERR define DPLL ERR 0x0001 0x0002 0x0004 0x0008 0x0010 0x0020 0x0080 Bit Number CD Carrier Detect lost OV Overrun CR Rx CRC Error AB Rx Abort Sequence NO Rx Nonoclet Aligned Frame LG Rx Frame Length Violation Not used DE DPLL Error FIGURE 3 2 HDLC ERROR MASK CD Carrier Detect Lost OV Overrun Rx CRC Error AB Rx Ab
72. following safety precautions to avoid bodily injury and or damage to the product These precautions must be observed during all phases of operation or service of this product Failure to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design manufacture and intended use of the product Service should only be performed by qualified personnel TERMS AND SYMBOLS WARNINGS These terms may appear in this manual WARNING Indicates that a procedure or condition may cause bodily injury or death CAUTION Indicates that a procedure or condition could possibly cause damage to equipment or loss of data These symbols may appear on the product ATTENTION Important safety instructions Frame or chassis ground Indicates that the product was manufactured after August 13 2005 This mark is placed in accordance with EN 50419 Marking of electrical and electronic equipment in accordance with Article 11 2 of Directive 2002 96 EC WEEE End of life product can be returned to VTI by obtaining an RMA number Fees for take back and recycling will apply if not prohibited by national law Dx B Follow these precautions to avoid injury or damage to the product Use Proper Power Cord To avoid hazard only use the power cord specified for this product Use Proper Power Source To avoid electrical overload electric shock or fire hazard do not use a power source that applies other than th
73. gt lt type gt VM6068 Command Dictionary 119 VXI Technology Inc TRACe DATA FEED Purpose Type Command Syntax Command Parameters Reset Value Query Syntax Query Parameters Query Default Value Query Response Description Used to establish a hardware FIFO based data path for a specified queue Setting TRACe DATA FEED lt trace_name gt lt data_handle gt or TRACe DATA FEED ALL NONE lt trace_name gt TCH1 TCH2 TCH3 TCH4 for transmit queues trace name RCH1 RCH2 RCH3 RCHA for receive queues data handle NONE NONE TRACe DATA FEED None N A ASCII string returns the trace gt of receiving data a comma and the trace name transmitting data Responses to TRACe DATA FEED ALL NONE ALL ALL respectively The Trace Data command is used to establish a hardware FIFO based data path This command sets up all the necessary hardware to move data written directly to the VXI device dependent register at offset 2016 into the desired queue The data is written in binary format as an 8 bit byte The register is actually word wide and the data should be right justified with the most significant bits set to indicate close of block This command also allows the user to retrieve data through the hardware FIFO data path in a similar fashion to loading the queues The data is read in binary format from the VXI de
74. h com SERial RECeive HADDress Purpose Type Command Syntax Command Parameters Reset Value Query Syntax Query Parameters Query Response Description Examples Related Commands Sets a receive channel s HDLC address Setting SYSTem COMMunicate SERial channel RECeive HADDress lt pos gt lt addr gt channel 1 2 3 4 default is Channel 1 pos 11 2 3 4 lt gt 0 to 65535 N A all channels set to UART mode When a channel is set to HDLC mode all positions are set to 65535 SYSTem COMMunicate SERial channel RECeive HADDress pos channel 1 2 3 4 default is Channel 1 lt pos gt 11 2 3 4 type ASCII number from 0 to 65535 This command is only valid in HDLC mode When issued in another mode an error is generated In HDLC mode each channel has five 16 bit registers for address recognition one mask register and four address registers This command deals with the address registers As a frame 15 received the address 15 checked against the four address registers and then masked by the mask register A one in the mask register represents a bit position for address comparison A zero in the mask register represents a bit position that 15 not compared Upon an address match the address and data are stored in the buffer If there is no address match nothing is stored in the buffer Note For 8 bit addresses the
75. hannel 1 s CRC generation mode as CCITT16 It is assumed that Channel 1 is operating in HDLC mode Configures Channel 2 s serial interface protocol as HDLC Configures Channel 2 s CRC generation mode as CCITT32 Configures Channel 3 s serial interface protocol as HDLC Configures Channel 3 s CRC generation mode as CCITT16 Queries the CRC generation mode used by Channel 3 VM6068 Programming 33 SERial PROTocol VXI Technology Inc The serial protocol command sets the serial interface OSI layer 2 protocol The UNKNOWN response is what is returned if not in one of the other known protocols SYSTEM COMMunicate SERial lt channel gt PROTocol type Where channel is 1121314 default is Channel 1 Where type is BIS HDLC LOC TRAN UART UINKNOWN EXAMPLES SER 2 PROT HDLC SER 2 PROT HDLC SER1 PROT UART Sets the serial interface protocol for Channel 2 as HDLC Returns the serial interface protocol type which is currently configured as HDLC Sets UART as the protocol for Channel 1 UART SERial SERial SERial SERial BITS RECeive IDLe SERial RECeive PARity TRANSmit PARity TRANsmit SBITs HDLC SERial CRC SERial RECeive HADDress SERial RECeive HMASK 34 VM6068 Programming www vxitech com SERial RECeive CODE The Serial Receive Code command sets the data decoding method for a receive channel Each channel contains a digital phas
76. her details on setting the backplane jumpers SETTING THE LOGICAL ADDRESS The logical address of the VM6068 is set by a single 8 position DIP switch located near the module s backplane connectors this 1s the only switch on the module The switch is labeled with positions 1 through 8 and with an ON position A switch pushed toward the ON legend will signify a logic 1 switches pushed away from the ON legend will signify a logic 0 The switch located at position 1 is the least significant bit while the switch located at position 8 15 the most significant bit See Figure 2 1 for examples of setting the logical address switch ON ON Baudet pn osition alue ai adu fna 12345678 12345678 1 1 SET TO 4 SET TO 8 2 2 3 4 4 8 ON ON 5 16 aij hh 6 32 12345678 12345678 7 64 SET TO 168 SET TO 255 8 128 Dynamic FIGURE 2 1 LOGICAL ADDRESS SWITCH SETTING EXAMPLES The VMIP may contain three separate instruments and will allocate logical addresses as required by the VXIbus specification revisions 1 3 and 1 4 The logical address of the instrument 15 set on the VMIP carrier The VMIP logical addresses must be set to an even multiple of 4 unless dynamic addressing is used Switch positions 1 and 2 must always be set to the OFF position Therefore only addresses of 4 8 12 16 252 are allowed The address switch should be set for one of these legal addresses and the address for the second instrument the instrument in the c
77. ial RECeive PACE THReshold S TARt eese eee eene enne een 52 NU XON E 53 SERIal REGetVe XOEE 5 iacente ria i ee er RE T UE ERIS ESO AUREIS 53 SERial TRANsmit PACE 54 SERial FRANSmICXON see 54 SERIalERANSmItOEE te E nds 54 SERial VRAIN Sit treo tee eene eh tree te nee REESE GRUSS 54 REGISTER ACCESS EE 55 Loading Data via the Hardware FIFO Interface sse enne enne 55 Reading Data via the Hardware FIFO nennen nennen 55 HDLC PROGRAMMING EXAMPLE 0 eter eter NER cu Deu 57 VXIPLUG amp PLAY DRIVER EXAMPLE ere recette are neue eue e pe re rue 64 SECTION 4 i UP 67 COMMAND DICTIONARY ki Ure t Ine ER pris 67 Introduction etui In 67 Alphabetical Command Listine 3 ue ERR ERR RSEN ee ee 67 Command Diction ry eene ede eme ede ee Ve ERE e a de Eae UE E Ee Pede er ni 71 IEEE 488 2 COMMON COMMANDS ccenn irane a a 73 CHR E E EET MA 73 ESE RR era ete a M ma 74 FESR men etti ANA tet ede i etes te d ve LII TR ARA ete ES A A Lu
78. ied Query Syntax STATus OPERation ENABle Query Parameters None Query Response Numeric ASCII value from 0 to 32767 Description The Operation Status Enable Register is included for SCPI compatibility and the VM6068 does not alter any of the bits in this register The register layout is as follows Bit 0 Calibrating Bit Setting Bit 2 Ranging Bit 3 Sweeping Bit 4 Measuring Bit 5 Waiting for trigger Bit 6 Waiting for arm Bit 7 Correcting Examples Command Que Response Description STAT OPER ENAB 0 STAT OPER ENAB Related Commands 126 VM6068 Command Dictioinary www vxitech com STATus OPERation EVENt Purpose Queries the Operation Status Event Register Type Required SCPI command Command Syntax None Query Only M VICE N A Reset Value N A Query Syntax STATus OPERation EVENt Query Parameters None Query Response 0 Description The Status Operation Event Register query is included for SCPI compliance The VM6068 does not alter any of the bits in this register and always reports a 0 Examples Command Query Response Description STAT OPER Related Commands VM6068 Command Dictionary 127 VXI Technology Inc STATus PRESet Purpose Presets the Status Registers Type Required SCPI command Command Syntax STATus PRESet Command Parameters No
79. ionable EMEN ctr EN EE tenu eh e etur vis 131 SYSTenrERROIT ee Ida 132 SYS Temi VERSION eee ehe Re CREE Fete Tc ER ERN E RITE UTR 133 teet tree oe e E tees 134 ET See OS OQUCEY EE 134 INDEX d 137 VM6068 Preface 5 VXI Technology Inc VM 06068 Preface www vxitech com CERTIFICATION VXI Technology Inc VTI certifies that this product met its published specifications at the time of shipment from the factory VTI further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology formerly National Bureau of Standards to the extent allowed by that organization s calibration facility and to the calibration facilities of other International Standards Organization members WARRANTY The product referred to herein is warranted against defects in material and workmanship for a period of three years from the receipt date of the product at customer s facility The sole and exclusive remedy for breach of any warranty concerning these goods shall be repair or replacement of defective parts or a refund of the purchase price to be determined at the option of VTI For warranty service or repair this product must be returned to a VXI Technology authorized service center The product shall be shipped prepaid
80. is allows for easy field updates and upgrades The firmware may be distributed on diskette or BBS and updated via the VXIbus and the associated slot 0 controller FIGURE 1 2 FRONT PANEL LAYOUT 14 VM6068 Introduction www vxitech com BIDIRECTIONAL FIFO INTERFACE BIDIRECTIONAL MAIL BOX INTERFACE WITH BIDIRECTIONAL INTERUPT VMIP BUS INTERNAL 6068 BUS MC68360 PROGRAMMABLE DRIVER RECEIVER DYNAMIC RAM FLASH ROM FIGURE 1 3 VM6068 BLOCK DIAGRAM FRONT PANEL INTERFACE CONNECTOR VM6068 Introduction 15 SERIAL INTERFACE PROTOCOLS VXI Technology Inc The VM6068 supports a variety of both bit oriented and byte oriented serial protocols These protocols are supported via the microcode in the RISC controller which supervises the activities of the four serial channels The standard protocols supported by the VM6068 are HDLC SDLC High Level Synchronous Data Link Control This is one of the most commonly used layer 2 protocols in the OSI seven layer model HDLC uses a zero insertion deletion process known as bit stuffing to ensure that the bit pattern of the delimiter flag does not occur in the fields between flags The HDLC frame is synchronous and therefore relies on the physical layer to provide a method of clocking and synchronizing the transmitter and r
81. ity bit UNKNOWN This is what is returned in non UART mode Enabling parity for the transmitter EVEN ODD ZERO or ONE Also enables parity for the receiver Turning parity off NONE also disables parity for the receiver This command is only valid in UART mode The Serial Transmit Parity query reports the selected parity mode for the selected transmit channel Examples Command Query Response Description SER2 TRAN PAR ONE SER2 TRAN PAR Related Commands SERial RECeive PARity SERial PROTocol VM6068 Command Dictionary 113 VXI Technology Inc SERial TRANsmit SBITs Purpose Sets the number of stop bits on the selected transmit channel Type Setting Command Syntax SYSTem COMMunicate SERial channel TRANsmit SBITs bits lt channel gt 1 2 3 4 default is Channel 1 bits 1 2 Reset Value lt bits gt 1 Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit SBITs Query Parameters channel 1 2 3 4 default is Channel 1 Query Response lt bits gt 1 2 Description The Serial Transmit SBits command sets the number of stop bits on the selected transmit channel The query reports the number of stop bits for the selected transmit channel This command is not applicable for Rx channels This command is only valid in the UART mode For non UART the command is ignored Examples Co
82. ity bit 15 sent to the receiver it may cause a framing error This also turns off parity for the transmitter IGNore All parity errors on received data are ignored ZERO Received characters are checked for a 0 parity bit ONE Received characters are checked for a 1 parity bit UNKNOWN This is what is returned in non UART mode Enabling parity for the receiver EVEN ODD ZERO or ONE also enables parity for the transmitter Disabling parity for the receiver NONE also disables parity for the transmitter Note This command is only valid in UART mode The Serial Receive Parity query reports the parity mode for the selected receive channel Examples Command Query Response Description SER2 REC PAR EVEN SER2 REC PAR Related Commands SERial TRANsmit PARity SERial PROTocol VM6068 Command Dictionary 103 VXI Technology Inc SERial RECeive STATus Purpose Queries for serial reception errors Type Instrument specific Command Syntax None Query Only N A Reset Value N A Query Syntax SYSTem COMMunicate SERial channel RECeive STATus NEXT ALL Query Parameters channel 1 2 3 4 default is Channel 1 Query Response Alpha Numeric Description Queries for serial reception errors The NEXT or ALL Buffer Descriptors with data will be scanned for errors and a 16 bit word will be returned indicating the
83. l channel TRANsmit PACE Query Parameters channel 1 2 3 4 default is Channel 1 Query Response XON or NONE Description This command is used to pace the transmitter When this channel receives an XOFF this channel s transmitter will be disabled Examples Command Query Response Description Related Commands 112 VM6068 Command Dictioinary www vxitech com SERial TRANsmit PARity Purpose Sets a transmit channel s parity type Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit PARity lt type gt lt channel gt 1 2 3 4 default is Channel 1 type EVEN ODD NONE ZERO ONE Reset Value lt type gt NONE Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit PARity Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response lt type gt EVEN ODD NONE ZERO ONE UNKNOWN Description The Serial Transmit Parity command selects which parity mode to use on a selected transmit channel The following modes are supported EVEN Transmitted characters are sent with an even parity bit ODD Transmitted characters are sent with an odd parity bit NONE No parity bit is sent on transmitted characters ZERO Transmitted characters are sent with a 0 parity bit ONE Transmitted characters are sent with a 1 par
84. l interface standard for a given channel OFF means the drivers are tri stated Examples Command Query Response Description SER2 STAN 422 SER2 STAN Related Commands VM6068 Command Dictionary 107 VXI Technology Inc SERial TRANsmit Purpose Forces transmission of a character Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit lt n gt lt channel gt 1 2 3 4 default is Channel 1 lt n gt 8 bit binary value Reset Value N A Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 8 bit binary value Description Forces transmission of a character over the specified UART channel This transmission will occur even if this transmit channel has been set to XOFF Examples Command Query Response Description Related Commands 108 VM6068 Command Dictioinary www vxitech com SERial TRANsmit CLOCk DIVide Purpose Selects the baud clock divide ratio used by the receiver Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit CLOCk DIVide lt ratio gt lt channel gt 1 2 3 4 default is Channel 1 ratio 1 8 16 32 Reset Value All channels are set to a divide ratio of 16 Query Syntax
85. lock of the security code Example 16VM6068 Reset Value 1 Query Syntax CALibration SECure STATe Query Parameters N A Query Response 01 Description The module powers up with the secure state enabled or ON While security 15 ON no stores to non volatile memory are allowed This command turns the state ON or OFF In order to disable the security state the security code must be supplied To turn ON security the code does not need to be supplied If it is supplied the code is checked The security code must be supplied in IEEE 488 2 definite or indefinite length arbitrary block format The security code is VM6068 and is case sensitive personnel Changing these values incorrectly can cause the instrument to perform improperly Non volatile storage commands should only be executed by qualified Examples Command Query Response Description CAL SEC OFF 16VM6068 Turn security off in preparation of a non volatile memory store CAL SEC STAT 0 Indicates the calibration security is disabled so new information can be stored in non volatile memory CAL SEC STAT 1 Turn calibration security on to prevent stores to non volatile memory CAL SEC STAT 1 Indicates the calibration security is enabled so that no new information can be stored in non volatile memory Related Commands RS423FLAG 84 VM6068 Command Dictioinary www vxitech com FORMat DATA Purpos
86. me before assuming that there is no further space in the transmit queue of the channel In order to set the End of data indicator Bit 15 of the VXI device dependent register must be set to high for the last data byte that is being loaded into the module READING DATA VIA THE HARDWARE FIFO INTERFACE The serial data which has been received in the receive queue of the channel whose hardware based data path has been enabled can be read via the VXI device dependent register at offset 0x20 The lower 8 bits of the register return the data values while the upper 8 bits return the error values corresponding to the received data values The bit layout of the upper 8 bits of the register is as given below Bit 15 End of message indicator Bit 14 Buffer closed due to control character match last byte Bit 13 The buffer was closed due to consecutive DLes Bit 12 Address match only used in multi drop mode 0 UADDR2 1 for UADDRI Bit 11 A break sequence was received while receiving data into this buffer Bit 10 Parity error or framing error occurred on last byte Bit 9 A receiver overrun occurred during message reception Bit 8 Carrier detect signal lost during message reception In order to check if valid data is actually available in the VXI device dependent register at offset 0x20 the Status Byte register at offset 0x22 must be read If Bit 1 of Status Byte register is set to high it indicates that valid data is still available at offset 0x20
87. mmand Query Response Description SER4 TRAN SBITS 1 SERA TRAN SBITS Related Commands SERial PROTocol 114 VM6068 Command Dictioinary www vxitech com SERial TRANsmit XOFF Purpose Pace the transmitter Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit XOFF lt n gt lt channel gt 1 2 3 4 default is Channel 1 lt n gt 8 bit binary value Reset Value 19 Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit XOFF Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 8 bit binary value Description User definable XOFF character associated with pacing the transmitter Examples Command Query Response Description Related Commands VM6068 Command Dictionary 115 VXI Technology Inc SERial TRANsmit XON Purpose Pace the transmitter Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit XON lt n gt lt channel gt 1 2 3 4 default is Channel 1 lt gt 8 bit binary value Reset Value 17 Query Syntax SYSTem COMMunicate SERial channel TRANsmit Query Parameters channel 1 2 3 4 default is Channel 1 Query Response 8 bit binary value Description User definable XON character associated with
88. mp HAGE ticku PEEK amp H46F WEND ticku ticku AND amp H7F getticks amp ticku amp H1000000 tickh amp H10000 amp tickm amp H100 amp tickl DEF SEG END FUNCTION getticks 62 VM6068 Programming www vxitech com REM REM REM MXI Subroutines REM REM x xkxkxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk SUB ibrd add 1 SHARED ibcnt AS INTEGER mode 1 status WSrd add 15 LEN 1 mode ibcntr amp IF status AND 3 lt gt 3 THEN PRINT Error in ibrd status ibcnt ibcentr amp END IF END SUB ibrd SUB ibwrt Cmmands CommandLength amp LEN Cmmand REM print IBWRT Sends left Cmmand CommandLength amp ReturnStatus WSwrt LA Cmmand CommandLength amp 3 ReturnCount amp IF ReturnStatus 7 THEN PRINT Error in ibwrt ReturnStatus END IF END SUB ibwrt VM6068 Programming 63 VXI Technology Inc VXIPLUG amp PLAY DRIVER EXAMPLE APPLICATION FUNCTION S EE K K k KK KK KK KK k k KK KK KR k k A k k k k RR RR KK KK k k KK KKK k k RR k k k k k k k k k k k S FE K K k KK KK KK KK RK kk KK KK kk KR RR RR KK KKK KK KKK RRR k k k k k k k k k k k k k Function Formal Parameters Return Values De
89. ne Reset Value N A Query Syntax None Command Only Query Parameters N A Query Response N A Description Examples Related Commands Command Query Response Description The Status Preset command presets the Status Registers The Operational Status Enable Register 15 set to 0 and the Questionable Status Enable Register is set to 0 This command is provided for SCPI compliance only STAT PRES 128 VM6068 Command Dictioinary www vxitech com STATus QUEStionable CONDition Purpose Queries the Questionable Status Condition Register Type Required SCPI command Command Syntax None Query Only M VICE N A Reset Value N A Query Syntax STATus QUEStionable CONDition Query Parameters None Query Response 0 Description The Questionable Status Condition Register query is provided for SCPI compliance only The VM6068 does not alter any of the bits in this register and a query always reports a 0 Examples Command Query Response Description STAT QUES COND Related Commands VM6068 Command Dictionary 129 VXI Technology Inc STATus QUEStionable E Purpose Sets the Questionable Status Enable Register Type Required SCPI command Command Syntax STATus QUEStionable ENABle lt NRf gt ODE NRf numeric ASCII value from 0
90. nel 3 using H W FIFO status vtvm6068 connectDisconnectHWFIFO instrHndl vtvm6068 CONNECT HWFIFO vtvm6068 RX CHANNEL vtvm6068 CHANNEL 3 if status VI SUCCESS return vtvm6068 ERROR ENABLING FIFO FOR RX CHANNEL status vtvm6068 readDataViaFIFO instrHndl rxData rxError amp numBytesRxed if status VI SUCCESS return vtvm6068 ERROR READING DATA ON RX CHANNEL if numBytesRxed 100 result 0 return VI SUCCESS Compare the Tx data with the Rx data for index 0 index 100 if txData index rxData index result 0 return VI SUCCESS result 1 return VI SUCCESS 66 VM6068 Programming www vxitech com SECTION 4 COMMAND DICTIONARY INTRODUCTION This section presents the instrument command set It begins with an alphabetical list of all the commands supported by the VM6068 divided into three sections IEEE 488 2 commands the instrument specific SCPI commands and the required SCPI commands With each command is a brief description of its function whether the command s value is affected by the RST command and its default value The remainder of this section is devoted to describing each command one per page in detail The description is presented in a regular and orthogonal way assisting the user in the use of each command Every command entry describes the exact command and query syntax the use and range of parameters and a complete descri
91. ng the desired baud rate SYSTem COMMunicate generator lt baud_rate gt lt divisor gt Where generator is 1121314 Where baud rate is a numeric ASCII value from 367 to 3e6 Where divisor is 118116132 EXAMPLES BAUD 2 19200 16 Sets the baud rate for generator 2 to 19 200 Baud BAUD 2 Returns the baud rate for generator 2 19200 16 VM6068 Programming 29 VXI Technology Inc SERial BITS The serial bits command sets the number of transmit or receive data bits on the selected channel It is important to note that the command is valid only in UART mode In the non UART mode the query response is always 8 SYSTem COMMunicate SERial channel BITS lt bits gt Where channel is 1121314 default is Channel 1 Where bits is 5161718 SERA BITS7 Sets Channel 4 to 7 bits SERA BITS Querying number of bits for Channel 4 7 30 VM6068 Programming www vxitech com SERial CLOCk This command sets the direction of the bi directional clock SERial lt channel gt CLOCk lt direction gt Where lt channel gt is the channel whose corresponding clock s direction is to be configured default is Channel 1 Where lt direction gt is IN OUT the direction in which the clock is to be driven EXAMPLES SER1 CLOC IN Drives Channel 178 corresponding clock IN SER2 CLOC OUT Drives Channel 2 s corresponding clock OUT SER3 CLOC IN Drives Chann
92. or trunk of the SCPI tree Keywords or parameters enclosed in square brackets are optional If the optional part is a keyword the keyword can be included or left out Omitting an optional parameter will cause its default value to be used Parameters are enclosed by angle brackets lt gt Braces are used to enclose one or more parameters that may be included zero or more times A vertical bar read as is used to separate parameter alternatives VM6068 Programming 27 VXI Technology Inc EXAMPLES OF SCPI COMMANDS FORMat DATA The format data command sets the data format for retrieving received characters The data formats supported are ASCII interger hexadecimal octal binary and packed FORMat DATA channel type Where channel is 1 2 3 or 4 ASCii INTeger HEXadecimal OCTal BINary PACKed Where type is ASC INT HEX OCT BIN PACK Data is transferred format with 1 2 or 3 significant digits Multiple numbers are separated by commas The string ABC is output as 65 66 67 Received data is transferred as an indefinite block Note Data can be transmitted in either a definite or an indefinite block See IEEE STD 488 2 Sections 8 7 9 and 8 7 10 The indefinite length arbitrary block is terminated with a combination of a LF Line Feed character and an END indication Data is encoded as a non decimal numeric using base 16 and pr
93. ore four baud rate generators two DMA channels four timers a dynamic RAM controller a dedicated communication RISC controller with fourteen serial DMA channels and two TDM time division multiplexers The QUICC microcontroller s serial interface is brought to the front panel via four programmable interface driver receiver ICs These driver receivers may be programmed to operate at RS 232 RS 422 RS 449 RS 485 V 35 and EIA 530 levels Each channel may be programmed independently of the other channels The VXIbus is handled by the VMIP module and it in turn passes parsed data through to the VM6068 module via a bi directional FIFO interface for maximum performance see Figure 1 3 In addition to passing parsed SCPI command and data streams the VMIP module may be configured to allow direct hardware access from the VXIbus to the FIFOs for maximum data throughput The VMIP module has its own MC68340 microcontroller to handle the VXIbus traffic relieving the VM6068 from this activity The bi directional mailbox interface between the VMIP module and the VM6068 provides a way for the VMIP module to pass instructions and mode information to and from the VM6068 With the addition of interrupt capability each side of the interface can be notified of a pending message This reserves the FIFOs for large blocks of data and allows data streams to be stopped midstream Both the VMIP module and the VM6068 store their embedded program in FLASH ROM Th
94. ort Sequence NO Rx Nonoctet Aligned Frame LG Rx Frame Length Violation DE DPLL Error The carrier detect signal was negated during frame reception A receiver overrun occurred during frame reception This frame contains a CRC error The received CRC bytes are always written to the receive buffer minimum of seven consecutive ones was received during frame reception A frame that contained a number of bits not exactly divisible by eight was received A frame length greater than the maximum defined for this channel was recognized only the maximum allowed number of bytes MFLR is written to the data buffer This event will not be reported until the Rx BD 15 closed and the RXF bit 15 set after receipt of the closing flag The actual number of bytes received between flags is written to the data length field of this BD This bit is set by the HDLC controller when a DPLL error has occurred during the reception of his buffer In decoding modes where a transition is promised every bit the DE bit will be set when a missing transition has occurred VM6068 Programming 37 VXI Technology Inc SERial RECeive PARity The Serial Receive Parity command sets a channel s parity type It is only valid in the UART mode The following modes are selected even odd none ignore zero or one SYSTem COMMunicate SERial lt channel gt RECeive PA Rity type Where channel is 112134 default is Channel
95. ption of the command s purpose ALPHABETICAL COMMAND LISTING The following tables provide an alphabetical listing of each command supported by the VM6068 along with a brief description If an X is found in the column titled RST then the value or setting controlled by this command is possibly changed by the execution of the RST command If no X is found then RST has no effect The Reset value column gives the value of each command s setting when the unit is powered up or when a RST command is executed VM6068 Command Dictionary 67 VXI Technology Inc TABLE 4 1 IEEE 488 2 COMMON COMMANDS Command Description Rst Reset Value _ Clear the Status Register ESE Set the Event Status Enable Register ESR __ Query the Standard Event Status Register IDN Query the module identification string Run a self test and report the result Wait for operations to complete N A N A Set the Service Request Enable Register PEN STB Query the Status Byte Register 68 VM6068 Command Dictioinary www vxitech com TABLE 4 2 INSTRUMENT SPECIFIC SCPI COMMANDS Command Description SERial RECeive CLOCk SOURce Selects the baud rate clock source SERial RECeive CODE Sets the receive decoding method SERial RECeive ERRor MASK Sets a mask of what type of errors will be reported SERial RECeive PACE THReshold Sets the maximum number of free buffers SERial
96. queues is lost Therefore the size of any queue should not be changed while the VM6068 is active or if any desired data has not been sent by or retrieved from the instrument The Trace Points query reports the size of a selected queue in bytes Examples Command Query Response Description TRAC TCH2 2048 TRAC TCH2 2048 Related Commands TRACe FREE lt trace name gt 124 VM6068 Command Dictioinary www vxitech com REQUIRED SCPI COMMANDS STATus OPERation C ONDition Purpose Queries the Operation Status Condition Register Type Required SCPI command Command Syntax None Query Only N A Reset Value N A Query Syntax STATus OPERation CONDition Query Parameters None Query Response 0 Description The Operation Status Condition Register query is provided for SCPI compliance only The VM6068 does not alter the state of any of the bits in this register and always reports a 0 Examples Command Query Response Description STAT OPER COND Related Commands VM6068 Command Dictionary 125 VXI Technology Inc STATus OPERation ENABle Purpose Sets the Operation Status Enable Register Type Required SCPI command Command Syntax STATus OPERation ENABle lt NRf gt ODE NRf numeric ASCII value from 0 to 32767 Reset Value NRf must be specif
97. r and its use The layout of the Service Request Enable Register is Bit 0 Unused Bit 1 Unused Bit 2 Error Queue Has Data Enable Bit 3 Questionable Status Summary Enable not used Bit 4 Message Available Enable Bit 5 Event Status Bit Summary Enable Bit 6 Master Summary Status Enable always 1 Bit 7 Operation Status Summary Enable The Service Request Enable query fetches the current contents of the Service Request Enable Register Examples Command Quer Response Description SRE 4 SRE 4 Related Commands None VM6068 Command Dictionary 79 VXI Technology Inc STB Purpose Queries the Status Byte Register Type IEEE 488 2 Common Command Command Syntax None Query Only N A Reset Value N A Query Syntax STB Query Parameters None Query Response Numeric ASCII value from 0 to 255 Description The Read Status Byte query fetches the current contents of the Status Byte Register See the IEEE 488 2 specification for additional information regarding the Status byte Register and its use The layout of the Status Register is Bit 0 Unused Bit 1 Unused Bit 2 Error Queue Has Data Bit 4 Questionable Status Summary not used Bit 5 Message Available Bit 6 Master Summary Status Bit 7 Operation Status Summary Examples Command Quer Response Description STB 16 Related Commands None 80 VM6068 Command Dictioinar
98. ransition at the center of a bit A 0 15 represented by low to high transition at the center of the bit In either case there may be a transition at the beginning of the bit to achieve the required polarity DMAN Differential Manchester a k a Differential Biphase L A 1 15 represented by a transition at the center of the bit with the opposite direction from the transition at the center of the preceding bit A 0 is represented by a transition at the center of the bit with the same polarity as the transition at the center of the preceding bit Note Here when levels are mentioned it refers to logical levels Different electrical standards produce different voltage levels on the signal lines EXAMPLES SER3 REC CODE MANC SER3 REC CODE Note A query response of NONE would MANC indicate an unrecognized code type VM6068 Programming 35 VXI Technology Inc SERial RECeive ERRor MASK The Serial Receive Error MASK command masks selected error types that will be reported A 1 bit allows the error to be reported and a 0 bit masks it The default setting 15 a 1 bit for all errors The mask is a direct correlation to the Buffer Descriptor The default mask is H3B for and HBF for HDLC HDLC amp UART define BD BUSY 0x4000 unused bit in the BD This is an input overrun error indicating that the receive buffer is full UART define U CDLOST ERR 0x0001 define U ERR 0 0002 de
99. reet Irvine CA 92614 6509 U S A VM6068 Preface 7 VXI Technology Inc DECLARATION OF CONFORMITY Declaration of Conformity According to ISO IEC Guide 22 and EN 45014 MANUFACTURER S NAME VXI Technology Inc MANUFACTURER S ADDRESS 2031 Main Street Irvine California 92614 6509 6509 PRODUCT NAME High Performance Serial Interface Module MODEL NUMBER S VM6068 PRODUCT OPTIONS PRODUCT CONFIGURATIONS VXI Technology Inc declares that the aforementioned product conforms to the requirements of the Low Voltage Directive 73 23 EEC and the EMC Directive 89 366 EEC inclusive 93 68 EEC and carries the CE mark accordingly The product has been designed and manufactured according to the following specifications SAFETY EN61010 2001 EMC EN61326 1997 w A1 98 Class A CISPR 22 1997 Class A VCCI April 2000 Class A ICES 003 Class A ANSI C63 4 1992 AS NZS 3548 w A1 amp A2 97 Class FCC Part 15 Subpart B Class A EN 61010 1 2001 The product was installed into a C size VXI mainframe chassis and tested in a typical configuration I hereby declare that the aforementioned product has been designed to be in compliance with the relevant sections of the specifications listed above as well as complying with all essential requirements of the Low Voltage Directive February 2007 Pe Steve Mauga QA Manager 8 VM6068 Preface www vxitech com GENERAL SAFETY INSTRUCTIONS Review the
100. rface OSI layer 2 protocol The UNKNOWN response is what is returned if not in one of the other known protocols Examples Command Query Response Description SER2 PROT HDLC SER2 PROT HDLC Related Commands 92 VM6068 Command Dictioinary www vxitech com SERial RECeive CLOCk DIVide Purpose Selects the baud clock divide ratio used by the receiver Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive CLOCk DIVide lt ratio gt ONE lt channel gt 1 2 3 4 default is Channel 1 ratio 1 8 16 32 Reset Value All channels are set to a divide ratio of 16 Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive CLOCk DIVide Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 1 8 16 32 Description The Serial Receive Clock Divide command sets the baud rate divider ratio used in receiver when sampling data The divide ratio is normally set to 1 when synchronous clocking is selected and is normally set to 16 when asynchronous clocking is used The other divide ratios are provided for further flexibility It is important to consider the selected divide ratio when setting the desired baud rate The supplied clock will have to operate at a rate equal to the desired baud rate times the divide ratio Examples Command Query Response Description SER2 REC CL
101. rs Stop Threshold expressed as a percentage This means that when the number of buffers available falls below the STOP THReshold an XOFF will be issued The stop threshold is not allowed to be less than 0 017857142 and must be less than the start threshold Examples Command Query Response Description SER2 REC PACE THR STOP 0 24 SER2 REC PACE THR STOP 0 250000 Related Commands SERial RECeive PACE THReshold STARt 102 VM6068 Command Dictioinary www vxitech com SERial REC eive PARity Purpose Sets a receive channel s parity type Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive PARity lt type gt lt channel gt 1 2 3 4 default is Channel 1 type EVEN ODD NONE IGN ZERO ONE Reset Value lt type gt N A parameter must be specified Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive PARity Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response lt type gt EVEN ODD NONE IGN ZERO ONE UNKNOWN Description The Serial Receive Parity command selects which parity mode to use on a selected receive channel The following modes are supported EVEN Received characters are checked for even parity ODD Received characters are checked for odd parity NONE No parity is checked on received characters If a par
102. scription vtvm6068 diagnostic ViSession instrHndl A unique handle to the instrument ViPInt16 result Returns the result of diagnostic The value of one means diagnostic passed A value of zero means the diagnostic failed Returns VI_SUCCESS if successful else returns error value of the error encountered For this diagnostic to be successful the loop back connector must connect transmit channel 1 to receive channel 3 This application function shows how to group individual driver functions to transmit data on one channel and receive the same data on another channel using loop back connector Please have a look at the source code of this function to help you use the driver functions in your application If data transmitted on channel 1 is received via the loop back connector on channel 3 then it means the diagnostic passed otherwise the diagnostic failed HR KR RR RK KK KKK KR RR KR RR RR RK KK KK KK KKK KR RR RR k k k k k k k ViStatus FUNC vtvm6068 diagnostic ViSession instrHndl ViPInt16 result Variable used to store the return status of the function 22 ViStatus status Vilntl16 txData 100 Vilnt32 VI NULL rxData 200 rxError 200 numBytesRxed 0 index 0 64 VM6068 Programming www vxitech com Validating the input session handle ue status vtvm6068 validSession instrHndl if status lt VI_SUCCESS return status if result VI_NULL return V
103. scriptions All module commands are sent over the VXIbus backplane to the module Commands may be in upper lower or mixed case All numbers are sent in ASCII decimal unless otherwise noted The module recognizes SCPI commands SCPI is a tree structured language based on IEEE STD 488 2 Specifications It utilizes the IEEE STD 488 2 Standard command and the device dependent commands are structured to allow multiple branches off the same trunk to be used without repeating the trunk To use this facility terminate each branch with a semicolon As an example RECeive CLOCk DIVide RECeive CODE and RECeive PARity are all branches off the SERial RECeive trunk This makes it possible to combine several commands as follows SER2 REC CLOC DIV 1 CODE MANC PAR EVEN The above command is the same as the following SER2 REC CLOC DIV 1 ER2 REC CODE MANC SER2 REC PAR EVEN Note that each command separated by the semi colons must be from the same branch level otherwise an error would occur The commands CLOCk DIVide 1 CODE and PARity EVEN all start at the same branch level See Standard Command for Programmable Instruments SCPI Manual Volume 1 Syntax amp Style Section 6 for more information VM6068 Programming 25 VXI Technology Inc The SCPI commands in this section are listed in upper and lower case Character case is used to indicate different forms of the same
104. se three standard configurations the VM6068 may be combined with any of the other members of the VMIP family to form a customized and highly integrated instrument see Figure 1 1 This allows the user to reduce system size and cost by combining the VM6068 with two other instrument functions in single wide C size VXIbus module FIGURE 1 1 VMIP PLATFORM VM6068 Introduction 13 HBHBBHBHBHBHHHHBHBHBHHBBBHBHBHBHHH HBHHHHHBHBHBHHHHBHBHBHHHHBHBHBHHBHH esi E HHHBHBHBHBEBHBHBHBHHBHBHBHBHHBHBHBH BHHHHHHHHEHHBHHHHBHBHBHBHEBHBHBHHH HBHBHBBHHBBHBHBHBHHBHBHBHHBHBHBHBH HHHBHHHHHHHBHHHHHHHBHHBHBHBHHBHBHBHHH VXI Technology Inc Regardless of whether the VM6068 is configured with other VM6068 modules or with other VMIP modules each group of four channels is treated as an independent instrument in the VXIbus chassis and as such each group of four channels has its own FAIL and ACCESS light DESCRIPTION The VM6068 is a high performance VXIbus serial interface utilizing the Motorola MC68360 QUICC Quad Integrated Communication Controller integrated microprocessor and peripheral combination The MC68360 provides four highly flexible serial communication channels along with a CPU32 processor c
105. state Please refer to the EIA 485 standards manual for further information The following is an example of pin connection and termination for Channel 1 Channel 3 communication GND 1000 Ohm 5 1 CH3 TXD 37 RXD 100 Ohm 2 GND TXD a RXD 2 5 1000 Ohm TXD RXD 5V 2 100 Ohm TXD 5 1000 Ohm 45V FIGURE 2 2 RS 485 CONNECTION TERMINATION VM6068 Preparation for Use 23 VXI Technology Inc The mating connector to J200 J201 J202 15 available from the following companies AMP Inc P N 749621 7 Connector P N 749195 2 Back Shell P N 82208 Catalog Covering This Series of Connectors Circuit Assembly P N CA 68NDP 12GT Connector P N CA 68NDBS 1M Back Shell P N DG01 Catalog covering this series of connectors The pin locations for J200 J201 and J202 located on the front panel are shown in Figure 2 2 PIN 1 PIN 35 HHHHHBHBHHHHHHBEHHHHHBHHHHEHBEBEHH HHHHHHHHHHHHEHHHHEHHHHHHHHHHHEHHHEH PIN 34 PIN 68 FIGURE 2 3 VM6068 J200 J201 AND J202 PIN LOCATIONS 24 VM6068 Preparation for Use www vxitech com SECTION 3 PROGRAMMING INTRODUCTION The VM6068 module is a VXIbus message based device whose command set is compliant with the Standard Command for Programmable Instruments SCPI programming language See the Sample Program later in this section for specific programming examples and command usage Also refer to individual command de
106. ster TABLE 4 3 SCPI REQUIRED COMMANDS Command Description VXI Technology Inc Rst Reset Value STATus QUEStionable EVENt Queries the Questionable Status Event Register SYSTem ERRor Queries the Error Queue SYSTem VERsion Queries which version of the SCPI standard the module complies with STATus OPERation EVENt Queries the Operation Status Event Register i 1 X STATus QUEStionable Queries the Questionable Status Condition X CONDition Register i X 70 VM6068 Command Dictioinary www vxitech com COMMAND DICTIONARY The remainder of this section is devoted to the actual command dictionary Each command is fully described on its own page In defining how each command is used the following items are described Purpose Describes the purpose of the command Type Describes the type of command such as an event or setting Command Syntax Details the exact command format Describes the parameters sent with the command and their legal range Reset Value Describes the values assumed when the RST command is sent Query Syntax Details the exact query form of the command Query Parameters Describes the parameters sent with the command and their legal range The default parameter values are assumed the same as in the command form unless described otherwise Query Response Describes the format of the query response and the valid range of output
107. t 75 IM M 76 TI 78 Efe io EL m 79 CP 80 esten 81 82 INSTRUMENT SPECIFIC SCPI 2 2 02 02 00000010 0000 00500000 0 50005 83 BAUD s 83 CALibration SECure S T6 torre wo se TEE RE RR RHENO RAM D REN ERE 84 e Ta re cas ENT coe e HR Leda 85 duit 86 RS423EEXAG te A aN 87 SERi1aE BIS ee Mr A HM UNCLE M Oe oe ea 88 SERIaECEOGCk s nett eene tita div teniente e item cte 89 5 CONTEFOEC I S rni ERE RE a ENS EN Y tU qe 90 CRG C 91 PROTOCOL 5 etie e E VETERE Uae HERI ERU VI REN RECO P EE a 92 SERial RECeive CLOCKk DIVide eese rentre etre se enne 93 SERaa RECeiVe CLOCK SOURCE or odes e Hv east e eet RAS 94 gt RECEIVE CODE eth tete ei b RIRs eie i
108. t to NRZ Query Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit CODE Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response encode NRZ NRZM NRZS FM0 FM1 MANC DMAN NONE A query response of NONE indicates an unrecognized code type Description Each channel contains a digital phase locked loop DPLL that can be programmed to decode a variety of different coding methods NRZ Non Return to Zero NRZM NRZI Mark NRZS RZI Space Reverse of FMI Reverse of FMO MANC Manchester DMAN Differential Manchester a k a Differential Biphase L See SERial RECeive CODE in previous section for more information on coding methods Note Here when levels are mentioned it refers to logical levels Different electrical standards produce different voltage levels on the signal lines Examples Command Query Response Description SER3 TRAN CODE MANC SER3 TRAN CODE MANC Related Commands SERial RECeive CODE VM6068 Command Dictionary 111 VXI Technology Inc SERial TRANsmit PACE Purpose Pace the transmitter Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt TRANsmit PACE lt NONE gt Niue channel 2 3 4 default is Channel 1 lt NONE Setting Reset Value N A Query Syntax SYSTem COMMunicate SERia
109. to 32767 Reset Value NRf must be supplied Query Syntax STATus QUEStionable ENABle Query Parameters None Query Response Numeric ASCII value from 0 to 32767 Description The Status Questionable Enable command sets the bits in the Questionable Status Enable Register This command is provided only to comply with the SCPI standard The Status Questionable Enable query reports the contents of the Questionable Status Enable Register The VM6068 does not alter the bit settings of this register and will report the last programmed value Examples Command Query Response Description STAT QUES ENAB 64 STAT QUES ENAB Related Commands 130 VM6068 Command Dictioinary www vxitech com STATus QUEStionable E VE Nt Purpose Queries the Questionable Status Event Register Type Required SCPI command Command Syntax None Query Only M VICE N A Reset Value N A Query Syntax STATus QUEStionable EVENt Query Parameters None Query Response 0 Description The Questionable Status Event Register is provided for SCPI compliance only The VM6068 does not alter the bits in this register and queries always report a 0 Examples Command Query Response Description STAT QUES Related Commands VM6068 Command Dictionary 131 VXI Technology Inc SYSTem ERRor Purpose Queries the Error Queue Type Required
110. type of serial reception errors found This word is the BD status word specifically See SERial RECeive ERRor MASK in previous section for error descriptions Examples Command Query Response Description SER2 REC STAT NEXT 4 Overrun Channel 2 Related Commands SYSTem COMMunicate SERial channel RECeive ERRor MASK 104 VM6068 Command Dictioinary www vxitech com SERial RECeive XOFF Purpose Pace the receiver Type Setting Command Syntax SYSTem COMMunicate SERial lt channel gt RECeive XOFF lt n gt lt channel gt 1 2 3 4 default is Channel 1 lt n gt 8 bit binary value Reset Value N A Query Syntax SYSTem COMMunicate SERial lt channel gt RECeive XOFF Query Parameters lt channel gt 1 2 3 4 default is Channel 1 Query Response 8 bit binary value Description User definable XOFF character associated with pacing the receiver Examples Command Query Response Description SER1 REC XOFF H13 SER1 REC XOFF Related Commands VM6068 Command Dictionary 105 VXI Technology Inc SERial RECeive XON Purpose Pace the receiver Type Setting Command Syntax SYSTem COMMunicate SERial channel RECeive XON lt n gt lt channel gt 1 2 3 4 default is Channel 1 lt n gt 8 bit binary value Reset Value N A
111. ueries the module for its identification string Type IEEE 488 2 Common Command Command Syntax None Query Only VENCER N A Reset Value N A Query Syntax IDN Query Parameters None Query Response ASCII character string Description The Identification query returns the identification string of the VM6068 module The response 15 divided into four fields separated by commas The first field 1s manufacturer s name the second field is the model number the third field is an optional serial number and the fourth field is the firmware revision number If a serial number is not supplied the third field is set to 0 zero Examples Command Query Response Description VXI Technology Inc VM6068 0 1 xx The revision listed here is for reference only the response will always be the current revision of the instrument Related Commands 76 VM6068 Command Dictioinary www vxitech com OPC Purpose Sets the OPC bit in the Event Status Register Type IEEE 488 2 Common Command Command Syntax OPC None Reset Value N A Query Syntax OPC Query Parameters None Query Response 1 Description The Operation Complete command sets the OPC bit in the Event Status Register when all pending operations have completed The Operation Complete query will return a 1 to the output queue when all p
112. upper 8 bits of the mask register should be set to Os Only the low order 8 bits of the mask register and address registers are then used for address matching If the mask register is set to all Os then all addresses are recognized All address registers are used for address comparison all the time If the user wants only one address to be recognized all address registers must be set to that address Note The least significant byte is received first Example A frame that begins with 7E Flag 68 AA is received To recognize this as a 16 bit address the mask should be set to F FFF and one of the address register should be set to AA68 To recognize this as an 8 bit address the mask register should be set to 00FF and one of the address register should be set to XX68 the upper 8 bits don t matter Command Query Response Description SER2 REC HADD 3 27 SER2 REC HADD 27 SERial RECeive HMASk VM6068 Command Dictionary 97 VXI Technology Inc SERial RECeive HMASk Purpose Sets a receive channel s HDLC address mask Type Setting Command Syntax SYSTem COMMunicate SERial channel RECeive HMASKk lt mask gt lt channel gt 1 2 3 4 default is Channel 1 mask 0 to 65535 Reset Value N A channels set to UART mode When a channel is set to HDLC mode the mask is set to 0 Query Syntax SYSTem COMMunicate SERial channel RECeiv
113. vice dependent register at offset 2016 with the 8 bit data right justified in the retrieved word The most significant bits contains error and block end flags See Reading Data via the Hardware FIFO in Section 3 for more information The lt data_handle gt parameter is used to enable and disable this hardware data path If FIFO is selected the connection is established If it is necessary to break the connection resend the command with this parameter set to NONE Sending the command prior to completing a data transfer will also break the connection and establish a new connection Because the instrument must set internal registers and initialize a DMA channel the user must use the OPC command to determine that the connection is properly established prior to sending data to the VM6068 When a FEED ALL command is made in addition to the receive data in the lower 8 bits bits 0 to 7 the channel number is also indicated in bit 8 and 9 Bit9 Bit8 Channel 0 0 RCHI 0 1 RCH2 1 0 RCH3 1 1 RCH4 120 VM6068 Command Dictioinary www vxitech com For status data bit 10 is the OR of the normal bits 8 9 and 10 so bits 8 and 9 can be used for the channel indicator In FEED ALL transmit data the lower 8 bits bits 0 to 7 are still for data The end indicator is bit 15 The user must place the channel indicator in bits 8 and 9 Bit9 Bit8 Channel 0 0 TCHI 0 1 TCH2 1 0 TCH3 1 1 TCH4 Examples Command Query Response
114. y www vxitech com TST Purpose Causes a self test procedure to occur and queries the results Type IEEE 488 2 Common Command Command Syntax None Query Only Oem N A Reset Value N A Query Syntax TST Query Parameters None Query Response Numeric ASCII value from 0 to 143 Description The Self Test query causes the VM6068 to run its self test procedures and report on the results The following tests are performed 1 Each channel runs an internal loop back self test 2 The buffer RAM runs a simple self test The TST query returns a numeric ASCII value which has the following meaning Bit 0 Channel 1 Failed Bit 1 Channel 2 Failed Bit 2 Channel 3 Failed Bit 3 Channel 4 Failed Bit 4 Unused Bit 5 Unused Bit 6 Unused Bit 7 RAM Test Failed A bit value of 1 in any location indicates a failure while a 0 value indicates that the test passed The RAM test failed bit indicates that the buffer RAM used for the data queues failed to pass a simple pseudo random pattern test or an all zeros test Examples Command Query Response Description TST Related Commands TST 0 VM6068 Command Dictionary 81 VXI Technology Inc WAI Purpose Halts execution of commands and queries until the No Operation Pending message is true Type IEEE 488 2 Common Command Command Syntax WAI Soup Be None Reset Value N A

Download Pdf Manuals

image

Related Search

Related Contents

User Manual - Kodak PIXPRO  Rexel Ice DocumentBox  model b3x series semi-automatic installation and  MANUALE HIPERLINK Manuale MANUALE TECNICO DI  Manual de instrucciones  N8151-25A 内蔵3.5型 MO装置 取扱説明書 (No.005180)  Télécharger le fichier ( 1,69 MB )  SD2020 User's Guide  DEPRO VALOREX 14  Comp 145 UNC-Chapel Hill Contract II Submitted to Dr. Stephen  

Copyright © All rights reserved.
Failed to retrieve file