8.3.3 Relay Control (Function Code 05H)
Use 05 command to control the relay. Relays are addressed starting at 0
Data Field is 0xFF00, request the relay to be ON.
Data Field is 0x0000, request the relay to be OFF.
Request Packet
(Master→SPM33)
Response Packet
(SPM33→Master)
Unit ID/ Slave
address
1 byte Unit ID/ Slave address 1 byte
05 H (Function
Code)
1 byte 05 H (Function Code) 1 byte
Start register
address
2 bytes Start register address 2 bytes
Data field FF Data field FF
Data field 00 Data field 00
CRC check code 2 bytes CRC check code 2 bytes
36