Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
2 - 6
2 POSITIONING CONTROL BY THE MOTION CPU
[Executing Manual Pulse Generator Operation]
When the positioning control is executed by the manual pulse generator connected to
the Q173PX, manual pulse generator operation must be enabled using the Motion
program.
An overview of manual pulse generator operation is shown below.
Motion CPU control system
Motion program
O100;
SET #M2042;
N10 IF[[ON #M2415] AND [ON #M2435]] GOTO 20;
GOTO 10;
N20 IF[ON #X000] GOTO 30;
GOTO 20;
N30 #D720 = 100;
#D721 = 100;
#D714L = 1;
#D716L = 2;
SET #M2051;
SET #M2052;
N40 IF[OFF #X000] GOTO 50;
GOTO 40;
N50 RST #M2051;
RST #M2052;
M02;
%
Control axis 1 by P1.
Set "axis 1" and "axis 2" 1 pulse
input magnification.
Manual pulse generator operation
by the manual pulse generator
dedicated device
Control axis 2 by P2.
Axis 1 and axis 2 manual pulse
generator enable flag turn on.
Axis 1 and axis 2 manual pulse
generator enable flag turn off.
Program end instruction
Program ends.
Turn off the axis 1 and axis 2 manual pulse generator enable flag for
safety not to continue the manual pulse generator operation at the
manual pulse generator operation end.
(Note) :
Motion program No. 100
(Program No. specified with the
S(P).SFCS instruction.)
All axes servo ON command
turns on.
Wait until axis 1 and axis 2
servo ON.
Wait until manual pulse
generator operation start.
Wait until manual pulse
generator operation end.
(1) Set the positioning control parameters using a peripheral device.
(2) Set the used manual pulse generator, operated axis No. and magnification for 1
pulse input using the Motion program.
(3) Turn the manual pulse generator enable flag ON using the Motion program
................................................ Manual pulse generator operation enabled
(4) Perform the positioning by operating the manual pulse generator.
(5) Turn the manual pulse generator enable flag OFF using the Motion program
................................................ Manual pulse generator operation completion