- 28 -
8-5-4. Writing analog setting value [Function code: 06 (06H)]
Consider the analog setting value of the specified number as the set value.
Example) Set SV decimal point position of slave 1 to 1.
<RTU mode>
Master
→
Device
Device
→
Master (Normal)
Slave address
01H
Slave address
01H
Function code
06H
Function
code 06H
Setting value
number (H)
00H
Setting value
number (H)
00H
Setting value
number (L)
07H
Setting value
number (L)
07H
Set data (H)
00H
Set data (H)
00H
Set data (L)
01H
Set data (L)
01H
CRC (L)
F9H
CRC (L)
F9H
CRC (H)
CBH
CRC (H)
CBH
LRC F1H
LRC
F1H
Note) Starting number (Relative number) is 'Reference number - 40001'.
Note) During normal response the response is same as command message.
Note) If slave address is considered as 0, all the slave machines execute this command.
However, no slave machine responds.
8-5-5. Loop back test [Function code: 08 (08H)]
Perform transmission check between master slaves. Respond in accordance to the diagnosis code
that is specified. In this device perform 'return check to send the received data as it is' and diagnosis
code is fixed as '0000H'.
Example) Implement 'Loop back test' to slave 2.
<RTU mode>
Master
→
Device
Device
→
Master (Normal)
Slave address
02H
Slave address
02H
Function code
08H
Function
code 08H
Diagnosis
code (H)
00H
Diagnosis
code (H)
00H
Diagnosis
code (L)
Fixed
00H
Diagnosis
code (L)
Fixed
00H
Option data
*
Received data
*
Option data
*
Received data
*
CRC (L)
*
CRC (L)
*
CRC (H)
*
CRC (H)
*
<ASCII mode error check> (*CRC(L)(H) of the above are LRC as follows.)