I-7088 and M-7088 User Manual, Rev: A1.2 7MH-026-A12
142
3.3.4. Sub-function 06 (0x06) Set communication settings
This sub-function code is used to set the communication protocol of
a module.
Request
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte 0x46
02
Sub-function code 1 Byte
0x06
03 Reserved
1
Byte 0x00
04
Baud Rate
1 Byte
0x03 ~ 0x0A, Baud Rate
code, see Section 1.10 for
details.
05 Reserved
1
Byte 0x00
06
Parity
1 Byte
0x00: No parity, 1 stop bit
0x01: No parity, 2 stop bits
0x02: Even parity, 1 stop
bit
0x03: Odd parity, 1 stop bit
Reserved for other
modules or firmware
versions and should be
zero
07 Reserved
1
Byte 0x00
08
Mode
1 Byte
0: DCON protocol
1: Modbus RTU protocol
09 ~
10
Reserved
2 Bytes
0x00 0x00