7. POSITIONING CONTROL
7
−
140
[Program Example]
This program executes manual pulse generator operation under the conditions
below.
(1) System configuration
Manual pulse generator operation of Axis 1.
A61P A273UH
CPU
A278
LX
M
M
M
M
A61P AX41
MR- -B MR- -B MR- -B MR- -B
Axis 4
Manual pulse penerator operation enable (X000)
Manual pulse penerator operation complete (X001)
Manual pulse
generator
Axis 3
Axis 2
Axis 1
(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
X000
M9074
M9074 M2049 M9076
M140
M2001
M2000
M2042
PLS
1
M140
D714
K
MOV
0
2
4
11
100
SET
D720
K
M2051
MOV
X001
PLS
M141
25
M141
RST
M2051
29
Turns ON manual pulse
generator enable flag.
Turns OFF manual pulse
generator enable flag when
X001 turns ON.