M-Codes For Internal Processing (M90 To M99); Subprogram (M98, M99) - YASKAWA MOTIONPACK-110 Descriptive Information

Motion controller for fa/fms for up to 3-axis drive
Table of Contents

Advertisement

4.4.4
M-CODES
FOR
INTERNAL
PROCESSING
(M90toM99)
M90 through
M99 are used
for internal
processing,
and
they do not output
any signals
(BCD).
M98 and M99 are for initiating
subprograms
and for ending
them.
4.4.5
SUBPROGRAM
(M98, M99)
Numbered
and stored
subprograms
can be called
up as many
times
as desired
for
execution.
(1) Initiating
Subprograms
(M98)
The subprogram
designated
by P is initiated,
and executed
L times.
When no L is
programmed,
the subprogram
is executed
only once.
M98
P ....
L ....
; J
J
L
___ NUMBER
OF REPETITIONS
OF
SUBPROGRAMS
SUBPROGRAM
NO. TO BE INITIATE
(2) Subprogram
End
(M99)
M99 is written
at the end of a subprogram
in a separate
block.
When M99 comes
at the
end of the subprogram
to which
M98 designated,
the program
returns
automatically
to
the block next to the M98 block.
- .........
(Program
example)
The sequence
in which
the main
program
initiates
a subprogram
and the subprogram
is
executed,
are shown
below.
MAIN PROGRAM
SUBPROGRAM
O100;
_
O200;
N001 G00 ...... ;
INITIATING
N001 ......... ;
SUBPROGRAM
N002 M98 P200 L3;
(3
TIMES)
N002 .........
;
N003 .........
;
INITIATING
SUBPROGRAM
N004 M98 P200;
(1 TIME)
N 050 M _;
N005 .........
;
1 TIME
TIM
ND OF SUBPROGRAM
Fig. 4.34
" -
8O

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents