173
4-2-8 Communication Data Format
In case of controlling the laser marker from the external device, basically the characters to be used for the
communication use the ASCII code, and part of the characters are shift JIS code.
The character enclosed with the quotation “(‘
ʼ
)” expresses the ASCII code.
In case of using the shift JIS code, refer to explanation for details and follow it.
■
Command Data
The command refers to the command to be sent to the laser marker from the external device. With the command
data, it is possible to create command data using the specified format, to operate the laser marker by remote
control, and to perform the specified marking procedures.
Command Data Format
Description of Each Code
Name
Description
Start Code
Code for recognizing the head of the data. Fixed with STX (code: 02
(HEX)
)
Command
Specifies command with 3 characters. (“4-2-10 Communication Command and Function”
(P.180))
Subcommand
Specification of the “Set/Read” to be added to the command subsidiary.
Specify operation with either character below:
‘S
ʼ
••• Setting or operation of data (Set)
‘R
ʼ
••• Reading of setting data (Read)
(Note) There are some commands that disables to be specified with either ‘S’ or ‘R
ʼ
.
Data
Data to be specified for each command.
The content of the specification is differed depending on the command. (“4-2-10 Communication
Command and Function” (P.180))
Check Sum
Data that the lowest 1 byte is expressed with 2 characters of ASCII code by adding the
codes from start code until data in binary
E.g.: Command•••‘ABC’, Subcommand•••‘S
ʼ
, Data•••‘000
ʼ
02
(HEX)
+41
(HEX)
+42
(HEX)
+43
(HEX)
+53
(HEX)
+30
(HEX)
+30
(HEX)
+30
(HEX)
=1AB
(HEX)
When converting the lowest 1 byte AB
(HEX)
of the 1AB
(HEX)
into 2 characters, it
becomes “41
(HEX)
+42
(HEX)
”.
The valid/invalid of the checksum is available to be set in the environmental setting related to
the laser marker of the LP-310 setting software.
Delimiter
Code for recognizing the end of the data
CR+LF ••• 0D
(HEX)
and 0A
(HEX)
CR •••••••
0D
(HEX)
•
The laser marker deals the data from the start code (STX) to the delimiter (CR or CR+LF) as
the command data. In case of existing the unnecessary data before start code or after
delimiter, that character is ignored (it just is ignored, not sent back the abnormal response
data).
Start Code
1 Character
Command
3 characters
Subcommand
1 character
Data
Variable length
Check sum
2 characters
Delimiter
2 char./1 char.
Top
←
→
End
CHECK
Summary of Contents for LP-310
Page 5: ...5 MEMO ...
Page 21: ...21 MEMO ...
Page 26: ...26 MEMO ...
Page 30: ...30 MEMO ...
Page 33: ...33 MEMO ...
Page 87: ...87 MEMO ...
Page 125: ...125 MEMO ...
Page 137: ...137 MEMO ...
Page 149: ...149 MEMO ...
Page 155: ...155 4 External Control 4 1 Control Through I O Connector 156 4 2 Control with RS 232C 166 ...
Page 186: ...186 MEMO ...
Page 187: ...187 5 Troubleshooting 5 1 Troubleshooting 188 5 2 Measures for Indicated Error 189 ...
Page 191: ...191 6 Maintenance 6 1 Maintenance 192 ...
Page 193: ...193 7 Specification 7 1 Specification 194 7 2 Outer Dimensional Drawing 195 ...
Page 197: ...197 Appendix Character Code Table 198 Readable DXF File 207 Glossary 209 ...
Page 212: ...212 Index Index 213 ...
Page 215: ...No 9000 0062 20V ...