EM58 – HS58 - HM58 MODBUS TCP/IP
Here is an example of a request to read the
(address 104-105).
Request
Response
Field name
(Hex)
Field name
(Hex)
Function
03
Function
03
Starting address Hi
00
Byte count
04
Starting address Lo
68
Register 105 value Hi
00
No. of registers Hi
00
Register 105 value Lo
00
No. of registers Lo
02
Register 106 value Hi
05
Register 106 value Lo
DC
As you can see in the table, the
105) contain the value 00 00 hex and 05 DC hex, i.e. 1500 in decimal notation.
The MODBUS TCP/IP ADU needed for the request to read the
registers (address 104-105) is as follows:
MBAP Request PDU
(in hexadecimal notation)
[00][01][00][00][00][06][00][03][00][68][00][02]
where:
[00][01] = Transaction Identifier
[00][00] = Protocol Identifier
[00][06] = Length
[00] = Unit Identifier
[03] =
function code
[00][68] = starting address (
105)
[00][02] = number of requested registers
The MODBUS TCP/IP ADU needed to send back the values of the
registers (address 104-105) is as follows:
MBAP Response PDU
(in hexadecimal notation)
[00][01][00][00][00][07][00][03][04][00][00][05][DC]
where:
[00][01] = Transaction Identifier
[00][00] = Protocol Identifier
[00][07] = Length
[00] = Unit Identifier
[03] =
function code
MAN EM58_HS58_HM58 MT E 1.1.odt
MODBUS® TCP/IP interface 40 of 104
Содержание EMC58 MT
Страница 101: ...This page intentionally left blank ...
Страница 102: ...This page intentionally left blank ...
Страница 103: ...This page intentionally left blank ...