Message Format; Message Content; Slave Address; Function Code - YASKAWA CIMR-VU BA0001 Technical Manual

Ac drive-v1000 200 v class, three-phase input: 0.1 to 18.5 kw; 200 v class, single-phase input: 0.1 to 3.7 kw; 400 v class, three-phase input: 0.2 to 18.5 kw
Table of Contents

Advertisement

C.8 Message Format
C.8 Message Format
u

Message Content

In MEMOBUS/Modbus communications, the master sends commands to the slave, and the slave responds. The message
format is configured for both sending and receiving as shown below, and the length of data packets depends on the command
(function) content.

SLAVE ADDRESS

FUNCTION CODE

DATA

ERROR CHECK

u
Slave Address
The slave address in the message defines the note the message is sent to. Use addresses between 0 and 20H. If a message with
slave address 0 is sent (broadcast), the command from the master will be received by all slaves. The slaves do not provide a
response to a broadcast type message.
u
Function Code
The three types of function codes are shown in the table below.
Function
Code
03H
Read MEMOBUS/Modbus registers
08H
Loopback test
10H
Write to multiple MEMOBUS/Modbus registers
u
Data
Configure consecutive data by combining the MEMOBUS/Modbus register address (test code in case of a loopback test) and
the data the register contains. The data length changes depending on the command details.
A drive MEMOBUS/Modbus register always has a data length of two bytes. Therefore data written into drive registers must
also always have a length of two bytes. Register data read out from the drive will always consist of two bytes.
u
Error Check
The drive uses a CRC-16 (cyclic redundancy check, checksum method) for checking data validity. Use the procedure described
below when calculating the CRC-16 checksum for command data or when verifying response data.
n
Command Data
When the drive receives data, it calculates the CRC-16 checksum from the data and compares it to the CRC-16 value received
within the message. Both must match before a command is processed.
An initial value of FFFFH (i.e., all 16 bits equal 1) must be used for CRC-16 calculations for the MEMOBUS/Modbus protocol.
Calculate the CRC-16 checksum using the following steps:
• The starting value is FFFFH.
• Perform an XOR operation of this value and the slave address.
• Right shift the result.
• When the overflow bit of the shift operation becomes 1, perform an XOR operation of the result from step 3 above and the
fix value A001H.
• Repeat steps 3 and 4 until eight shift operations have been performed.
• After eight shift operations, perform an XOR operation with the result and the next data in the message (function code,
register address, data). Continue with steps 3 to 5 until the last data has been processed.
• The result of the last shift or XOR operation is the checksum.
444
Function Name
YASKAWA ELECTRIC SIEP C710606 18F YASKAWA AC Drive – V1000 Technical Manual
Data Length (bytes)
Command Message
Minimum
Maximum
8
8
8
8
11
41
Response Message
Minimum
Maximum
7
37
8
8
8
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents