Modbus Protocol Specification


What the Event Bytes Contain



tải về 0.61 Mb.
Chế độ xem pdf
trang13/35
Chuyển đổi dữ liệu14.05.2023
Kích0.61 Mb.
#54683
1   ...   9   10   11   12   13   14   15   16   ...   35
modbus protocol

What the Event Bytes Contain
An event byte returned by the Fetch Communications Event Log function can be any one of
four types. The type is defined by bit 7 (the high-order bit) in each byte. It may be further
defined by bit 6.
Slave Modbus Receive Event
http://www.modicon.com/techpubs/dcon7.html (15 of 36) [1/11/2000 10:41:04 PM]


This type of event byte is stored by the slave when a query message is received. It is stored
before the slave processes the message. This event is defined by bit 7 set to a logic 1. The other
bits will be set to a logic 1 if the corresponding condition is TRUE. The bit layout is:
Slave Modbus Send Event
This type of event byte is stored by the slave when it finishes processing a query message. It is
stored if the slave returned a normal or exception response, or no response. This event is
defined by bit 7 set to a logic 0, with bit 6 set to a 1. The other bits will be set to a logic 1 if the
corresponding condition is TRUE. The bit layout is:
Slave Entered Listen Only Mode
This type of event byte is stored by the slave when it enters the Listen Only Mode. The event is
defined by a contents of 04 hex. The bit layout is:
http://www.modicon.com/techpubs/dcon7.html (16 of 36) [1/11/2000 10:41:04 PM]


Slave Initiated Communication Restart
This type of event byte is stored by the slave when its communications port is restarted. The
slave can be restarted by the Diagnostics function (code 08), with subfunction Restart
Communications Option (code 00 01).
That function also places the slave into a Continue on Error or Stop on Error mode. If the slave
is placed into Continue on Error mode, the event byte is added to the existing event log. If the
slave is placed into Stop on Error mode, the byte is added to the log and the rest of the log is
cleared to zeros. The event is defined by a contents of zero. The bit layout is:

tải về 0.61 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   9   10   11   12   13   14   15   16   ...   35




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương