FP
Σ
8.1 Computer Link
8 - 5
8.1.3
Format of Command and Response
Command message
Items necessary for commands should be noted in the text segment, and the unit
number specified before sending the command.
%
or
<
0
1
#
R C S R 0
0
0
1
C
R
1
Start code
2
Unit No. of destination
(01 to 32, Decimal)
3
Text
(Content is specified based on type of
command)
4
Check code
(BCC, Hexadecimal)
5
End code
(Two-
digit)
Target that reads the value
(internal relay R1)
Specified item
(specifies that only 1 point should be read)
Command name
(e.g. Read contact area)
Command code
(Indicates that this is a command)
(One-
digit)
Figure 142: FP
Σ
Command message (format)
1
Start code (Header)
Commands must always have a “%” (ASCII code: H25) or a “<” (ASCII code: H3C) at the
beginning of a message.
2
Unit No.
The unit number of the PLC to which you want to send the command should be specified.
When using 1:1 communication, “01” 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 that particular command.
%
0
1
#
R C
S X 0
0
0
1
C
R
1 D
Specification and
data to be written
Command name
Command code [#]
(ASCII code: H23)
Figure 143: FP
Σ
Command message (text)
4
Check code
This is the BCC (block check code) used to detect errors using horizontal parity. It should be
created so that it targets all of the text data from the start code to the last text character.
The BCC starts from the start code 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: H2A2A) instead of the BCC.
5
End code (Terminator)
Messages must always end with a “
C
R
” (ASCII code: H0D).
next page
Содержание FP Series
Страница 15: ...FP Functions and Restrictions of the Unit 1 2...
Страница 25: ...FP Specifications and Functions of Control Unit 2 2...
Страница 37: ...FP Expansion 3 2...
Страница 44: ...Chapter 4 I O Allocation 4 1 I O Allocation 4 3...
Страница 45: ...FP I O Allocation 4 2...
Страница 51: ...FP Installation and Wiring 5 2...
Страница 77: ...FP High speed Counter and Pulse Output Functions 6 2...
Страница 133: ...FP High speed Counter and Pulse Output Functions 6 58...
Страница 135: ...FP Communication Cassette 7 2...
Страница 147: ...FP Communication Function 1 Computer Link 8 2...
Страница 169: ...FP Communication Function 2 General purpose Serial Communication 9 2...
Страница 205: ...FP Communication Function 2 General purpose Serial Communication 9 38...
Страница 207: ...FP Communication Function 3 PLC Link Function 10 2...
Страница 232: ...Chapter 11 Other Functions 11 1 Analog Potentiometer 11 3 11 2 Clock Calendar Function 11 4...
Страница 233: ...FP Other Functions 11 2...
Страница 238: ...Chapter 12 Self Diagnostic and Troubleshooting 12 1 Self Diagnostic Function 12 3 12 2 Troubleshooting 12 5...
Страница 239: ...FP Self Diagnostic and Troubleshooting 12 2...
Страница 249: ...FP Self Diagnostic and Troubleshooting 12 12...
Страница 251: ...FP Specifications 13 2...
Страница 323: ...Index FP I 4...
Страница 325: ...FP Record of changes R 2...