Chapter 2 MSTF Command
23
Ⅰ
Progra
mming
ladder diagram as follows: the system closes M03, M04 or M08 signal output and outputs M05 signal
after M30 is executed.
Subprogram call M98
Command format:
M98 P
○○○○□□□□
Command function: In Auto mode, after other commands are executed in M98, CNC calls
subprograms specified by P, and subprograms are executed 9999 times at
most. M98 is invalid in MDI mode.
Return from subprogram M99
Command format: M99 P
○○○○
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.
Fig. 2-1
Called subprogram number
(
0000
~
9999
)
. The leading zero of
subprogram number can be omitted when the calling times is not input; the
subprogram number must be with 4 digits when the calling times is input..
Call times: 1
~
9999. The calling times cannot be input when it is 1.
Executed block after returning to the main program is 0000
~
9999
,
and its leading zero can be omitted.
Содержание GSK980TDc
Страница 17: ...I Programming ...
Страница 18: ...GSK980TDc Turning CNC System User Manual ...
Страница 190: ...GSK980TDc Turning CNC System User Manual 172 Ⅰ Programming ...
Страница 191: ...Ⅱ Operation Ⅱ Operation ...
Страница 192: ...GSK980TDc Turning CNC System User Manua Ⅱ Operation ...
Страница 217: ...Chapter 1 Operation Mode and Display Interface 197 Ⅱ Operation 2 Data parameter page 3 Common used parameter page ...
Страница 326: ...GSK980TDc Turning CNC System User Manual 306 Ⅱ Operation ...
Страница 327: ...Ⅲ Connection Ⅲ Connection ...
Страница 328: ...GSK980TDc Turning CNC System User Manual Ⅲ Connection ...
Страница 470: ...GSK980TDc Turning CNC System User Manual 448 Ⅲ Connection ...