ES58 • EM58 MODBUS®
8.3 Using the 06 Write Single Register function code
EXAMPLE 1
Operating parameters [0008 hex]
to the Slave having the node address 1: we need to set the scaling function
(
= 1) and the count up information with clockwise rotation of
the encoder shaft (
= 0). The value to set is 00 01 hex (= 0000
0000 0000 0001 in binary notation: bit 0
= 0; the remaining bits are not used, therefore their value is 0).
Request PDU
(in hexadecimal notation)
[01][06][00][08][00][01][C9][C8]
where:
[01] = Slave address
[06] =
function code
[00][08] = address of the register (
Operating parameters [0008 hex]
register 9)
[00][01] = value to be set in the register
[C9][C8] = CRC
Response PDU
(in hexadecimal notation)
[01][06][00][08][00][01][C9][C8]
where:
[01] = Slave address
[06] =
function code
[00][08] = address of the register (
Operating parameters [0008 hex]
register 9)
[00][01] = value set in the register
[C9][C8] = CRC
The value 00 01 hex is set in the
Operating parameters [0008 hex]
i.e. 0000 0000 0000 0001 in binary notation: bit 0
= 0; the remaining bits are not used, therefore their value is 0.
MAN ESx58x_EMx58x MB E 1.3
Programming examples
87 of 92