![Mitsubishi Electric A171SHCPUN Programming Manual Download Page 296](http://html.mh-extra.com/html/mitsubishi-electric/a171shcpun/a171shcpun_programming-manual_238566296.webp)
7. POSITIONING CONTROL
7
−
144
[Program Example]
This program carries out zeroing using servo program No. 0, under the conditions
below.
(1) System configuration
Zeroing of Axis 4.
A172SHCPUN
Axis 1
Zeroing command (X000)
A172B
M
M
M
M
A172S
ENC
A1S
X10
Axis 2
Axis 3
Axis 4
MR-[]-B
MR-[]-B
MR-[]-B
MR-[]-B
(2) Servo program example
Servo program No. 0 for zeroing is shown below.
Zeroing
Axis
used
Axis
4
<K 0 >
ZERO
Axis
4
(3) Sequence program example
The sequence program which runs the servo program is shown below.
Turns ON all axes servo start
command.
CIRCUIT END
Turns ON PLC ready.
Servo program No. 0 execution
request.
Turns ON servo program No. 0
start command flag (M1) when
X000 turns ON.
Turns OFF M1 on completion of
servo program No. 0 execution
request.
M9039
M9074
X0000
M9074
M0
M9074 M2009 M9076
M1
M2004
M2000
M2042
PLS
SET
J4
RST
M0
M1
0
K
M1
SVST
0
2
4
11
13
M1682
Downloaded from