TOMATECH AUTOMATION
program (whether the cursor return to the start of program or not is defined
by parameters).
If No.005 Bit 4 is set to 0, the cursor does not return to the beginning of program, and the
cursor returns immediately after the program is executed completely when No.005 Bit 4 is
set to 1. Except for the above-mentioned function executed by NC, M30 function is also
defined by PLC
Ⅰ Programming
ladder diagram as follows: the system closes M03, M04 or M08 signal output and outputs
M05 signal after M30 is executed.
Subprogram call M98
Return from subprogram M99
Command function: After other commands of current block in the subprogram are
executed, the system returns to the main program and continues to execute next block
specified by P, and calls a block following M98 of current subprogram when P is not input.
The current program is executed repeatedly when M99 is defined to end of program
(namely, the current program is executed without calling other programs). M99 is invalid in
MDI mode.
Example: Execution path of calling subprogram (with P in M99) as Fig. 2-1.
Execution path of calling subprogram (without P in M99) as Fig. 2-2.