Lite-On Technology Corp.
Industrial Automation
197
CRC Check High
(1 Bytes)
1BH (high bit set)
Response
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)
CRC Check High
(1 Bytes)
1BH (high bit set)
Note: In the RTU mode, a standstill period for 10 ms is required before and after transmission.
Example 3, Function Code 10H, Multiple Word Writing:
For the example below, the master passes down the writing command to Slave No. 127 (7FH) for writing
two words EF01H and 2345H to the home address 0012H. In other words, Location 0012H is written to
EF01H and Location 0013H is written to 2345H. Up to 10 entries allowed to be read at once. The slave
replies the master after writing is complete.
Request command: Response command:
Request
command:
Slave Address
(1 Bytes)
7FH
Function
(1 Bytes)
10H
Initial data
location
(2 bytes)
00H (high bit set)
12H (low bit set)
Number of data
entries
(Unit: word)
(2 bytes)
00H (high bit set)
02H (low bit set)
Number of data
entries
(Unit: byte)
(1 byte)
04H
First data written
to Location 0012H
EF01H
Second data
written to
Location 0013H
2345H
CRC Check Low
(1 Bytes)
50H (low bit set)