Mitsubishi Electric MELDAS C6 Programming Manual page 234

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
(5) WHILE − DOm must be designated first and
ENDm last.
END 1 ;
Not
possible
WHILE ~ DO1 ;
(7) Two WHILE − DOm's must not overlap.
WHILE ~ DO1 ;
Not
possible
WHILE ~ DO2 ;
END 1 ;
END 2 ;
(9) No branching is possible inside WHILE − DOm.
IF~GOTOn;
WHILE~DO1;
Nn;
END1;
(11) Calls can be initiated by G65 or G66 between
WHILE − DOm's and commands can be issued
again from 1. Up to 27 nesting levels are
possible for the main program and
subprograms.
Main program
WHILE ~ DO1 ;
G65 P100 ;
To subprogram
END 1 ;
M02 ;
(Note)
As the canned cycles G73 and G83 and the special canned cycle G34 use WHILE, these
will be added multiple times.
(6) WHILE − DOm and ENDm must correspond on
(8) Branching externally is possible from the WHILE
(10) Subprograms can be called by M98, G65 or
WHILE~DO1;
IF~GOTOn;
END1;
WHILE~DO1;
Nn;
END1;
(12) A program error will occur at M99 if WHILE and
Subprogram
WHILE ~ DO1 ;
END 1 ;
M99 ;
226
13.5 User macro specifications
a 1:1 (pairing) basis in the same program.
WHILE ~ DO1 ;
Not
WHILE ~ DO1 ;
possible
END 1 ;
− DOm range.
WHILE ~ DO1 ;
IF ~ GOTOn ;
END 1 ;
Possible
Nn
G66 between WHILE − DOm's.
Main program
WHILE~DO1;
G65
To subprogram
P100;
END1;
M02;
END are not paired in the subprogram
(including macro subprogram).
Main program
M98
To subprogram
P100;
M02;
Subprogram
WHILE~DO02;
END2;
M99;
Subprogram
WHILE
~DO1;
M99;
Don ENDn
constitutes
illegal usage.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents