background image

8

Address Field

The address field of a message frame contains
8 bits. Valid slave device addresses are in the
range of 0 – 247 decimal. The individual slave
devices are assigned addresses in the range
of 1 – 247. (0 is reserved for broadcast mode,
which all slaves recognize.) A master
addresses a slave by placing the slave address
in the address field of the message. When
the slave sends its response, it places its own
address in this address field to let the master
know which slave is responding.

Function Field

The function field of a message frame contains
8 bits. Valid codes are in the range of 1 – 255
decimal. When a message is sent from a
master to a slave device, the function code
field tells the slave what kind of action to
perform.

When the slave responds to the master, it
uses the function code field to indicate either
a normal (error-free) response, or that some
kind of error occurred (called an exception
response). For a normal response, the slave
simply echoes the original function code. For
an exception response, the slave returns a
code that is equivalent to the original function
code with its most-significant bit set to a logic
1. In addition, the slave places a unique code
into the data field of the response message.
This tells the master what kind of error
occurred, or the reason for the exception. See
the 

Exception Codes

 section in this manual

for definitions.

Data Field

The data field is constructed using sets of two
hexadecimal digits, in the range of 00 to FF
hexadecimal. These are made from one RTU
character. The data field of messages sent
from a master to slave device contains
additional information which the slave must
use to take the action defined by the function
code. This can include items like coil or register
addresses, the quantity of items to be handled,
and the count of actual data bytes in the field.
The data field can have a length of zero.

CRC Check Field

Messages include an error-checking field that
is based on a cyclical redundancy check (CRC)
method. The CRC field checks the contents
of the entire message. It is applied regardless
of any parity check method used for the
individual characters of the message. The CRC
value is calculated by the transmitting device,
which appends the CRC as the last field in
the message. The receiving device
recalculates a CRC during receipt of the
message and compares the calculated value
to the actual value received in the CRC field.
If the two values are not equal, a bus timeout
results.

The error checking field contains a 16-bit binary
value implemented as two 8-bit bytes. When
this is done, the low-order byte of the field is
appended first, followed by the high-order byte.
The CRC high-order byte is the last byte sent
in the message.

Coil/Register Addressing

All data addresses in Modbus messages are
referenced to zero. The first occurrence of a
data item is addressed as item number zero.
For example:

The coil known as ‘coil 1’ in a programmable
controller is addressed as coil 0000 in the data
address field of a Modbus message. Coil 127
decimal is addressed as coil 007E

HEX

 (126

decimal).

Holding register 40001 is addressed as register
0000 in the data address field of the message.
The function code field already specifies a
‘holding register’ operation. Therefore, the
‘4XXXX’ reference is implicit. Holding register
40150 is addressed as register 0095B

HEX

 (149

decimal).

Modbus RTU

Message

Framing

Structure

(continued)

Содержание Mobrus RTU TR1 Series

Страница 1: ...TR1 Series VFD Variable Frequency Drive ModbusTM RTU Instruction Manual June 2004 TR1 SVX02A EN 175R5563...

Страница 2: ...ear safety glasses whenever working on electric control or rotating equipment WARNING Hazardous Voltage Touching electrical parts may be fatal even after equipment has been disconnected from the AC in...

Страница 3: ...and Data Type 12 Communication Examples Standard Modbus Functions 13 Example 1 Start the Drive and Give It a Reference via Modbus RTU 14 Example 2 Give the Drive a Reference via Modbus RTU 15 Example...

Страница 4: ...Series VFD Modbus RTU is designed to communicate with any controller that supports the interfaces defined in this document It is assumed that you have full knowledge of the capabilities and limitation...

Страница 5: ...ed to them individually Responses are not returned to broadcast queries from the master The Modbus RTU protocol establishes the format for the master s query by placing into it the device or broadcast...

Страница 6: ...s 0 5 Nm Shielded wiring must be used Ground shield to drive terminal 61 drive casing or as appropriate for the network application DIP switches 2 and 3 located on the main control board of the drive...

Страница 7: ...adcast messages To ensure the attribute data returned is the most current each attribute access must include one attribute only A typical message frame is shown below Start Address Function Data CRC C...

