SMAX MODBUS®
8.2 Using the 04 Read Input Register function code
EXAMPLE 1
Slave having the node address 1.
Request PDU
(in hexadecimal notation)
[01][04][00][01][00][01][60][0A]
where:
[01] = Slave address
[04] =
function code
[00][01] = starting address (
parameter, register 2)
[00][01] = number of requested registers
[60][0A] = CRC
Response PDU
(in hexadecimal notation)
[01][04][02][13][C5][74][53]
where:
[01] = Slave address
[04] =
function code
[02] = number of bytes (2 bytes for each register)
[13][C5] = value of register 2
, 13 C5 hex = 5061
dec
[74][53] = CRC
parameter (register 2) contains the value 13 C5
hex, i.e. 5061 in decimal notation.
MAN SMAX MB E 1.2
Programming examples
78 of 84
Содержание SMAX-AI1-PRG-L2
Страница 82: ...This page intentionally left blank...
Страница 83: ...This page intentionally left blank...