Individual Functions
6-
97
Function Code
The function code specifies commands. There are three function codes, as shown below.
Data
Configure consecutive data by combining the storage register address (test code for a loopback address) and
the data the register contains. The data length changes depending on the command details.
Error Check
Errors are detected during communications using CRC-16. Perform calculations using the following method.
1. The factory setting for CRC-16 communications is usually 0, but when using the MEMOBUS system, set
the factory setting to 1 (i.e., set all 16 bits to 1).
2. Calculate CRC-16 using MSB as slave address LSB, and LSB as the MSB of the final data.
3. Also calculate CRC-16 for response messages from the slaves, and compare them to the CRC-16 in the
response messages.
Function Code
(Hexadecimal)
Function
Command Message Response Message
Min.
(Bytes)
Max.
(Bytes)
Min.
(Bytes)
Max.
(Bytes)
03H Read storage register contents 8 8 7 37
08H Loopback test 8 8 8 8
10H Write multiple storage registers 11 41 8 8
TOE-S616-60.1.book 97 ページ 2017年8月4日 金曜日 午後3時41分