User's Manual

268XA
Service Manual
6-22
Command: DIO?
Description: Get the value of the DIO Digital lines 0 through 19
Parameters: None
Response: 0 to 1048575 (2^
20
– 1)
Restrictions: None.
Notes: 0: all lines low; 1: line 0 high, all other lines low; 2: line 1 high, all other lines low; 3: lines 0 and 1
high, all other lines low; …; 1048575: all lines set high
Command: RELAY <mask>, <value>
Description: Set the value of the DIO Relays 1 through 8
Parameters: <mask> integer from 1 to 255 (2^
8
– 1); <value> integer from 1 to 255 (2^
8
– 1)
Response: None
Restrictions: None.
Notes: "1" is reset and "0" is set; to set all relays: 255, 0; to reset all relays: 255, 255
Command: RELAY?
Description: Get the value of the DIO Relays 1 through 8
Parameters: None
Response: 0 to 255 (2^
8
– 1)
Restrictions: None.
Notes: 0: all Relays Set; 1: Relay 1 Reset, all other Relays Set; 2: Relays 2 Set, all other Relays Reset; 3:
Relays 1 and 2 Set, all other Relays Reset; …; 255: all Relays Set
Note on DIO Relays/Digital lines programming:
Serial control for the individual DIO Relays or Digital lines is based on bit values. For the relays,
the firmware decided that "1" is reset and "0" is set; for the digital lines, “1” is high and “0” is
low. Relay 1/DIO line 0 has bit value 2^0 =1, Relay 2/DIO line 1 has bit value 2^1 = 2, Relay
3/DIO line 2 has bit value 2^2 = 4, …, Relay 8/DIO line 7 has bit value 2^7 = 128, DIO line 19
has bit value 2^19 = 524,288. The arguments for RELAY or DIO are <mask>, <value>. To Set
Relays 2 and 3, the arguments would be “6, 0” and to Reset “6, 6”. To Set all relays: “255, 0”;
Reset all: “255, 255”. Similarly, to set DIO lines 2 and 3 high: “12, 12”; to set lines 2 and 3 low,
“12, 0”. To set all lines high: “1048575, 1048575”; to set all low: “1048575, 0”.
Command: TOTINIT <value>
Description: Set the value of the DIO Totalizer
Parameters: <value> integer from 0 to 2^
32
(4,294,967,296)
Response: None