6.3 MEMOBUS/Modbus Communications
YASKAWA
SIEPC71061737B GA800 Drive Technical Reference
277
1. Make sure that the start value is FFFF (Hex.).
2. Calculate the FFFF (Hex.) start value and the XOR of the slave address (exclusive OR).
3. Move the step 2 results one column to the right. Do this shift until the carry bit is 1.
4. When the carry bit is 1, calculate XOR via the result from the above step 3 and A001 (Hex.).
5. Do steps 3 and 4 until the 8th shift to the right.
6. Use the result of step 5 to calculate the XOR and the data of the following messages (function code, register
address, data). Do steps 3 to 5 until the last data, then calculate.
7. The result of the last right shift or the value of the last XOR calculation is the result for CRC-16.
lists examples of the CRC-16 calculation of slave address 02 (Hex.) and function code 03 (Hex.). The
calculated results of CRC-16 for this section is D140 (Hex.).
Note:
The calculation example only gives information about some error checks with CRC-16. The drive will do the same error checks for the next
data.
Figure 6.8 CRC-16 Calculation Example
Response Data
The drive does the CRC-16 calculation for the response message and makes sure that the data does not have errors.
Make sure that the calculated value is the same value as the CRC-16 in the response message.
◆
Examples of Messages for Commands/Responses
The items in this section are examples of messages for commands/responses.
■
Read the Description of Holding Register
Uses function code 03 (Hex.) to read the contents of a maximum of 16 holding registers.
shows example messages when the drive reads status signal from the drive of slave 2, the error contents,
fault contents, and frequency references.
Description
Calculation
Overflow
Description
Calculation
Overflow
Initial value (FFFF(Hex.))
1111 1111 1111 1111
0000 0010
1111 1111 1111 1101
0111 1111 1111 1110
1
1
0
1
0
1
0
1
1
1
0
1
0
1
1
1
1010 0000 0000 0001
1101 1111 1111 1111
0110 1111 1111 1111
1010 0000 0000 0001
1100 1111 1111 1110
0110 0111 1111 1111
0011 0011 1111 1111
1010 0000 0000 0001
1001 0011 1111 1110
0100 1001 1111 1111
0010 0100 1111 1111
1010 0000 0000 0001
1000 0100 1111 1110
0100 0010 0111 1111
0010 0001 0011 1111
1010 0000 0000 0001
1000 0001 0011 1110
0000 0011
1000 0001 0011 1101
0100 0000 1001 1110
1010 0000 0000 0001
1110 0000 1001 1111
0111 0000 0100 1111
1010 0000 0000 0001
1101 0000 0100 1110
0110 1000 0010 0111
0011 0100 0001 0011
1010 0000 0000 0001
1001 0100 0001 0010
0100 1010 0000 1001
0010 0101 0000 0100
1010 0000 0000 0001
1000 0101 0000 0101
0100 0010 1000 0010
1010 0000 0000 0001
1110 0010 1000 0011
0111 0001 0100 0001
1010 0000 0000 0001
1101 0001 0100 0000
1101 0001 0100 0000
0
4
1
D
Address 02 (Hex.)
XOR w initial value
Shift 1
Shift 2
Shift 3
Shift 4
Shift 5
Shift 6
XOR w A001 (Hex.)
XOR w A001 (Hex.)
XOR w A001 (Hex.)
Shift 7
Shift 8
XOR w A001 (Hex.)
XOR w A001 (Hex.)
XOR result
XOR result
XOR result
XOR result
XOR result
Shift 1
Shift 2
Shift 3
Shift 4
Shift 5
Shift 6
XOR w A001 (Hex.)
XOR w A001 (Hex.)
XOR w A001 (Hex.)
Shift 7
XOR w A001 (Hex.)
XOR result
XOR w result
Function code 03 (Hex.)
XOR result
XOR result
XOR result
Shift 8
XOR w A001 (Hex.)
XOR result
XOR w A001 (Hex.)
XOR result
CRC-16
(Lower)
(Upper)
Continue from here with next data.
Perform operations with next data (function code)
Содержание GA800 Series
Страница 2: ...This Page Intentionally Blank 2 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 20: ...i 3 Warranty Information 20 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 30: ...1 3 Features and Advantages of Control Methods 30 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 58: ...2 9 Installation Methods 58 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 144: ...4 4 Start up Procedures 144 YASKAWA SIEPC71061737B GA800 Drive Technical Reference Figure 4 8 Basic Steps before Startup...
Страница 268: ...5 6 Safe Disable Input 268 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 306: ...6 3 MEMOBUS Modbus Communications 306 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 370: ...7 10 Troubleshooting Without Fault Display 370 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...
Страница 426: ...8 7 Storage Guidelines 426 YASKAWA SIEPC71061737B GA800 Drive Technical Reference...