ADTECH9 Series CNC Programming Manual
Program start should have a subroutine name specified by address O
M99 doesn’t need to appear in a program segment separately.
Subroutine call format:
M98P XXX XXXX
Note:
In the number following address P, the latter four digits are used to specify the program No. of called
subroutine, and the former three digits are used to specify the repeat times of calling.
Example:
M98 P41005; call subroutine 1005, repeat four times
G90 G00 X-75. Y50. Z53. M98 P40035; this program segment specifies the X, Y, Z axis to fast locate the
instruction position, and then call subroutine 0035 for four times.
Note:
➢
If the calling time isn’t specified, the subroutine will be called only once;
➢
M98 doesn’t need to appear in a program segment separately;
➢
Different from other M codes, M98 and M99 won’t send signal to the machine tool when executing;
➢
NC gives an alarm if can’t find the program No. specified by address P;
➢
Subroutine call instruction M98 can’t be executed in MDI mode; to execute a subroutine separately,
please edit the following program in the editing mode, and execute in automatic running mode.
O×××;
M98 P××××;
M30;
1.3.3
Modal and non-modal function
G code determines the function of the command and can be classified into two types:
Non-modal G code:
G code is only valid in defined program segment
Modal G code:
G code is always valid, until next G code of same group appears.
Example: G01 and G00 are modal G codes
Summary of Contents for CNC9640
Page 1: ...ADTECH9 Series CNC Programming Manual ...
Page 21: ...ADTECH9 Series CNC Programming Manual Workpiece Coordinate System Diagram ...
Page 44: ...ADTECH9 Series CNC Programming Manual 2 Occasions that inner corner rotates ...
Page 45: ...ADTECH9 Series CNC Programming Manual ...
Page 62: ...ADTECH9 Series CNC Programming Manual Manual insertion ...
Page 65: ...ADTECH9 Series CNC Programming Manual Tool radius compensation start and axis Z cut in action ...
Page 117: ...ADTECH9 Series CNC Programming Manual ...
Page 118: ...ADTECH9 Series CNC Programming Manual ...
Page 142: ...ADTECH9 Series CNC Programming Manual ...
Page 143: ...ADTECH9 Series CNC Programming Manual ...