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)
Format
:
M98 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 times
(
1-9999
)
,
calling for once,
the input can be omitted
The called subprogram No.
(
0000
~
9999
)
.The leading zero of
subprogram can be omitted when the called times are not input; the
subprogram No. should be 4 digits when the called times is input;
The block No. (0000
~
9999) when return to main program is
executed, the leading zero can be omitted.
Summary of Contents for 980MDc
Page 19: ...GSK980MDc Milling CNC User Manual XVIII ...
Page 20: ...1 I Programming Programming Ⅰ ...
Page 21: ...GSK980MDc Milling CNC System User Manual 2 I Programming ...
Page 139: ...GSK980MDc Milling CNC System User Manual 120 I Programming ...
Page 191: ...GSK980MDc Milling CNC System User Manual 172 I Programming ...
Page 192: ...173 Ⅱ Operation Ⅱ Operation ...
Page 193: ...GSK980MDc Milling CNC System User Manual 174 Ⅱ Operation ...
Page 200: ...Chapter 1 Operation Mode and Display 181 Ⅱ Operation ...
Page 201: ...GSK980MDc Milling CNC System User Manual 182 Ⅱ Operation ...
Page 249: ...GSK980MDc Milling CNC System User Manual 230 Ⅱ Operation ...
Page 253: ...GSK980MDc Milling CNC System User Manual 234 Ⅱ Operation ...
Page 259: ...GSK980MDc Milling CNC System User Manual 240 Ⅱ Operation ...
Page 265: ...GSK980MDc Milling CNC System User Manual 246 Ⅱ Operation ...
Page 293: ...GSK980MDc Milling CNC System User Manual 274 Ⅱ Operation ...
Page 295: ...GSK980MDc Milling CNC System User Manual 276 Ⅱ Operation ...
Page 319: ...GSK980MDc Milling CNC System User Manual 300 Ⅱ Operation ...
Page 320: ...301 Ⅲ Installation Ⅲ Installation ...
Page 321: ...GSK980MDc Milling CNC System User Manual 302 Ⅲ Installation ...
Page 345: ...GSK980MDc Milling CNC System User Manual 326 Ⅲ Installation ...
Page 391: ...GSK980MDc Milling CNC System User Manual 372 Ⅲ Installation ...
Page 392: ...Appendix 373 Appendix Appendix ...
Page 393: ...GSK980MDc Milling CNC System User Manual 374 Appendix ...
Page 394: ...Appendix 375 Appendix Appendix 1 Outline Dimension of GSK980MDc L N ...