
Chapter 5 External Communication Control
5-7
5
■ Command Classification
● Communication data format
The figure below shows the basic format of request communication data and
response communication data.
The specifications of respective sections are explained in the table below.
For ASCII and alphabetical characters, only capital characters can be used.
Section
Description
Header
This section indicates the type of communication data.
: Request communication data
: Normal response communication data
: Abnormal response communication data
Command
This section specifies the command. 3-character command is
specified to instruct operation to HL-C2.
: Read request (response) communication data
: Data setting request (response)
Refer to
“5-3 Command List”
for types of commands.
Code
This section indicates the identification code. It specifies the
function classification and sensor head for the command.
: System
: Head B
: OUT2
: Head A
: OUT1
: Common
The selectable code varies depending on the command.
Refer to
“HL-C2 Series USER’S MANUAL RS-232C
Communication Control”
for the details.
Data
This section is used only to read buffering data.
Subdata
This section stores setting values and measurement values.
This section is omitted in read request communication data
command (
) and write command (
).
BCC
This is the block check code.
The exclusive OR is executed from the header to final
characters of communication data and 8-bit data is converted
to 2-character ASCII code.
BCC can be omitted at transmission by storing
(
2AH
,
2AH
)
.
In this case, the BCC in the response data is
(
2AH
,
2AH
)
, too.
Delimiter
This code is used to identify the end of communication data
(delimiter).
It is fixed to
(
0DH
)
.
*
*
*
*
CR
W
*
*
R
*
*
% E E #
5
4
3
2
1
W
*
*
R
*
*
% E E !
% E E $
0
Head
←
→
End
Header
4characters
Command
3 characters
Code
1 character
CR
…
Data
variable length
…
Subdata
variable length
BCC
2 characters
Delimiter
1 character
Содержание HL-C2 Series
Страница 32: ...Preface 30 MEMO ...
Страница 50: ...Chapter 1 Prior to Use 1 18 1 MEMO ...
Страница 65: ...Chapter 3 Programmable Display Operation 3 5 3 MEMO ...
Страница 164: ...Chapter 4 Explanation of Functions 4 90 4 MEMO ...
Страница 191: ...6 1 6 6 Maintenance and Inspection 6 1 Maintenance 6 2 6 2 Inspection 6 2 ...
Страница 200: ...Chapter 7 Troubleshooting 7 8 7 MEMO ...
Страница 249: ...Chapter 8 Specifications 8 49 8 8 5 Characteristics Beam Diameter 10mm type Unit mm 30mm type Unit mm ...
Страница 250: ...Chapter 8 Specifications 8 50 8 50mm type Unit mm 85mm type Unit mm ...
Страница 252: ...Chapter 8 Specifications 8 52 8 8mm type Unit mm 15mm type Unit mm ...
Страница 254: ...Chapter 8 Specifications 8 54 8 85mm type HL C208 HL C208 MK Unit mm 110mm type HL C211 HL C211 MK Unit mm ...
Страница 270: ...Chapter 8 Specifications 8 70 8 MEMO ...
Страница 271: ...1 Apx Appendix 1 Index 2 ...
Страница 275: ...Appendix 5 Apx MEMO ...
Страница 277: ......