31
2-3 Communication Data Format
Use the ASCII code basically for the communication data.
For the characters which cannot be indicated with ASCII code, use Shift JIS code.
The characters enclosed with double quotation marks (“ ”) in the description below indicate the ASCII code. The
characters enclosed with [ ] indicate the control codes. For the case that you may use the character code other than
ASCII code, it is described in each case.
2-3-1 Basic data format
⿎
Basic data format
Head
End
Start code
Command
*1
Sub command
*1
Data defined per data and
command type
Check sum
End code
1-byte
3-byte
1-byte
2-byte
or N/A
1-byte
or 2-byte
Item
Description
Start code
A start code is a code to identify the data head.
Depending on the data type, the start code is fixed as follows:
• Setting request code, readout request code, response code for readout: [STX] 02 (HEX)
• Positive response code: [ACK] 06 (HEX)
• Negative response code: [NAK] 15 (HEX)
Command *1
The alphabetical characters consisting of three characters (3-byte) representing the control
contents.
For command types and description, refer to “3-1 Command List” (P.51).
Sub command *1
One-byte alphabetic character representing the communication data type.
The sub command is fixed to the following alphabetic characters:
• Setting request code: “S”
• Readout request code: “R”
• Response code for readout: “A”
Check sum
(RS-232C only)
Check sum is the value to detect an error during data communication.
You can enable or disable the check sum. It is disabled in the initial settings.
Check sum cannot be enabled with Ethernet communication.
End code
End code is a code to identify the end of data.
• To use RS-232C, select either [CR]: 0D (HEX) or [CR][LF]: 0D0A (HEX).
• To user Ethernet, it is fixed to [CR]: 0D (HEX).
*1 : Included only in the setting request data, readout request data and response data for readout.
ンㄆㄇㄆㄓㄆㄏㄆ
• Set the check sum and end code on the “system settings” screen of Laser Marker NAVI smart. Refer to “1-1-3 Settings
before external control” (P.14).
• There is no separating character among the each terms.
• When using the external device set by 2-byte, [NUL]: 00 (HEX) can be used. Add [NUL] before the start code or after the
end code.
ME-LP-GS-SR-COMP-3
Summary of Contents for LP-GS Series
Page 11: ...1 Preparation of Command Control ME LP GS SR COMP 3...
Page 26: ...2 Communication Control Basics ME LP GS SR COMP 3...
Page 50: ...3 Data Format for Each Command ME LP GS SR COMP 3...
Page 136: ...136 MEMO ME LP GS SR COMP 3...
Page 137: ...Troubleshooting ME LP GS SR COMP 3...
Page 163: ...Character Code Table ME LP GS SR COMP 3...
Page 176: ...Index ME LP GS SR COMP 3...
Page 178: ...178 W Warning 154 ME LP GS SR COMP 3...
Page 179: ......
Page 180: ...Panasonic Industrial Devices SUNX Co Ltd 2014 2019 April 2019...