Mitsubishi Electric MELDAS C6 Programming Manual page 181

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
Command format
Subprogram call
M98 P
H
P
H
L
Return to main program from subprogram
M99 P H Q R L ;
M99
P_
H_
Q_
R_
L_
Creating and entering subprograms
Subprograms have the same format as machining programs for normal memory operation except
that the subprogram completion instruction M99 (P__) is entered as an independent block at the
last block.
O ∆∆∆∆∆∆∆∆
................................
................................
:
:
................................
M99 ;
% (EOR)
(1) The above program is entered by editing operations at the setting and display unit. For further
details, refer to the section on program editing in the Control Instructions.
L ;
:Program number of subprogram to be called (own program if omitted)
P can only be omitted during memory operation and MDI operation.
(Numerical value with up to 8 digits)
:Sequence number in subprogram to be called (head block if omitted)
(Numerical value with up to 5 digits)
:Number of subprogram repetitions (When omitted, this is interpreted at
L1, and is not excuted when L0)
(1 to 9999 with numerical value up to 4 digits)
For instance
M98 P1 L3 ; is equivalent to the following:
M98 P1 ;
M98 P1 ;
M98 P1 ;
Subprogram return command
Sequence number of return destination (return to the block that follows the
calling block if omitted)
Program number of return destination (return to the main program at calling if
omitted)
Sequence number to start searching of return destination (the block that
follows the calling block will be handled as the search start position if omitted)
Sequence number to finish searching of return destination (the block that
precedes the calling block will be handled as the search finish position if
omitted)
Number of times after repetition number has been changed ("-1" if omitted)
;
Program number as subprogram
;
;
;
Main body of subprogram
;
Subprogram return command
Entry completion code
173
13.3 Subprogram control

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents