B&B Electronics RS-485 Switch User Manual


 
16 485SDA103798 Manual
B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Set Digital Output Command
The Set Digital Output command is used to set the states of the
3 digital output lines. This command requires a data byte. The data
byte is used to specify the output states. Bits 0-2 correspond to the
states of digital outputs 0-2. If a bit is a 0 then the output will be set
LOW. If a bit is a 1 then the output will be set HIGH. Refer to Table
3.6. NOTE: This command ignores Bits 3-7 of the data byte.
Command Syntax
!{addr}SO{states}
Where {states} is a byte in which Bits 0-2 correspond to the outputs
states of Digital Outputs 0-2
Unit Response
no response
Set Module Address Command
The Set Module Address command is used to change the
address of a 485SDA10. This command requires a data byte. The
data byte is used to specify the new address of the unit. The
address of a module is stored in non-volatile memory.
Command Syntax
!{addr}SA{new address}
Response Syntax
no response
Where {addr} is the current address of the module and {new
address} is a byte representing the new address.
Table 3.6 - Set Digital Output Data Byte Values
Data Byte Digital Outputs
Bit 2 Bit 1 Bit 0 #2 #1 #0
0 0 0 LOW LOW LOW
0 0 1 LOW LOW HIGH
0 1 0 LOW HIGH LOW
0 1 1 LOW HIGH HIGH
1 0 0 HIGH LOW LOW
1 0 1 HIGH LOW HIGH
1 1 0 HIGH HIGH LOW
1 1 1 HIGH HIGH HIGH