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:
Chia sẻ với bạn bè của bạn: