
7. POSITIONING CONTROL
7
−
136
[Program Example]
This program executes manual pulse generator operation under the conditions
below.
(1) System configuration
Manual pulse generator operation of Axis 1.
Manual pulse
generator
A172SHCPUN
Axis 1
•
Manual pulse generator operation enable (X000)
•
Manual pulse generator operation complete (X001)
A172B
M
M
M
M
A172S
ENC
A1S
X10
Axis 2
Axis 3
Axis 4
MR-[]-B
MR-[]-B
MR-[]-B
MR-[]-B
(2) Manual pulse generator operation conditions
(a) Manual pulse generator operation axis.............. Axis 1
(b) Manual pulse generator 1-pulse input ............... 100
magnification
(c) Manual pulse generator operation enable ......... leading edge of X000
(OFF
→
ON)
(d) Manual pulse generator operation complete ..... leading edge of X001
(OFF
→
ON)
(3) Sequence program
A sequence program for manual pulse generator operation is shown below.
Turns ON all axes servo start
command.
CIRCUIT END
Turns ON PLC ready.
Sets axis (Axis 1) for manual
pulse generator operation.
Detects leading edge of
X000 (OFF
→
ON).
Axis 1 manual pulse generator
1-pulse input magnification
M9039
M9074
X0000
M9074
M9074 M2009 M9076
M140
M2001
M2000
M2042
PLS
1
M140
D1012
K
MOV
0
2
4
11
100
SET
D1016
K
M2012
MOV
X0001
PLS
M141
25
M141
RST
M2012
29
Turns ON manual pulse
generator enable flag.
Turns OFF manual pulse
generator enable flag when
X001 turns ON.
Downloaded from