Страница 8: ...ns additional information which the slave must use to take the action defined by the function code This can include items like coil or register addresses the quantity of items to be handled and the co...

Страница 9: ...cases if references from multiple sources are supplied to the drive the drive will respond to the sum of the references Master to Drive 33 48 Drive Status Word see table Drive to Master 49 64 Open Lo...

Страница 10: ...ot ready Control ready 34 Drive not ready Drive ready 35 Coasting Stop Safety closed 36 No alarm Alarm 37 Not in use 38 Not in use 39 Not in use 40 No warning Warning 41 Not at reference At reference...

Страница 11: ...the individual parameter description in the drive instruction manual to determine the numeric value associated with each selection This value is shown in brackets in each parameter selection Paramete...

Страница 12: ...transmitted via serial communications therefore represents 150 x 0 1 15 0 The data type indicates the number of bits needed to transmit the number via serial communications 8 or 16 bit data occupy on...

Страница 13: ...Drive a Ramp to Stop Command Setting the Control Word Coils Modbus Function 0FHEX Force Multiple Coils Example 5 Give the Drive a Coast to Stop Command Setting the Control Word Coils Modbus Function 0...

Страница 14: ...age from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low Byte Count 01 0F 00 00 00 20 0...

Страница 15: ...Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low 01 0F 00 10 00 10 Byte 6 Byte 7 CRC Error Check 55 C2 Example 2 Byte 0 Byte 1 By...

Страница 16: ...ion 01HEX Read Coil Status Overview Read the value of coils 3310 through 6410 Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Coil Addr High Co...

Страница 17: ...uency Range Running 01 01 04 07 0F FF 1F CA 9E Output Frequency for Open Loop operation 4000HEX 100 so 1FFFHEX 50 If Parameter 204 MIN REFERENCE 10 Hz and Parameter 205 MAX REFERENCE 60 Hz then the ou...

Страница 18: ...m Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Coil Addr High Coil Addr Low No of Coils High No of Coils Low Byte Count 01 0F 00 00 00 10 02 Byte...

Страница 19: ...p command Refer to the description of the Control Word Other Control Words could also give a coast stop command depending on the other functions desired Message sent from the Modbus RTU Master to the...

Страница 20: ...umber 65 Then make the parameter change Afterwards to keep future parameter changes from being permanent write the value 0 to coil number65 Modbus RTU Function 05HEX Force Single Coil Overview Force c...

Страница 21: ...only a single register needs to be accessed Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low Preset Data Hi...

Страница 22: ...o convert 6010 to 3CHEX Message from Modbus RTU Master to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low Preset Data High Preset Data Low 0...

Страница 23: ...ion Start Register Addr High Start Register Addr Low No of Registers High No of Registers Low No of Bytes 01 10 04 19 00 02 04 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Register 1 Data High Registe...

Страница 24: ...ter to Drive Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register Addr Low No of Registers High No of Registers Low 01 03 14 13 00 02 Byte 6 Byte 7 CRC Error Ch...

Страница 25: ...ng 01 06 00 08 00 04 09 CB Register Address Register Number 1 9 1 8 01 06 00 08 00 04 09 CB Index Number 4 Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Slave Address Function Register Addr High Register...

Страница 26: ...er 1 Message returned from Drive to Modbus RTU Master Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 7 Byte 8 Slave Address Function Byte Count Data High Data Low CRC Error Check 01 03 02 00 3C B8 55 Modbus...

Страница 27: ...ave Address Function Start Register Addr High Start Register Addr Low No of Registers High No of Registers Low No of Bytes 01 10 14 DB 00 03 06 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Register 1...

Страница 28: ...Address Parameter Number x 10 1 621910 184BHEX Message returned from Drive to Modbus RTU Master Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Slave Address Function Byte Count Data High Register 6...

Страница 29: ...a field of the response message This tells the master what kind of error occurred or the reason for the exception The tables below identify the codes and describe their meaning Modbus Code hexadecimal...

Страница 30: ......

Страница 31: ...s product and product data improvement and reserves the right to change design and specifications without notice Literature Order Number TR1 SVX02A EN File Number SL VEN TR1 000 SVX02A EN 0604 Superse...

Отзывы: