Request Data - Panasonic LP-GS Series Serial Communication Command Manual

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

Advertisement

⿎ How to calculate the check sum
Convert the data from the start code to those before the check sum into the hexadecimal values according to the ASCII
code table and add them all together.
When the character code other than ASCII code is used in the data, convert them into the hexadecimal values according to
the each character code table.
Check sum is the value calculated by converting the lower one-byte of the total value into two characters in the ASCII code.
Calculation example
• Calculating the check sum of the following setting request data
Start code
Command
STX
"LSC"
02
4C 53 43
• Convert the start code to the end of data into hexadecimal values and add them all together. Include the start code and
the one-byte comma "," used as a separator for the addition.
02 + 4C + 53 + 43 + 53 + 35 + 30 + 2E + 35 + 2C + 31 + 30 + 30 + 30 = 2EC (HEX)
• "EC", which is the lower one-byte (lower two-digit) characters of 2EC (HEX), is converted to 45 43 (HEX) in the two-
character ASCII code.

2-3-2 Request data

Request data in the following format will be transmitted when you control the laser marker from the external device.
⿎ Setting request data format
Request data to modify or create the laser marker data or to control the laser marker operations.
The sub command is "S".
Start code
Command
1-byte
3-byte
or N/A
⿎ Readout request data format
Request data to read out the status or setting data of the laser marker.
The sub command is "R".
Start code
Command
1-byte
3-byte
or N/A
Content of variable-length data/fixed-length data part
The content to specify varies depending on the command.
Use ASCII code to input the numeric values or character strings.
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.
If the data consist of more than one item, each item is separated by ",": 2C (HEX).
Some items can be omitted for some commands.
Reference
• For details on how to input variable-length data or fixed-length data, refer to "2-3-5 Character input method" (P.37) and
"2-3-6 Character data input method" (P.38).
• For details on omitting data items, refer to "2-3-4 Omitting request data" (P.36).
32
Sub command
"S"
53
Sub command
Variable-length data or fixed-length
"S"
1-byte
The maximum data length is
defined per command
Sub command
Variable-length data or fixed-length
"R"
1-byte
The maximum data length is
defined per command
ME-LPGS-SR-5
Data example:
[Laser power], [Scan speed]
"50.5,1000"
35 30 2E 35 2C 31 30 30 30
data
data
Check
End code
sum
CR
45 43
0D (HEX)
Check sum
End code
2-byte
1-byte
or N/A
or 2-byte
Check sum
End code
2-byte
1-byte
or N/A
or 2-byte

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents