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
Field name
Function code
Register address – high part
Register address – low part
Number of registers – high part
Number of registers – younger part
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
Field name
Function code
Register address - high part
Register address - low part
Register value - high part
Register value - low part
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
Field name
Function code
Register address - high part
Register address - low part
Response
Hex
Field name
0x04
Function code
0x00
Bytes
Register value – high part (9)
0x08
Register value – low part (9)
0x00
0x01
Response
Hex
Field name
0x05
Function code
0x00
Register address - high part
0x01
Register address - low part
0xFF
Register value - high part
0x00
Register value - low part
Response
Hex
Field name
0x06
Function code
0x00
Register address - high part
0x01
Register address - low part
Hex
0x04
0x02
0x00
0x0A
Hex
0x05
0x00
0x01
0xFF
0x00
Hex
0x06
0x00
0x01
5
Need help?
Do you have a question about the HMI-WING EC and is the answer not in the manual?