Communication
FP
Σ
User's Manual
174
8.5.2 Command
and
Response Format
Command message
All command-related items should be noted in the text segment. The station number must be
specified before sending the command.
0
1
#
R
C
S
R
0
0
0
1
C
R
%
1
Start code
Commands must always have a "%" (ASCII code: 16#25) or a "<" (ASCII code: 16#3C) at the beginning of a
message.
The FP
Σ
supports an expansion start code ("<") to send single frames of up to 2048 characters. Using the
start code "%", a maximum of 118 characters can be sent in one frame.
2
Station number
The station number of the slave to which you want to send the command must be specified.
The range is 01 to 99 (decimal).
In 1:1 communication, the station number "01" (ASCII code: 16#3031) should be specified.
3
Text
The content differs depending on the command. The content should be noted in all upper-case characters,
following the fixed formula for the particular command.
The method for writing text segments in the message varies depending on the type of command.
4
Check code
Hexadecimal block check code (BCC) for error detection using horizontal parity. The BCC should be created
so that it targets all of the text data from the header to the last text character.
The BCC starts from the header and checks each character in sequence, using the exclusive OR operation,
and replaces the final result with character text. It is normally part of the calculation program and is created
automatically.
The parity check can be skipped by entering "* *" (ASCII code: 16#2A2A) instead of the BCC.
5
End code
Messages must always end with a "
C
R
" (ASCII code: 16#0D).
6
Target address
Address of the target area to be read or written (e.g. internal relay R1)
7
Data area
Specification of the number of points to be read or written (S = 1 point)
8
Command name
e.g. RC, read contact area
9
Command code
# (16#23) indicates that this is a command
Содержание AFPG951T34
Страница 7: ......
Страница 17: ......
Страница 18: ...Chapter 1 Safety Measures ...
Страница 21: ......
Страница 22: ...Chapter 2 Overview ...
Страница 32: ...Chapter 3 CPU Types ...
Страница 47: ...CPU Types FPΣ User s Manual 30 LD Body ...
Страница 51: ...CPU Types FPΣ User s Manual 34 POU Header and LD Body ...
Страница 55: ...CPU Types FPΣ User s Manual 38 LD Body ...
Страница 57: ......
Страница 58: ...Chapter 4 Expansion ...
Страница 73: ......
Страница 74: ...Chapter 5 I O Allocation ...
Страница 81: ......
Страница 82: ...Chapter 6 Installation and Wiring ...
Страница 104: ...FPΣ User s Manual 6 4 Input and Output Wiring 87 A FPΣ 1 Output terminal 2 Load 3 Inductor COM 2 1 3 ...
Страница 115: ......
Страница 116: ...Chapter 7 High Speed Counter and Pulse Output ...
Страница 169: ......
Страница 170: ...Chapter 8 Communication ...
Страница 227: ...Communication FPΣ User s Manual 210 LD Body ST Body ...
Страница 233: ...Communication FPΣ User s Manual 216 POU Header LD Body ...
Страница 236: ...FPΣ User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2 ...
Страница 237: ...Communication FPΣ User s Manual 220 2 2 ST Body ...
Страница 266: ...Chapter 9 Security Functions ...
Страница 273: ......
Страница 274: ...Chapter 10 Other Functions ...
Страница 277: ......
Страница 278: ...Chapter 11 Troubleshooting ...
Страница 289: ......
Страница 290: ...Chapter 12 Appendix ...