Chapter 2 G Commands
153
Ⅰ
Programming
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-82 Nesting macro program
(
2
)
Modal call of macro program G66, G67
Command function
: set the modal message of the specified macro program L times for calling
P, send the argument to the called macro program.
Command format
:
G66 P L __
〈
argument list
〉;
……
;
G67
;
Command explanation:
G66
:
modal macro program call needs one line to be specified;
G67
:
call macro program call mode;
P
:
specify many called macro programs;
L
:
times for calling the macro program. It is default to 1, its range is 1—9999;
Argument list: data sending to macro program is referred to the explanations of G65.
Note 1: In G66, call a movement code in the same CNC file or M98, G65 or G66 cannot be executed in
non-movement blocks;
Note 2: G66 is specified before P_, L_ and argument, and the use methods of P, L, the argument are the
same those of G65;
Note 3: G66 can’t call a macro program in G66 blocks but it can execute the call only when its mode is
called; without movement codes, it cannot call a macro program in miscellaneous function or dry
run mode;
Note 4: The local variable (argument) is specified only in G66 block, and the system does not set it again
when each modal call is executed;
Note 5: Cannot specify the macro call code in MDI mode;
Note 6: When the reset is executed by setting the parameter, whether the common variables of the local
variables from #1 to #33 and from #100 to #149 are cleared to the Null value.
Note 7: The system clears the call state of all user macro programs and subprograms and DO state, and
returns to the main program;
Note 8: In executing the macro program statement, when the feed pause is valid, the machine stops after
the macro statement is executed, and the machine also stops when the system resets or alarms.
Application example:
(
1
)
G65 example
Содержание GSK988TA
Страница 6: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation VI ...
Страница 19: ...1 Ⅰ Programming PROGRAMMING ...
Страница 20: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 2 Ⅰ Programming ...
Страница 176: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 158 Ⅰ Programming ...
Страница 227: ...209 Ⅱ Operation OPERATION ...
Страница 228: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 210 Ⅱ Operation ...
Страница 242: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 224 Ⅱ Operation ...
Страница 298: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 280 Ⅱ Operation ...
Страница 336: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 318 Ⅱ Operation ...
Страница 348: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 330 Ⅱ Operation ...
Страница 352: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 334 Ⅱ Operation ...
Страница 358: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 340 Ⅱ Operation ...
Страница 369: ...Chater 10 Machining Example 351 Ⅱ Operation ...
Страница 370: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation 352 Appendix APPENDIX ...
Страница 371: ...353 Appendix ...
Страница 465: ...Appendix 1 Parameters 447 Appendix ...
Страница 479: ...Appendix 3 Interface Explanation 461 Appendix ...
Страница 527: ...Appendix 5 Installation Layout 509 Appendix ...