Mitsubishi Electric R16MTCPU Programming Manual page 348

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

■No.20: Main
Main
[F20]
SET M100 //Stop ON (Initials set)
Stop
Programming operation
[G20]
SM502 //Did you release a forced
//stop?
[F110]
SET M2042//All axes servo ON command
// is ON
[G21]
!SM502//Did you turn on forced
//stop?
[F25]
DOUT Y10,H0000 //Y10 to Y1F
//(16 points)OFF
■No.170: Stop
Stop
[G170]
//Did you release a stop?
// (Did a thing during servo ON and X5
//turn off 1 axis and 2 axes?)
M2415*M2435*!X5
[F170]
//A stop is being released stop, status.
RST M3200 //1 axis stop command OFF
RST M3220 //2 axes stop command OFF
RST M100 //Stop OFF
APPENDICES APPENDIX
346
Appendix 2 Sample Program
The internal relay (M100) for the stop
turn on.
The subroutine starts "170: stop" and
"150: Programming operation".
P0
When a forced stop is released, all axis
servo on command are turned on.
"Real output (Y)" is turned off at the
time of the forced stop.
*: A subroutine during the start is
made to stop if necessary.
*: Actual output is turned off if necessary.
*: The occurrence detection of servo error
and so on is added to the stop condition
with the forced stop if necessary.
P0
P0
[F171]
//The stop is being turned on, status.
SET M100 //Stop ON
SET M3200 //1 axis stop command ON
SET M3220 //2 axes stop command ON
P0
The subroutine that motion control was
executed at the time of the forced stop
did not stop and which started it for a
while goes on, and it is executed by
this sample program.
Motion control is stopped after servo
OFF is detected at the time of the
forced stop in the inside of the
subroutine.
Resuming of the motion control is
executed after all the axis servo ON
command were turned on in this
program and the detection of servo ON
was done on the subroutine side when
a forced stop is released.
When servo ON and the outside input
signal (X5) for the stop are OFF, 1 axis,
2 axis stop command are turned off,
and 1 axis, 2 axis continue motion
control by turning off an internal relay
(M100) for the stop.
It is made to turn on 1 axis, 2 axis stop
command, and motion control is made
to stop by turning on an internal relay
(M100) for the stop, too, when either
axis turns off servo or when X5 turns it
on.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents