Lite-On Technology Corp.
Industrial Automation
196
Number of data
entries
(Unit: word)
(2 bytes)
00H (high bit set)
02H (low bit set)
CRC Check Low
(1 Bytes)
CFH (low bit set)
CRC Check High
(1 Bytes)
ADH (high bit set)
Response
command
:
Slave Address
(1 Bytes)
7FH
Function
(1 Bytes)
03H
Number of data
entries
(Unit: byte)
(1 byte)
04H
Initial data address
Contents of 0200H
(2 bytes)
11H (high bit set)
22H (low bit set)
Address of the
second data
Contents of 0201H
(2 bytes)
33H (high bit set)
44H (low bit set)
CRC Check Low
(1 Bytes)
D5H (low bit set)
CRC Check High
(1 Bytes)
C1H (high bit set)
Note: A standstill period for 10 ms is required before and after transmission.
Example 2, Function Code 06H Single Word Writing:
For the following example, the master passes down the writing command to No. 127 (7FH) Slave for writing
the data 1234H to the address 0200H. The slave replies the master after writing is complete.
RTU mode:
Request command: Response command:
Request
command:
Slave Address
(1 Bytes)
7FH
Function
(1 Bytes)
06H
Initial data
location
(2 bytes)
02H (high bit set)
00H (low bit set)
Data content
(2 bytes)
12H (high bit set)
34H (low bit set)
CRC Check Low
(1 Bytes)
8FH (low bit set)