
64
8.3 Relay control
The functional code is 05H.
In this mode, only individual relay can be controlled. The status of a relay can be obtained by
reading the relay status register. The relay address starts from 0 in the register. The address of
relay 1 is 0, and the rest may be deduced by analogy. Sending sexadecimal FF 00 closes a relay
and sending sexadecimal 00 00 releases a relay. All the other values will be invalid.
Control relay format
(Main station
→
PMAC735)
Response format
(
PMAC735
→
main station
)
Slave station address
1 byte
Slave station address
1 byte
Functional code 05H
1 byte
Functional code 05H
1 byte
Channel address
2 bytes
Channel address
2 bytes
Control command
2 bytes
Control command
2 bytes
CRC check code
2 bytes
CRC check code
2 bytes