424
6 MANUAL CONTROL
6.2 Manual Pulse Generator Operation
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
■
Manual pulse generator operation conditions
■
Motion SFC program
Motion SFC program for manual pulse generator operation is shown below.
*1 Example of the above Motion SFC program is started using the automatic start or sequence program.
Item
Manual pulse generator operation conditions
Manual pulse generator operation
axis
Axis 1, Axis 2
Manual pulse generator 1-pulse input
magnification
100
Manual pulse generator operation
enable
M2051(Axis 1) ON: P1
M2052(Axis 2) ON: P2
Manual pulse generator operation
end
M2051(Axis 1) OFF: P1
M2052(Axis 2) OFF: P2
R32MT
CPU
R04
CPU
RX40
C7
RY40
NT5P
RD62
P2
R61P
M
AMP
M
AMP
M
AMP
M
AMP
Axis
1
Axis
2
Axis
3
Axis
4
Motion CPU control module
Manual pulse generator: P1
Manual pulse generator: P2
[Rq.1125] Manual pulse generator1
enable flag (M2051): P1
[Rq.1126] Manual pulse generator2
enable flag (M2052): P2
Manual pulse generator enable flag
!X0
[G20]
Manual pulse generator
END
SET M2042
[F10]
X0*M2415*M2435
[G10]
D720=100
D721=100
D714L=H00000001
D716L=H00000002
SET M2051
SET M2052
[F20]
RST M2051
RST M2052
[F30]
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.
Содержание MELSEC iQ-R16MTCPU
Страница 1: ...MELSEC iQ R Motion Controller Programming Manual Positioning Control R16MTCPU R32MTCPU R64MTCPU ...
Страница 2: ......
Страница 477: ...APPENDICES Appendix 1 Processing Times of the Motion CPU 475 A MEMO ...
Страница 481: ......