68
3-5 Communication Data Format
Use the ASCII code basically and the shift-JIS code partially as characters for communication when controlling the laser
marker by external device.
The characters (or character strings) enclosed with double quotation marks (“ ”) in the description below indicates that
they uses the ASCII code.
When using the shift-JIS code, it is described in each case.
3-5-1 Command data
The word “command” means the instruction which is sent to the laser marker from external device. Command data is
created with the specified format. Remote control of laser marker or execution of specified procedures are possible by
sending the command data to laser marker.
⿎
Command data format
Start code
Single character
Command
Three characters
Sub command
Single character
Data
Variable length
Check sum
Two characters
Delimiter
Two characters/
single character
Head
End
Code
Description
Start code
A start code is a code to identify the data head. STX (code: 02(HEX)) fixed.
Command
A command is specified with three characters. Refer to “3-6 Communication Command List”
Sub command
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
Data specified per command
The content to be specified varies per command. Refer to “3-7 Command Description” (P.78).
Check sum *1
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.
When the command is “ABC”, sub command is “S” and data is “000”:
02(HEX)+41(HEX)+42(HEX)+43(HEX)+53(HEX)+30(HEX)+30(HEX)+30(HEX)=1AB(HEX)
AB(HEX), the lower 1-byte of 1AB(HEX) is converted to 41(HEX)+42(HEX) to two
characters by ASCII code.
ON/OFF of check sum can be selected on the environment setting of laser marker.
Refer to the Operation/Maintenance Manual for the details.
Delimiter *2
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 the Operation/Maintenance Manual for the
details.
*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.
Reference
•
The laser marker recognizes the data from the start code (STX) to the delimiter (CR or CR+LF) as one command data.
If there exists an unnecessary character string before the start code or after the delimiter, it is ignored (neither an
abnormal response data is returned).
•
When using the external device set by 2-byte, NUL(00 (HEX)) can be used.
•
Add to NUL before STX or after delimiter.
ME-LP400V-EX-6
Содержание LP-400 Series
Страница 12: ...1 Before External Control ME LP400V EX 6...
Страница 24: ...2 Control by I O ME LP400V EX 6...
Страница 56: ...3 Control by Serial Communication RS 232 Ethernet ME LP400V EX 6...
Страница 141: ...Troubleshooting ME LP400V EX 6...
Страница 158: ...Character Code Table ME LP400V EX 6...
Страница 166: ...166 Shift JIS JIS 0 1 2 3 4 5 6 7 8 9 A B C D E F 983F 4F20 984F 4F30 985F 4F40 986F 4F50 ME LP400V EX 6...
Страница 176: ...Index ME LP400V EX 6...
Страница 179: ...No 9000 0062 17V...
Страница 180: ...Panasonic Industrial Devices SUNX Co Ltd 2003 2018 July 2018 9000 0062 17V...