V
Read FIFO Queue
2.1 Modbus Function Formats
Note: Unless specified otherwise, numerical values (such
as addresses, codes, or data) are
expressed as decimal values in the text of this section. They are expressed as hexadecimal
values in the message fields of the figures.
2.1.1 Data Addresses in Modbus Messages
All data addresses in Modbus messages are referenced to zero. The
first occurrence of a data
item is addressed as item number zero. For example:
V Coil 1 in a programmable controller is addressed as coil 0000 in the data address field of a
Modbus message
V Coil 127 decimal is addressed as coil 007E hex (126 decimal)
V Holding register 40001 is addressed as register 0000 in the data address field of the message.
The function code field already specifies a holding register operation. Therefore the 4
x
reference is implicit.
V Holding register 40108 is addressed as register 006B hex (107 decimal)
2.1.2 Field Contents in Modbus Messages
The following tables show examples of a Modbus query and normal response. Both examples
show the field contents in hexadecimal, and also show how
a message could be framed in
ASCII or in RTU mode.
Chia sẻ với bạn bè của bạn: