Mitsubishi Electric Q Series Programming Manual page 440

Motion controller
Hide thumbs Also See for Q Series:
Table of Contents

Advertisement

7 AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
Program executes manual pulse generator operation is shown as the following
conditions.
(1) System configuration
Manual pulse generator operation of Axis 1.
Q172H
Q61P Q02H
CPU
CPU
AMP
Axis
1
M
(2) Manual pulse generator operation conditions
(a) Manual pulse generator operation axis........... Axis 1, Axis 2
(b) Manual pulse generator 1-pluse input magnification............ 100
(c) Manual pulse generator operation enable ...... M2051(Axis 1)/M2052(Axis 2)
(d) Manual pulse generator operation end ......... M2051(Axis 1)/M2052(Axis 2)
(3) Motion program (Control program)
O0100
SET #M2042; All axes servo ON command turns on.
N10 IF [[ON #M2415] AND [ON #M2435]] GOTO 20; Wait until axis 1 and axis 2 servo ON.
GOTO 10;
N20 IF [ON #X000] GOTO 30; Wait until manual pulse generator operation start.
GOTO 20;
N30 #D720 = 100;
Set "axis 1" and "axis 2" 1-pluse input magnification.
#D721 = 100;
#D714L = 1; Control axis 1 by P1.
#D716L = 2; Control axis 2 by P2.
SET #M2051;
Axis 1 and axis 2 manual pulse generator enable flag turn on.
SET #M2052;
N40 IF [OFF #X000] GOTO 50; Wait until manual pulse generator operation end.
GOTO 40;
N50 RST #M2051;
Axis 1 and axis 2 manual pulse generator enable flag turn off.
RST #M2052;
(Note) : Turn off the P1 and P2 manual pulse generator enable flag for
M02;
%
(Note) : Control program O0100 is started by automatically start, CALL, GOSUB,
GOSUBE or SFCS instruction of the PLC program.
Motion CPU control module
Q172
QX41
LX
Manual pulse generator P1
Manual pulse generator P2
AMP
AMP
AMP
Axis
Axis
Axis
2
3
4
M
M
M
safety not to continue the manual pulse generator operation at
the manual pulse generator operation end.
7 - 67
Manual pulse generator enable flag
(M2051 : P1, M2052 : P2)
ON
OFF

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173hcpuQ172hcpu

Table of Contents