25
Read an Indexed Parameter and Read an 8 Bit Parameter
(Read the value of Parameter 615, Index 4, Fault Log: Error Code)
From the tables in the back of the drive instruction manual:
Data Type = 5
è
Unsigned 8 bit number
Conversion Index = 0
è
Conversion Factor = 0.01 (no conversion needed)
This is a 2-step process.
•
First select the index value to use.
•
Next, read the value of the parameter.
Example 11
Step 1
Modbus RTU Function: 06
HEX
(Preset Single Register)
Overview:
Set register 9
10
to 4, the index value.
Message from Modbus RTU Master to Drive
Modbus RTU message string:
[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 Addr.
Low
Preset Data
High
Preset Data
Low
01 06 00 08 00 04
Byte 6
Byte 7
CRC Error Check
09 CB
Step 2
Modbus RTU Function: 03
HEX
(Read Holding Registers)
Overview:
•
Read Register 6150
10
Because the value is an 8 bit number, only one register needs to be read.
No conversion factor will be needed.
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
No. of
Registers
High
No. of
Registers
Low
01 03 18 05 00 01
Byte 6
Byte 7
CRC Error Check
92 AB
{
{
CONTINUED ON NEXT PAGE
Содержание Mobrus RTU TR1 Series
Страница 30: ......