EasyManua.ls Logo

GSK 980MDc - End of Run (M30); Subprogram Call (M98); Return from Subprogram (M99)

GSK 980MDc
473 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GSK980MDc Milling CNC System User Manual
14
I Programming
2.1.3 End of Run (M30)
Format: M30
Function: If M30 command is executed in the Auto mode, the automatic run is ended after the other
commands of current block are executed; the system cancels the tool nose radius compensation
and the cursor returns to the beginning of the program when the workpieces number is added by
one (whether the cursor returns to the head of the program is determined by parameters).
The cursor does not return to the beginning of the program when the BIT4 of parameter 810 is set to
0; when it is set to 1, the cursor returns to the beginning of the program as soon as the program execution is
finished.
Besides the above-mentioned functions processed by CNC, the functions of code M30 also can be
defined by the PLC ladder diagram. The function defined by standard ladder diagram can be: turn OFF
the M03, M04 or M08 output signal after the M30 command is executed, and meanwhile output M05 signal.
2.1.4 Subprogram Call (M98)
FormatM98 L○○○○P□□□□
Function: In Auto mode, when the M98 is executed, the subprogram specified by P is called after the
execution of other codes in the current block. The subprogram can be performed 9999 times at
most. M98 cannot be performed in MDI, or an alarm will occur.
Note: U command specifying arc chamfering cannot be with M98 in the same block. The linear
chamfering is invalid when it and M98 are in the same block, and it is taken as the cycle times of
calling subprograms.
2.1.5 Return from Subprogram (M99)
Format
M99 P○○○○
Function: (in subprogram) as the other commands of current block are executed, the block specified by P
is performed continuously when the main program is returned. The next block is
performed continuously by calling current subprogram of M98 command when returning to the
main program; because of the P is not given. If the main program is ended by using the M99
(namely, the current program is not called by other programs for execution), the current program
will be run circularly. So, the M99 command is disabled in MDI.
Example: Fig. 2-1 shows that the execution route of the subprogram is called (the P command within M99).
Fig. 2-2 shows that the execution route of the subprogram is called (the P command is not in M99.
Called times1-9999calling for once,
the
input can be omitted
The called subprogram No.00009999.The
leading zero of
subprogram can be omitted when the called times are not input; th
e
subprogram No. should be 4 digits when the called times is input;
The block No. (00009999) when return to main program is
executed, the leading zero can be omitted.

Table of Contents