Response
The normal response contains a two-byte status word field,
a two-byte event count field, a
two-byte message count field, and a field containing 0 ... 64 bytes of events.
A byte-count field
defines the total length of the data in these four fields.
Here is an example of a response to the query:
In this example, the status word is 00 00 hex, indicating that the
slave is not processing a
program function. The event count shows that 264 (01 08 hex) events have been counted by the
slave. The message count shows that 289 (01 21 hex) messages have been processed.
The most recent communications event is shown in the Event 0 byte. Its contents (20 hex) show
that the slave has most recently entered the Listen Only Mode.
The previous event is shown in the Event 1 byte. Its contents (00 hex)
show that the slave
received a Communications Restart.
Chia sẻ với bạn bè của bạn: