13
Standard
Modbus
Functions
The drive’s Modbus RTU interface supports the following standard Modbus RTU functions.
01
HEX
Read Coil Status
03
HEX
Read Holding Registers
(Example 3)
(Example 10 & 11)
05
HEX
Force Single Coil
06
HEX
Preset Single Register
(Example 6)
(Example 7, 8 & 11)
0F
HEX
Force Multiple Coils
10
HEX
Preset Multiple Registers
(Examples 1, 2, 4 & 5)
(Example 9 & 12)
The examples on the following pages demonstrate how to use these functions to control and
monitor drive operation. All communication examples assume that the drive’s Modbus RTU
address is 1.
Example 1
Start the Drive and Give It a Reference via Modbus RTU
Setting the Control Word and Serial Reference Coils
Modbus Function 0F
HEX
– Force Multiple Coils
Example 2Give the Drive a Reference via Modbus RTU
Setting the Control Word and Serial Reference Coils
Modbus Function 0F
HEX
– Force Multiple Coils
Example 3
Read Basic Drive Status Information
Reading the Status Word and Output Frequency/Feedback Coils
Modbus Function 01
HEX
– Read Coil Status
Example 4
Give the Drive a Ramp to Stop Command
Setting the Control Word Coils
Modbus Function 0F
HEX
– Force Multiple Coils
Example 5
Give the Drive a Coast to Stop Command
Setting the Control Word Coils
Modbus Function 0F
HEX
– Force Multiple Coils
Example 6
Set How the Drive Stores Parameter Values
Setting Coil 65
Modbus Function 05
HEX
– Force Single Coil
Example 7
Write a Parameter Value from a List of Choices
Writing a single register
Modbus Function 06
HEX
– Preset Single Register
Example 8
Write a 16 Bit Parameter
Writing a single register
Modbus Function 06
HEX
– Preset Single Register
Example 9
Write a 32 Bit Parameter
Writing two registers
Modbus Function 10
HEX
– Preset Multiple Registers
Example 10
Read a 32 Bit Parameter
Reading two registers
Modbus Function 03
HEX
– Read Holding Registers
Example 11
Read an Indexed Parameter and Read an 8 Bit Parameter
Setting the value of register 1 and reading a single register
Modbus Function 06
HEX
– Preset Single Register
Modbus Function 03
HEX
– Read Holding Registers
Example 12Write a Text String
Writing multiple registers
Modbus Function 10
HEX
– Preset Multiple Registers
Example 13
Read a Text String
Reading multiple registers
Modbus Function 03
HEX
– Read Holding Registers
Communica-
tion
Examples
Содержание Mobrus RTU TR1 Series
Страница 30: ......