Installation manual

Model 8210A-2-5 IM-377
Aeroflex / Weinschel
42
7-22. Switch Protocol Commands
DEVICE SET Function: Sets the output of a device
Syntax: DEVICE SET addr setting
Argument(s): addr integer address setting word output setting
Remarks: This function is used set the output of a device.
Return Value: none
Example(s): DEVICE ATTN 4 255
DEVICE? SET Function: Reads the program word of a device
Syntax: DEVICE SET addr
Argument(s): addr integer address setting word output setting
Remarks: This function is used to read the output setting of the device.
Return Value: setting word output setting
Example(s): DEVICE? SET 4 returns ’170’
DEVICE SETMASK Function: Sets the output of a device using a mask value
Syntax: DEVICE SETMASK addr setting mask
Argument(s): addr integer address
setting word output setting
mask word output mask
Remarks: This function is used set the output of a device, using a mask value. Only those
outputs with a mask value of ’1’ will be effected.
Return Value: none
Example(s): DEVICE SETMASK 4 7 0x0F
DEVICE RELAY Function: Sets the specified output relay on/off
Syntax: DEVICE RELAY addr relay setting
Argument(s): addr integer address
relay byte relay # (1-8)
setting byte 1=on, 0=off
Remarks: This function is used to program the specified relay.
Return Value: none
Example(s): DEVICE RELAY 4 7 1
DEVICE? RELAY Function: Reads the specified relay setting
Syntax: DEVICE? RELAY addr relay
Argument(s): addr integer address
relay
byte relay # (1-8)
setting byte 1=on, 0=off
Remarks: This function is used to read the specified relay setting.
Return Value: setting byte 1=on, 0=off
Example(s): DEVICE? RELAY 4 7 returns ’1’
DEVICE RELAY CONG Function: Reads the entire configuration structure of a device’s internal EEPROM Syntax:
DEVICE? READ CONFIG addr
Argument(s): addr integer address
Remarks: This function is used to read the setting of the device’s configuration EEPROM.
Return Value: SwitchConfig structure. refer to the SmartStep Programmers Reference
for a discussion.
Example(s): DEVICE? READ CONFIG 4