SMAX MODBUS®
Starting address Hi
00
Starting address Hi
00
Starting address Lo
04
Starting address Lo
04
Quantity of registers Hi
00
Quantity of registers Hi
00
Quantity of registers Lo
02
Quantity of registers Lo
02
Byte count
04
Register 1 value Hi
00
Register 1 value Lo
0A
Register 2 value Hi
00
Register 2 value Lo
01
As you can see in the table, the value 00 0A hex, i.e. 10 in decimal notation, is
set in the register 5
01 hex, i.e. 1 in decimal notation = baud rate 9600 bit/s, parity bit Even, is set in
the register 6
Serial com baud rate [0005 hex]
will be programmed to have node address 10 and data transmission rate = 1 =
baud rate 9,600 bit/s, parity bit Even.
The full frame needed for the request to write the value 10 dec next to the
parameter (register 5) and the value 1 dec next to
Serial com baud rate [0005 hex]
parameter (register 6) to the Slave
having currently the node address 1 is as follows:
Request PDU
(in hexadecimal format)
[01][10][00][04][00][02][04][00][0A][00][01][13][9E]
where:
[01] = Slave address
[10] =
function code
[00][04] = starting address (
parameter, register 5)
[00][02] = number of requested registers
[04] = number of bytes (2 bytes for each register)
[00][0A] = value to be set in the register 5, 00 0A hex = 10 dec
[00][01] = value to be set in the register 6, 00 01 hex = 1 dec
[13][9E] = CRC
The full frame needed to send back a response following the request to write the
value 10 next to the
parameter (register 5) and the
MAN SMAX MB E 1.2
Modbus® interface
57 of 84
Содержание SMAX-AI1-PRG-L2
Страница 82: ...This page intentionally left blank...
Страница 83: ...This page intentionally left blank...