GSK983Ma Milling Machine Center CNC System User Manual
176
Part 1 Programming
12.
(2) Editing the following Macro program body
09010
;
#1=ABS[#4]-#[2000+#7]
;
IF[#1 LE0]GOTO 1
;
#2=#1/2
;
#3003=3
;
G01 X[#1-ROUND[#2]]Y#2
;
G17 G02 X#2 Y-#2R-#2
;
I-#1
;
X-#2 Y-#2 R#2
;
G01 X[#-ROUND[#2]]Y#2]
;
#3003=0
;
N1 M99
;
3.10.7.6 Call the Sub-program by M Code
The M code set by the parameter can be used to call the sub-program. The command of the N_G
X Y ……M98P
△△△△
; can be replaced by following a simple command.
N G X Y ……M××
;
The sub-program can be displayed on the screen for the M98, but the MF and M codes are not
sent out.
The corresponding relationships between the Mxx code sub-program call and the program
number
of the sub
△△△△
-program call are set by parameter.
There are 3 parameters at most can be called the Macro program from the M03 to the M97 other
than the M30 and the M code set by the MBUF1, MBUF2 of the parameters 35 and 36.
The command can be specified from the MDI keyboard, but the argument can not be written.
These M codes sub-program in the whole sub-program can not be called in the Macro program
calling based on the G code or M code or T code, it is the same usage as the M code.
The following parameters are set:
0320 M code for calling the sub-program: 9001
0321 M code for calling the sub-program: 9002
0322 M code for calling the sub-program: 9003
For example: 10.7.8 ATC canned cycle by the M06
(1) Setting the following parameter
Sub-program: The M code called by 9001 is equal to 06, that is, the value of the system
parameter 320 is set to 06.
(2) Recording the following Macro program body
09001
;
#1=#4001
;
#3=#4003
;
G28 G91 Z0 M20
;
G28 Y0
;
M21
;
G00 Z10000
;
M22
;
G28 Z0
;
M23
;
G#1 G#3 M99
;
Summary of Contents for GSK983Ma
Page 124: ......
Page 143: ......
Page 185: ......
Page 209: ...Chapter Four Operation 197 Part 2 Operation ...
Page 239: ...Chapter Four Operation 227 Part 2 Operation ...
Page 242: ......
Page 279: ......
Page 296: ...GSK983Ma Milling Machine Center CNC System User Manual 284 Part 2 Operation ...
Page 371: ...Appendix 11 USB Interface Parameter Transfer Operation ...