4. Commands
157
ML-5120A
Chapter 5 Laser Processing by External Communication Control (RS-485 CONTROL)
Introduction Part Operating Part Maintenance Part Appendixes
Installation and
Preparation Part
4. Commands
This section explains the commands that are used to control laser processing
by external communication.
Code Table
The codes for external communication with a personal computer and the text struc-
ture are as follows. For details, refer to "Setting Data" on page 159 to "Reading the
Equipment Name" on page 176.
Control Codes (Hexadecimal Codes)
ACK: 06H NAK: 15H STX: 02H ETX: 03H
BCC (block check code) ... 1-byte horizontal even parity up to ETX excluding STX
Code
Contents Text structure
W Setting data
PC to laser
STX
CH1
CH0
W
LA1
LA0
SH3
SH2
SH1
SH0
DT1
DT0
: data
ETX
BCC
Laser to PC
CH1
CH0
ACK
Or
CH1
CH0
NAK
Write data is out of the
setting range or external
communication control is not
performed.
R Reading data
PC to laser
STX
CH1
CH0
R
LA1
LA0
SH3
SH2
SH1
SH0
DT1
DT0
ETX
BCC
Laser to PC
STX
data
ETX
BCC
Or
CH1
CH0
NAK
The schedule No. or
data No. is out of the
range.
WS
Setting the
control method,
SCHEDULE
No., safety
shutter, etc.
PC to laser
STX
CH1
CH0
W
S
SH3
SH2
SH1
SH0
cnt
s
1
s
2
…
s
9
mon
ETX
BCC
Laser to PC
CH1
CH0
ACK
Or
CH1
CH0
NAK
The specied status cannot
be provided or external
communication control is not
performed.
WD
Setting the
system date
and time
PC to laser
STX
CH1
CH0
W
D
Y
3
Y
0
MO1
MO0
D
1
D
0
H
1
H
0
MI1
MI0
ETX
BCC
Laser to PC
CH1
CH0
ACK
Or
CH1
CH0
NAK
The specied status cannot
be provided or external
communication control is not
performed.
RS
Reading the
control method,
SCHEDULE
No., safety
shutter, etc.
PC to laser
STX
CH1
CH0
R
S
ETX
BCC
Laser to PC
STX
CH1
CH0
SH3
SH2
SH1
SH0
cnt
s
1
s
2
s
3
…
s
9
mon
rdy
ETX
BCC
RD
Reading the
system date
and time
PC to laser
STX
CH1
CH0
R
D
ETX
BCC
Laser to PC
STX
Y
3
Y
2
Y
1
Y
0
MO1
MO0
D
1
D
0
H
1
H
0
MI1
MI0
ETX
BCC
$0
Laser start
command
PC to laser
STX
CH1
CH0
$
0
ETX
BCC
Laser to PC
CH1
CH0
ACK
Or
CH1
CH0
NAK
The LD is OFF, trouble
occurs, or external
communication control is not
performed.
…