Modbus Agile
53
02/2011
Modbus Message Examples
9.1.3
Function Code 8, Diagnostics
Example 1a:
Clearing all Diagnostic Counters (Sub-function 0x0A) in the frequency inverter with address 1.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
Sub-function
Data
CRC
Hex
01
08
00
0A
00
00
C0
09
Response: Frequency Inverter
Master
Field:
Addr.
Func.
Sub-function
Data
CRC
Hex
01
08
00
0A
00
00
C0
09
The response is an echo of the request. All counters are now set to zero.
Example 1b:
With all counters set to zero, read Diagnostic Counter 4, "Slave Message Count" (Sub-function 0x0E)
from the frequency inverter with address 1.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
Sub-function
Data
CRC
Hex
01
08
00
0E
00
00
81
C8
Response: Frequency Inverter
Master
Field:
Addr.
Func.
Sub-function
Data
CRC
Hex
01
08
00
0E
00
01
40
08
The counter value is 1(as this is the 1st message received after setting all counters to zero).
Example 2:
Reading unknown Diagnostic Counter 8 (Sub-function 0x13) from frequency inverter with address 1.
Request: Master
Frequency Inverter
Field:
Addr.
Funk.
Sub-function
Data
CRC
Hex
01
08
00
13
00
00
11
CE
Error Response: Frequency Inverter
Master
Field:
Addr.
Func. Except.
CRC
Hex
01
88
01
87
C0
The exception code sent is hexadecimal value 0x01 = ILLEGAL FUNCTION.
9.2
Modbus ASCII-Message Examples
9.2.1
16 Bit access
9.2.1.1
Function Code 3, Read 16-Bit Parameter
Example 1:
Reading parameter
Rated Speed
372 (0x0174) in data set 2 from the frequency inverter with address
1.
Request: Master
Frequency Inverter
Field: SoF Addr. Fct.Code
DSet/Par-No.
No. of Regs
LRC
EoF
ASC
:
0 1 0
3
2
1
7
4
0
0
0
1
6
6 CR LF
Hex
3A 30 31 30
33
32 31 37 34 30 30 30 31 36 36 0D 0A
Response: Frequency Inverter
Master
Field: SoF Addr. Fct.Code
No. of
Bytes
Par-Wert
LRC
EoF
ASC
:
0 1 0
3
0
2
0 5 6 E
8
7 CR LF
Hex
3A 30 31 30
33
30
32
30 35 36 45 38 37 0D 0A
The hexadecimal value sent is 0x056E = 1390. Parameter
Rated Speed
372 has no decimal places.
Therefore, the rated speed is 1390 min
-1
.
Example 2:
Reading parameter
Rated Speed
372 (0x0174) in data set 0 from the frequency inverter with address
1 and No. of Regs field set to 2 (invalid value).
Field: SoF Addr. Fct.Code
DSet/Par-No.
No. of Regs
LRC
EoF
ASC
:
0 1 0
3
0
1
7
4
0 0 0 2
8
5 CR LF
Hex
3A 30 31 30
33
30 31 37 34 30 30 30 32 38 35 0D 0A
Error Response: Frequency Inverter
Master
Field: SoF Addr. Fct.Code Except.
Code
LRC
EoF
ASC
:
0 1 8
3
0
4
7
8 CR LF
Hex
3A 30 31 38
33
30 34 37
38 0D 0A
The sent exception code is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
Содержание Agile
Страница 1: ...Agile Modbus Communication manual Frequency inverter 230V 400V ...
Страница 2: ......
Страница 5: ...Modbus Agile 5 02 2011 13 2 Warning Messages Application 76 13 3 Error Messages 76 INDEX 77 ...
Страница 44: ...Modbus Agile 02 2011 44 Handling of Data Sets Cyclic Writing ...
Страница 69: ...Modbus Agile 69 02 2011 10 2 1 Statemachine diagram ...
Страница 78: ......
Страница 79: ......