Mitsubishi Electric R16MTCPU Programming Manual page 349

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

■No.150: Programming operation
Programming operation
P0
[G151]
//Did you turn on X4, and turn
//off a stop?
X4*!M100
P10
[K150:Real]
1 ABS-2
Axis
1,
0 pulse
Axis
2,
0 pulse
Vector speed
500000 pulse/s
[G200]
//Did 1 axis and 2 axes execute
//positioning completion?
M2401*M2421
[G154]
//Did you turn on 1 axis and 2 axes
//in-position signal?
M2402*M2422
[F150]
#0L=1000000//1 axis positioning
//address set
#2L=2000000//2 axes positioning
//address set
#4L=500000//Positioning speed set
P20
[K151:Real]
1 ABS-2
Axis
1, #
0 pulse
Axis
2, #
2 pulse
Vector Speed
#
4 pulse/s
[G200]
//Did 1 axis and 2 axes execute
//positioning completion?
M2401*M2421
[G156]
//Did you turn on X4, and turn
//off a stop?
!X4*!M100
P0
WAIT transition which
wants to stop substitutes
"The internal relay (M100)
for the stop turns off." for
the AND status.
The motion control step
executed absolute
positioning to application
with it when to start again
after it stops on the way.
[G202]
!M100 //Did you turn off a stop?
The motion control step
executed absolute
positioning to application
with it when to start again
after it stops on the way.
This program substitutes
[G202]
"The internal relay (M100)
!M100 //Did you turn off a stop?
for the stop turns off." into
the AND status in WAIT
transition which wants it to
stop.
This program is judged
whether it was stopped by
using the location complete
signal during the location
on the way.
This program is made to
execute the motion control
step of again after internal
relay (M100) of the stop
waits to turn it off when
positioning completion is
not turned on after the
motion control is executed.
P10
This program is judged
whether it was stopped by
using the location complete
signal during the location
on the way.
It is made to execute the
motion control step of again
after internal relay (M100)
of the stop waits to turn it
off when positioning
completion is not turned on
after the motion control is
executed.
P20
APPENDICES APPENDIX
Appendix 2 Sample Program
A
347

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents