Chapter
Ⅱ
G Commands
137
Ⅰ
Programming
Example: B_A_D_…J_K_ Correct
B_A_D_…K_J_ Incorrect
Argument specification II uses A, B and C once each and uses I, J, and K up to ten times.
Argument specification II is used to pass values such as three-dimensional coordinates as
arguments.
Argument specification II
Address
Argument No.
Address
Argument No.
Address
Argument No.
A #1 K3 #12 J7 #23
B #2 I4 #13 K7 #24
C #3 J4 #14 I8 #25
I1 #4 K4 #15 J8 #26
JI #5 I5 #16 K8 #27
K1 #6 J5 #17 I9 #28
I2 #7 K5 #18 J9 #29
J2 #8 I6 #19 K9 #30
K2 #9 J6 #20 I10 #31
I3 #10 K6 #21 J10 #32
J3 #11 I7 #22 K10 #33
Note 1: G65 must be specified before any argument;
Note 2: After G65, specify at address P and L. when P or L is repeated and No.3403 Bit6 (AD2) is set 0, the
specification later takes precedence, otherwise, the system alarms;
Note 3: Subscripts of I, J, K in the argument specification II for indicating the order of argument
specification are not written in the actual program;
Note 4: The CNC internally identifies argument specification I and argument specification II. If a mixture of
argument specification I and argument specification II is specified, the type of argument
specification specified later takes precedence;
Note 5: Calls can be nested to a depth of four levels including simple calls G65 and modal calls G66. This
does not include subprogram call M98.
Note 6: Whether the units used for argument without a decimal point correspond to the least input
increment of each address is related to the parameter DPI (No.3401#0);
Note 7: G65, G66 cannot be in the same block with NC code, otherwise, the system alarms;
Note 8: In macro program nesting call, the local variables from level 0 to 4 are provided for nesting. When
the level of the main program is 0, each time a macro is call, the local variable level is incremented
by one. The values of the local variables at the previous level are saved in the CNC. When M99 is
executed in a macro program, control returns to the calling program. At that time, the values of the
local variables saved when the macro was called are restored.
Note 9: The line number of the command line of the macro statement must be home, otherwise, the system
alarms.
Macro program nesting example
O
0 0 0 1 ;
. . .
. . .
. . .
G 6 5 P 0 0 0 2 ;
. . .
. . .
. . .
. . .
M 3 0 ;
M a i n p ro g ra m
L e ve l 1
L e ve l 2
O
0 0 0 3 ;
. . .
. . .
. . .
G 6 5 P 0 0 0 4 ;
. . .
. . .
. . .
. . .
M 9 9 ;
M a c ro p r o g ra m
O
0 0 0 4 ;
. . .
. . .
. . .
G 6 5 P 0 0 0 5 ;
. . .
. . .
. . .
. . .
M 9 9 ;
M a c ro p r o g ra m
O
0 0 0 2 ;
. . .
. . .
. . .
G 6 5 P 0 0 0 3 ;
. . .
. . .
. . .
. . .
M 9 9 ;
M a cr o p ro g r a m
O
0 0 0 5 ;
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
M 9 9 ;
M a c ro p r o g ra m
L e v e l 3
L e v e l 4
Fig.2-60 Nesting macro program
Содержание 988T
Страница 6: ...GSK988T Turning CNC System User Manual VI ...
Страница 14: ...GSK988T Turning CNC System User Manual XIV ...
Страница 15: ...Chapter 1 Programming Fundamentals 1 Ⅰ Programming Ⅰ PROGRAMMING ...
Страница 16: ...GSK988T Turning CNC System User Manual 2 Ⅰ Programming ...
Страница 194: ...GSK988T Turning CNC System User Manual 180 Ⅰ Programming ...
Страница 195: ...Chapter Ⅰ Overview 181 Ⅱ Operation Ⅱ OPERATION ...
Страница 196: ...GSK988T Turning CNC System User Manual 182 Ⅱ Operation ...
Страница 215: ...Chapter Ⅲ Windows 201 Ⅱ Operation Note It can be displayed after U disk is inserted in the U disk catalog ...
Страница 217: ...Chapter Ⅲ Windows 203 Ⅱ Operation ...
Страница 267: ...Chapter Ⅲ Windows 253 Ⅱ Operation Fig 3 51 Fig 3 52 ...
Страница 412: ...GSK988T Turning CNC system User Manual 398 Appendix Fig 3 5 Horizontal operation panel appearance dimension ...