ES58 • EM58 MODBUS®
The full frame needed for the request to read the
parameter (input registers 2 and 3) to the Slave having the node
address 1 is as follows:
Request PDU
(in hexadecimal format)
[01][04][00][01][00][02][20][0B]
where:
[01] = Slave address
[04] =
function code
[00][01] = starting address (
Current position [0001-0002 hex]
register 2)
[00][02] = number of requested registers
[20][0B] = CRC
The full frame needed to send back the value of the
parameter (registers 2 and 3) from the Slave having the node
address 1 is as follows:
Response PDU
(in hexadecimal format)
[01][04][04][00][00][2F][F0][E7][F0]
where:
[01] = Slave address
[04] =
function code
[04] = number of bytes (2 bytes for each register)
[00][00] = value of register 2
Current position [0001-0002 hex]
, 00 00 hex =
0 dec
[2F][F0] = value of register 3
Current position [0001-0002 hex]
, 2F F0 hex =
12272 dec
[E7][F0] = CRC
06 Write Single Register
FC = 06 (06 hex)
This function code is used to WRITE a single holding register in a remote device.
The Request PDU specifies the address of the register to be written. Registers are
addressed starting at zero. Therefore register numbered 1 is addressed as 0.
The normal response is an echo of the request, returned after the register
contents have been written. For the complete list of registers accessible using
function code please refer to the “7.1.1 Machine data
parameters (Holding registers)” section on page 65.
MAN ESx58x_EMx58x MB E 1.3
MODBUS® interface
59 of 92
Содержание EM58 MB
Страница 90: ...This page intentionally left blank...
Страница 91: ...This page intentionally left blank...