14
Start the Drive and Give It a 40% Reference via Modbus RTU
While this example shows both starting the drive and giving it a reference via Modbus RTU, it is
possible to simply give it a start command. To do this, force only coils 1 through 16.
Modbus RTU Function: 0F
HEX
(Force Multiple Coils)
Overview:
•
Force coils 1
10
through 16
10
to 047C
HEX
.
This is a run command. Refer to the description of the Control Word. Other Control
Words could also give a run command, depending on the other functions desired.
•
Force coils 17
10
through 32
10
to 1999
HEX
.
Because a value of 4000
HEX
represents a 100% reference, the value for a 40%
reference is 1999
HEX
.
Message 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 04
Byte 7
Byte 8
Byte 9
Byte 10
Byte 11
Byte 12
Force Coils
Addr. 0-7
Force Coils
Addr. 8-15
Force Coils
Addr. 16-23
Force Coils
Addr, 24-31
CRC Error Check
7C 04 99 19 37 43
Modbus RTU message string:
[01] [0F] [00] [00] [00] [20] [04] [7C] [04] [99] [19] [37] [43]
Run Command: 0000 0100 0111 1100 = 047C
HEX
(See the Control Word Coil Description)
[01] [0F] [00] [00] [00] [20] [04] [7C] [04] [99] [19] [37] [43]
Commanded Reference: 40% of 4000
HEX
= 1999
HEX
Message returned from Drive to Modbus RTU Master
Byte 0
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 00 00 20
Byte 6
Byte 7
CRC Error Check
54 13
Example 1
{
{
Содержание Mobrus RTU TR1 Series
Страница 30: ......