Modbus Agile
61
02/2011
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.
9.3
ASCII-Table (0x00 – 0x7F)
Dec.
Hex.
Char.
Dec.
Hex.
Char.
Dec.
Hex. Char.
0
00
NUL
43
2B
+
86
56
V
1
01
44
2C
,
87
57
W
2
02
STX
45
2D
-
88
58
X
3
03
ETX
46
2E
.
89
59
Y
4
04
EOT
47
2F
/
90
5A
Z
5
05
ENQ
48
30
0
91
5B
[
6
06
ACK
49
31
1
92
5C
\
7
07
BEL
50
32
2
93
5D
]
8
08
BS
51
33
3
94
5E
^
9
09
TAB
52
34
4
95
5F
_
10
0A
LF
53
35
5
96
60
`
11
0B
VT
54
36
6
97
61
a
12
0C
FF
55
37
7
98
62
b
13
0D
CR
56
38
8
99
63
c
14
0E
57
39
9
100
64
d
15
0F
58
3A
:
101
65
e
16
10
59
3B
;
102
66
f
17
11
60
3C
<
103
67
g
18
12
61
3D
=
104
68
h
19
13
62
3E
>
105
69
i
20
14
63
3F
?
106
6A
j
21
15
NAK
64
40
@
107
6B
k
22
16
65
41
A
108
6C
l
23
17
66
42
B
109
6D
m
24
18
67
43
C
110
6E
n
25
19
68
44
D
111
6F
o
26
1A
69
45
E
112
70
p
27
1B
ESC
70
46
F
113
71
q
28
1C
71
47
G
114
72
r
29
1D
72
48
H
115
73
s
20
1E
73
49
I
116
74
t
31
1F
74
4A
J
117
75
u
32
20
SPACE
75
4B
K
118
76
v
33
21
!
76
4C
L
119
77
w
34
22
„
77
4D
M
120
78
x
35
23
#
78
4E
N
121
79
y
36
24
$
79
4F
O
122
7A
z
37
25
%
80
50
P
123
7B
{
38
26
&
81
51
Q
124
7C
|
39
27
'
82
52
R
125
7D
}
40
28
(
83
53
S
126
7E
~
41
29
)
84
54
T
127
7F
DEL
42
2A
*
85
55
U
Values used often are highlighted in grey.
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: ......