Download User Manual

Transcript
ADT-CNC4240 铣 床 数 控 系 统
Here, in the numbers following address P, the last four digits are used for designating
the number of the subprogram to be invoked, the front three digits for designating the
repeated times to be invoked.
M98 P51002; To invoke subprogram No.1002, repeat 5 times.
M98 P1002;
To invoke subprogram No.1002, repeat 1 times.
M98 P50004; To invoke subprogram No.4, repeat 5 times.
The invoke instruction can appear in the same program segment as the motion
instruction:
G90 G00 X−75. Y50. Z53. M98 P40035;
This program segment instructs axis X, Y and Y to move to the designated position with
the speed of fast locating feed, then invoke to execute subprogram No.35 for four times.
Unlike other M codes, when M98 and M99 are executed, no signal is sent to the side of
machine tool.
When NC can’t find out the program number designated by address P, the alarm will be
sent out.
The invoke instruction of subprogram—M98 can’t be executed under the MDI mode. If
a subprogram needs to be executed individually, you can edit the program in the
programming mode as follows and execute it in the auto running mode.
O×××;
M98 P××××;
M30;
2)Program finished
When the following codes are seen at the end of the program, it means the program
part is finished.
EIA
M30 CR
Define
The end of the program and return
to the beginning of the program
M99 CR
M99 LF
subprogram finished
In executing the program, if the abovementioned program-end code is detected, the
device will finish executing the program and the system will enter the reset state. In the
case of M30, CR or M30 LF, the system will return to the beginning of the program (in an
auto way). In the case of end of subprogram, the system will return to the program which
invokes the subprogram.
3)File finished
EIA
ER
ISO
M30 LF
ISO
%
Define
program finished
Remark: If ER(EIA) or %(ISO) is executed without M30 at the end of the program, CNC
will change to the reset state.
Adtech CNC Co.,LTD
- 39 -