I-7088 and M-7088 User Manual, Rev: A1.2 7MH-026-A12
139
3.3.2. Sub-function 04 (0x04) Set module address
This sub-function code is used to set the address of a module.
Request
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte
0x46
02
Sub function code
1 Byte
0x04
03
New address
1 Byte
1 to 247
04 ~
06
Reserved
3 Bytes 0x00 0x00 0x00
Response
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte
0x46
02
Sub-function code
1 Byte
0x04
03
Set address result
1 Byte
0: OK
Others: error
04 ~
06
Reserved
3 Bytes 0x00 0x00 0x00
Error Response
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte
0xC6
02
Exception code
1 Byte
03: The new address is out
of range, reserved bytes
should be filled with zero,
or an incorrect number of
bytes were received