23
8.2 Abnormal Response
If the master sends an illegal package or asks for an invalid data register, an abnormal data
respond will be generated. This abnormal data response is composed of the slave address,
functional code, fault code and check field. When the highest bit of the functional code field
is 1, it means that the data frame is an abnormal response at this time. The table below
describes the meanings of abnormal functional codes:
Fault Code
Description
01H
Receive illegal operation functional code
02H
Receive illegal register operation or over-long data
8.3 Relay Control
The functional code is 05H.
In this mode, only individual relay can be controlled. The status of the relay can be obtained
by reading the relay status register. Send sexadecimal FF 00 to close the relay. Send
sexadecimal 00 00 to release the relay. All other value is invalid.
Control relay format
(master→PMAC615
)
Response format
(PMAC615→ master)
Slave address
1 byte
Slave 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
Содержание PMAC615
Страница 34: ...34 http www pmac com cn ...