Mitsubishi Electric MELDAS C6 Programming Manual page 183

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

13. Program Support Functions
Example of program
When there are 3 subprogram calls (known as 3 nesting levels)
Main program
M98P1;
M02;
(1) For nesting, the M98 and M99 commands should always be paired off on a 1:1 basis, (1)' for
(1), (2)' for (2), etc.
(2) Modal information can be rewritten according to the execution sequence without distinction
between main programs and subprograms. This means that after calling a subprogram,
attention must be paid to the modal data status when programming.
Example of program 2
The M98H__; M99P__; commands designate the sequence numbers in a program with a call
instruction.
Sub program 1
O1;
(1)
M98P10;
(1)'
M99;
Sequence of execution : (1) → (2) → (3) → (3)' → (2)' → (1)'
For M98H__ ;
M98H3;
N3___;
M99;
175
13.3 Subprogram control
Sub program 2
O10;
(3)
(2)
M98P20;
(3)'
(2)'
M99;
For M99P__ ;
N100___;
M98P123;
N200_;
N300___;
N400___;
Sub program 3
O20;
M99;
O123;
M99P200;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents