Modbus Agile
02/2011
60
Modbus Message Examples
9.2.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: SoF
Addr.
Fct.Code
Sub-function
Data
LRC
EoF
ASC
:
0
1
0
8
0
0
0
A 0 0 0 0 E D CR LF
Hex
3A
30 31
30
38 30 30 30 41 30 30 30 30 45 44 0D 0A
Response: Frequency Inverter
Master
Field: SoF
Addr.
Fct.Code
DSet/ Para-No.
No. of Regs
LRC
EoF
ASC
:
0
1
0
8
0
0
0
A 0 0 0 0 E D CR LF
Hex
3A
30 31 30
38
30 30 30 41 30 30 30 30 45 44 0D 0A
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.
Field: SoF
Addr.
Fct.Code
Sub-function
Data
LRC
EoF
ASC
:
0
1
0
8
0
0
0
E 0 0 0 0 E
9 CR LF
Hex
3A
30 31 30
38
30 30 30 45 30 30 30 30 45 39 0D 0A
Response: Frequency Inverter
Master
Field: SoF
Addr.
Fct.Code
Sub-function
Data
LRC
EoF
ASC
:
0
1
0
8
0
0
0
E 0 0 0 1 E
8 CR LF
Hex
3A
30 31
30
38
30 30 30 45 30 30 30 31 45 38 0D 0A
Example 2:
Read unknown Diagnostic Counter 8 (Sub-function 0x13) from frequency inverter with address 1.
Response: Master
Frequency Inverter
Field: SoF
Addr.
Fct.Code
Sub-function
Data
LRC
EoF
ASC
:
0
1
0
8
0
0
1
3 0 0 0 0 E
4 CR LF
Hex
3A
30 31 30
38
30 30 31 33 30 30 30 30 45 34 0D 0A
Error Response: Frequency Inverter
Master
Field: SoF
Addr.
Fct.Code Except.
Code
LRC
EoF
ASC
:
0
1
8
8
0
1
7
6 CR LF
Hex
3A
30 31
38
38
30 31 37 36 0D 0A
The exception code sent is hexadecimal value 0x01 = ILLEGAL FUNCTION.
Summary of Contents for Agile
Page 1: ...Agile Modbus Communication manual Frequency inverter 230V 400V ...
Page 2: ......
Page 5: ...Modbus Agile 5 02 2011 13 2 Warning Messages Application 76 13 3 Error Messages 76 INDEX 77 ...
Page 44: ...Modbus Agile 02 2011 44 Handling of Data Sets Cyclic Writing ...
Page 69: ...Modbus Agile 69 02 2011 10 2 1 Statemachine diagram ...
Page 78: ......
Page 79: ......