Readout Data Format - Panasonic LP-M Series Serial Communication Manual

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

Advertisement

■ Readout data format

Start code
Command
Single character
Three characters
Head
Code
Start code
Command
Sub command
Data
Check sum *1
Delimiter *2
*1 : A check sum can be added in case of RS-232C.
*2 : You can select [CR] or [CR+LF] for a delimiter in case of RS-232C. [CR] is fixed in case of Ethernet.
Sub command
Single character
Description
A start code is a code to identify the data head. STX:02 (HEX) fixed.
A command is specified with three characters. Refer to "3 Communication Command and
Function" (P.34)
A sub command is an instruction of setting/readout complementary added to a command.
Specifies one of the characters below.
"S": Data setting or operation (Set)
"R": Readout of setting data (Read)
(Note) "S" or "R" cannot be selected for some commands.
Data specified per command
The content to be specified varies per command. Refer to "3 Communication Command and
Function" (P.34)
Check sum indicates the lower 1-byte of adding result of value (binary) from the start code
to the last data by converting it to two characters by ASCII code.
ex): where the command is "ABC", sub command is "A" and data is "000"
02(HEX)+41(HEX)+42(HEX)+43(HEX)+41(HEX)+30(HEX)+30(HEX)+30(HEX)=199(HEX)
99(HEX), the lower 1-byte of 199(HEX) is converted to 39(HEX)+39(HEX), to two characters
by ASCII code.
ON/OFF of check sum can be selected on the environment setting of laser marker.
Refer to Operation Manual for the details.
Delimiter is a code to identify the end of data.
CR+LF (0D(HEX) 0A(HEX)) or CR(0D(HEX)).
Selects CR+LF or CR on the console. Refer to Operation Manual for the details.
ME-LPMSZ-SR-9
Data
Check sum
Variable length
Two characters
Delimiter
Two characters/
Single character
End
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents