Modbus Protocol Specification


(10 Hex) Preset Multiple Registers



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

2.2.11 16 (10 Hex) Preset Multiple Registers
Presets values into a sequence of holding registers (4x references). When broadcast, the
http://www.modicon.com/techpubs/dcon7.html (18 of 36) [1/11/2000 10:41:04 PM]


function presets the same register references in all attached slaves. The maximum parameters
supported by various controller models are listed on page .
Note: The function will override the controller's memory protect state. The preset values will
remain valid in the registers until the controller's logic next solves the register contents. The
register values will remain if they are not programmed in the controller's logic.
Query
The query message specifies the register references to be preset. Registers are addressed starting
at zero-register 1 is addressed as 0.
The requested preset values are specified in the query data field. M84 and 484 controllers use a
10-bit binary value, with the six high order bits set to zeros. All other controllers use 16-bit
values. Data is packed as two bytes per register.
Here is an example of a request to preset two registers starting at 40002 to 00 0A and 01 02 hex,
in slave device 17:
Response
The normal response returns the slave address, function code, starting address, and quantity of
registers preset. Here is an example of a response to the query shown above.
http://www.modicon.com/techpubs/dcon7.html (19 of 36) [1/11/2000 10:41:04 PM]


2.2.12 17 (11 Hex) Report Slave ID
Returns a description of the type of controller present at the slave address, the current status of
the slave Run indicator, and other information specific to the slave device. Broadcast is not
supported.
Query
Here is an example of a request to report the ID and status of slave device 17:

tải về 0.61 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   11   12   13   14   15   16   17   18   ...   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