Mitsubishi Electric Melsec Q Series Programming Manual page 517

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

APPENDICES
[G20]
SM502 //Did you release a forced
//stop?
Motion control
[G21]
!SM502 //Forced stop?
CLR
Motion control
[F25]
DOUT PY10,H0000 //PY10 to PY1F
//(16points)OFF
Motion control
[F110]
SET M2042 //All axes servo ON
//command ON
[G105]
M2415*M2435 //Is 1 axis and
//2 axis servo on/off status ON?
[G110]
!PX2*!PX1
JOG
[G115]
//Wait a subroutine call completion
NOP
(a) No.20 : Main
Main
P0
P0
(b) No.110 : Motion control
P0
[G111]
!PX2*PX1
Manual pulse generator
P0
The subroutine call of the following program is executed corresponding to the status of
PX1, PX2.
Selective branch is made the program so that each subroutine may never start it in the
plural at the same time.
And, each subroutine makes the next step "WAIT" to become a subroutine call to
make it stop when this program is suspended by the clear step of "No.20 : Main", too.
When a forced stop is released, a
subroutine starts "No.110 : Motion
control". (Because the next step is a
shift, it becomes a subroutine start, and
the next step is executed at the same
time with subroutine practice, too.)
"No.110 : Motion control" is made to
stop at the time of the forced stop,
and (The program that a subroutine call
is executed from No.110 stops, too.)
actual output (PY) is turned off.
(Note-1) : The program that a subroutine
was started is made to stop if
necessary when a subroutine
start program is added
because it does not stop.
(Note-2) : Real output is turned off if
necessary.
(Note-3) : The occurrence detection of
servo error and so on is added
to the stop status with forced
stop if necessary.
[G112]
PX2*!PX1
Home position return
Condition of
Subroutine call program
PX1, PX2
PX2
PX1
No.
OFF
OFF
120
Manual pulse generator
OFF
ON
130
Home position return
ON
OFF
140
Programming operation
ON
ON
150
APP - 26
When a forced stop is released, it is
the structure which starts the program
which does motion control from the
initials again by sample program.
Therefore it is the system example
that motion control is resumed when
a forced stop release is executed
after it stops forced for while.
[G113]
PX2*PX1
Programming operation
Program name
JOG

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents