Mitsubishi Electric R16MTCPU Programming Manual page 340

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

■No.120: JOG
JOG
[F120]
//1 axis JOG operation speed =
//100000pulse/s
D640L=K100000
//2 axes JOG operation speed =
//100000pulse/s
D642L=K100000
[G120]
//1 axis forward rotation JOG start
//SET/RST
SET M3202=X3 * !M3203
RST M3202=!X3
//1 axis reverse rotation JOG start
//SET/RST
SET M3203=X4 * !M3202
RST M3203=!X4
//2 axis forward rotation JOG start
//SET/RST
SET M3222=X5 * !M3223
RST M3222=!X5
//2 axes reverse rotation JOG start
//SET/RST
SET M3223=X6 * !M3222
RST M3223=!X6
//Is repeated to the JOG mode completion.
!(!X1*!X2)
[F122]
//1, 2 axis forward/reverse rotation
//JOG start command is reset.
RST M3202
RST M3203
RST M3222
RST M3223
END
■No.130: Manual pulse generator
Manual pulse generator
[F130]
D720=100 //1-pulse input magnification
//setting of 1 axis
D721=100 //1-pulse input magnification
//setting of 2 axes
D714L=H00000001 //P1 is controlled
//1 axis.
D716L=H00000002 //P2 is controlled
//2 axes
SET M2051 //P1 Manual pulse generator
//enable flag is ON
SET M2052 //P2 Manual pulse generator
//enable flag is ON
[G130]
!(!X2*X1)//Did you complete a manual
//pulse generator mode?
[F131]
RST M2051 //P1 Manual pulse generator
//enable flag is OFF
RST M2052 //P2 Manual pulse generator
//enable flag is OFF
END
APPENDICES APPENDIX
338
Appendix 2 Sample Program
When each signal of X3 to X6 is turned on/off, which the
correspondences JOG command device is SET/RST.
It makes forward rotation JOG start of the same axis and a
reverse rotation JOG start from making turned on at the same
time.
Signal name
Correspond with JOG command device
X3
M3202 (1 axis forward rotation JOG)
X4
M3203 (1 axis reverse rotation JOG)
X5
M3222 (2 axis forward rotation JOG)
X6
M3223 (2 axis reverse rotation JOG)
*: The ON/OFF distinction of each signal can be
described with Y/N transition. But, processing time can
be shortened more the number of steps when it was
described as the following in the case of the processing
which could be described only with SET=/RST=
because it is made low.
Forward rotation/reverse rotation JOG status of 1, 2 axis is
turned off at the time of the JOG mode completion not to
continue a JOG movement after it moves to other mode of the
safety.
The setup of the following is executed to do manual pulse
generator operation of P1 with 1 axis/P2 with 2 axis.
Setting of 1-pulse input magnification of the 1 axis and 2
axis.
Manual pulse generator axis No. setting register is setup to
control of P1 with 1 axis/P2 with 2 axis.
Manual pulse generator axis enable flag of P1, P2 is
turned on.
1, 2 axis Manual pulse generator enable flag turned off at the
time of the JOG mode completion not to continue a manual
pulse generator operation after it moves to other mode of the
safety.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents