6 - 157
6 POSITIONING CONTROL
2) Motion SFC program which outputs M-code of each point for constant-
speed control to PY20 to PY2F by BCD code is shown below.
FIN signal wai
t
M2419*M2439
END
#0=BCD(D13)
DOUT Y20,#0
SET M3219
P0
P0
RST M3219
!M2419*!M2439*M2403*M2423
D13==K12
Turn on FIN signal.
Output Axis 1 M-code.
Turn on Axis 1, Axis 2 M-code outputting signal.
Turn off Axis 1, Axis 2 M-code outputting signal and
turn on Axis 1, Axis 2 command in-position signal.
Turn off FIN signal.
FIN signal wait
(Note): Details of #0 is used as control.
Repeat until M-code value become 12.
[G10]
[G20]
[F10]
[F20]
[G30]