Input Register Read (code 4) – the Function allows, with one message, to read subsequently
addressed registers . An attempt to read a non-existing register leads to an error message.
Example: Register 9 read
Request
Response
Field name
Hex
Field name
Hex
Function code
0x04
Function code
0x04
Register address – high part
0x00
Bytes
0x02
Register address – low part
0x08
Register value – high part (9)
0x00
Number of registers – high part
0x00
Register value – low part (9)
0x0A
Number of registers – younger part
0x01
Table 8: Exemplary input register read
Record of one binary output (code 5) – Function allows to record one binary output. Allowable
values 0xFF00 (ON), 0x0000 (OFF).. Attempt to record a non-existing binary output leads to an error
message.
Example: output 2 record (ON)
Request
Response
Field name
Hex
Field name
Hex
Function code
0x05
Function code
0x05
Register address - high part
0x00
Register address - high part
0x00
Register address - low part
0x01
Register address - low part
0x01
Register value - high part
0xFF
Register value - high part
0xFF
Register value - low part
0x00
Register value - low part
0x00
Table 9: Exemplary record of one binary output
Record of one memory register (code 6) - Function allows to record one register. Attempt to record a
non-existing register leads to an error message
Example: Register 2 record
Request
Response
Field name
Hex
Field name
Hex
Function code
0x06
Function code
0x06
Register address - high part
0x00
Register address - high part
0x00
Register address - low part
0x01
Register address - low part
0x01
5