Communication Data Format; Basic Data Format - Panasonic LP-GS Series Serial Communication Command Manual

Laser marker
Hide thumbs Also See for LP-GS Series:
Table of Contents

Advertisement

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 the other specified character code, Shift JIS code or GB
2312 code, selected in the system settings of Laser Marker NAVI smart software.
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
Start code
Command
1-byte
3-byte
or N/A
Item
Description
Start code
A start code is a code to identify the data head.
You can enable or disable the start code. The start code is enabled in the initial settings.
When the start code is enabled, the code is [STX]: 02 (HEX) fixed.
Command
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.48).
You can enable or disable the response data command. It is enabled in the initial settings. When
the response data command is enabled, the same command as the request data will be added to
the response data.
Sub command
One-byte alphabetic character or arbitrary one-byte character representing the communication
data type.
The sub command of the request data is (fixed to) the following alphabetic characters:
• Setting request code: "S"
• Readout request code: "R"
You can set an arbitrary one-byte character for the sub command of the response data. The sub
command is set to the following alphabetic characters in the initial settings:
• Positive response code: "A"
• Read request response code: "A"
• Negative response code: "E"
Check sum
Check sum is the value to detect an error during data communication.
(RS-232C only)
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).
Reference
• Set the data format on the "system settings" screen of Laser Marker NAVI smart. Refer to "1-1-3 Settings before external
control" (P.15).
• No separator is placed before or after the start code, command, sub command, check sum, or end code. Enter it right
after the precedent data.
• When using the external device set by 2-byte, [NUL]: 00(HEX) can be used. Add [NUL] before the start code (before the
command if there is no start code) or after the end code.
Data defined per data and
Sub command
command type
1-byte
ME-LPGS-SR-5
End
Check sum
End code
2-byte
1-byte
or N/A
or 2-byte
31

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents