13 - 93
Chapter 13 Control Sub Functions
[3] Program examples
[QD77MS4 program example]
Pre-reading start program (when positioning start signal Y10 is used)
<Pre-reading start command pulse>
<Sets 1 to positioning start No.>
<Turns ON execution prohibition flag>
<Turns ON positioning start signal>
<Turns OFF execution prohibition fla
g
>
<Turns OFF positioning start signal>
M100PLS
0
9
20
X4B
23
31
Y10
X4C
M100
Y10
X10
X10
DX0C
X8
Y14SET
Y10SET
Y14RST
Y10RST
END
H0TOP K1500 K1 K1
Use the direct access input as BUSY
signal to use this program example.
Pre-reading start program (when dedicated instruction ZP.PSTRT1 is used)
<Turns ON execution prohibition flag>
<Sets 1 to positioning start No.>
<Executes positioning start>
<Turns OFF execution prohibition fla
g
>
<Normal termination of positioning>
<Sets error code>
<Abnormal termination of positioning>
0
END
X4B
X4C
M100
M100
M101
20
23
37
Y14SET
D102K1
Y14RST
MOVP
ZP.PSTRT1 "U0" D100 M100
D300K1MOV
D200D100MOV
D300K0MOV