Mitsubishi Electric MELSEC iQ-R16MTCPU Programming Manual page 426

Melsec iq-r series, positioning control
Hide thumbs Also See for MELSEC iQ-R16MTCPU:
Table of Contents

Advertisement

Program example
The program for performing manual pulse generator operation of Axis 1 and Axis 2 is explained as an example.
This program example is explained in the "Q series Motion compatible device assignment" device assignment method.
■System configuration
R61P
R04
R32MT
RX40
CPU
CPU
C7
AMP
Axis
1
M
■Manual pulse generator operation conditions
Item
Manual pulse generator operation
axis
Manual pulse generator 1-pulse input
magnification
Manual pulse generator operation
enable
Manual pulse generator operation
end
■Motion SFC program
Motion SFC program for manual pulse generator operation is shown below.
Manual pulse generator
[F10]
SET M2042
[G10]
X0*M2415*M2435
[F20]
D720=100
D721=100
D714L=H00000001
D716L=H00000002
SET M2051
SET M2052
[G20]
!X0
[F30]
RST M2051
RST M2052
END
*1 Example of the above Motion SFC program is started using the automatic start or sequence program.
6 MANUAL CONTROL
424
6.2 Manual Pulse Generator Operation
Motion CPU control module
RY40
RD62
NT5P
P2
Manual pulse generator: P1
Manual pulse generator: P2
AMP
AMP
AMP
Axis
Axis
Axis
2
3
4
M
M
M
Manual pulse generator operation conditions
Axis 1, Axis 2
100
M2051(Axis 1) ON: P1
M2052(Axis 2) ON: P2
M2051(Axis 1) OFF: P1
M2052(Axis 2) OFF: P2
Wait until X0, Axis 1 servo ready and
Axis 2 servo ready turn ON.
Manual pulse generator 1-pulse input
magnification for Axis 1, Axis 2.
Control Axis 1 by P1.
Control Axis 2 by P2.
Manual pulse generator 1 enable flag ON for P1
Manual pulse generator 2 enable flag ON for P2
Wait until X0 turn OFF after manual pulse
generator operation end.
Manual pulse generator 1 enable flag OFF for P1
Manual pulse generator 2 enable flag OFF for P2
*: Turn the manual pulse generator enable
flag OFF for P1, P2, so that the operation
may not continue for safety.
Manual pulse generator enable flag
[Rq.1125] Manual pulse generator1
enable flag (M2051): P1
[Rq.1126] Manual pulse generator2
enable flag (M2052): P2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r32mtcpuMelsec iq-r64mtcpu

Table of Contents