194
SIEPCYEUOQ2V01A Q2V Technical Manual
■
Slave Address
Set the slave address of the drive to 00 to FF (Hex.). When the slave address is 00 (Hex), the master sends the
command and all slaves receive the command.
The slave will not send a response message to the master.
■
Function Code
There are five function codes that set commands.
Table 6.5 Function Codes
Function
Code
(Hex.)
Subfunc
tion
Code
(Hex.)
Function
Command Message
Response Message
Minimum Data
Length
(byte)
Maximum Data
Length
(byte)
Minimum Data
Length
(byte)
Maximum Data
Length
(byte)
03
-
Read the Description of Holding Register
8
8
7
37
08
-
Loopback Test
8
8
8
8
10
-
Writing to Multiple Holding Registers
11
41
8
8
5A
-
Writing to Multiple Holding Registers / Reading
the Register Indicated
11
41
17
17
67
010D
Reading Contents of Non-Consecutive Holding
Registers
10
248
10
248
010E
Writing to Non-Consecutive Holding Registers
14
250
8
8
■
Communications Data
Communications data is a series of data that uses the combination of the communications register number and the
data for these registers. The data length changes when the description of the command changes. For a loopback
test, it switches to test code.
The communications register for the drive has a 2-byte length. Data that is written to the register for the drive is
usually 2 bytes. Register data that is read from the drive is also 2 bytes.
■
Error Check
Error check uses the CRC-16 method to detect transmission errors. Use the procedure in this section to calculate
CRC-16.
Command Data
When the drive receives data, it will make sure that there are no errors in the data. The drive uses the procedure
below to calculate CRC-16, then compares that data with the CRC-16 value in the message. If the CRC-16 values
do not agree, the drive will not execute a command message.
When you calculate CRC-16 in Modbus communications, make sure that you set the start value as FFFF (Hex.).
All 16 bits must be 1.
Use this procedure to calculate CRC-16:
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.
Summary of Contents for Q2V Series
Page 2: ...This Page Intentionally Blank 2 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 12: ...12 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 18: ...i 2 Legal Information 18 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 26: ...1 2 Features and Advantages of Control Methods 26 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 38: ...2 8 Installation Methods 38 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 70: ...3 3 Main Circuit Wiring 70 SIEPCYEUOQ2V01A Q2V Technical Manual Models B006 B012...
Page 102: ...3 17 Motor Application Precautions 102 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 138: ...4 12 Test Run Checklist 138 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 144: ...5 2 European Standards 144 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 145: ...Standards Compliance 5 5 2 European Standards SIEPCYEUOQ2V01A Q2V Technical Manual 145...
Page 146: ...5 2 European Standards 146 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 266: ...7 10 Troubleshooting Without Fault Display 266 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 284: ...8 6 Storage Guidelines 284 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 312: ...10 10 Peripheral Devices and Options 312 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 430: ...11 21 Parameters Changed by PM Motor Code Selection 430 SIEPCYEUOQ2V01A Q2V Technical Manual...
Page 731: ...SIEPCYEUOQ2V01A Q2V Technical Manual 731 Z Z pulse Auto Tuning 125...