Chapter 2 G Commands
151
Ⅰ
Programming
2.27.4 Macro Program Statement and NC Statement
The following blocks are macro program statements:
Including arithmetic or logical operation (=);
Including control statement(such as GOTO, DO, END);
Including macro program call code (G65, G66, G67).
Any NC blocks except for macro program statement are NC statements.
In Single Block mode, when No.6000 Bit5 (SBM) is set to 0, the system directly skips the macro
program statement and the machine does not stop, but it is set to 1, the system stops run and
enters the stop state.
One block cannot have the macro program statement and NC statement simultaneously.
2.27.5 Macro Program Call
(
1
)
Non-modal call of macro program G65
Command format
: G65 P L __
〈
argument list
〉;
Command function
: The system calls macro program L times specified by P and transfers the
argument to the called macro program.
Command explanations:
P: specify the macro program to be called;
L: times of calling the macro program, and its default is 1 and its
range is 1
~
9999;
Argument list: data transferred to macro programs.
Argument specification
:
Two types of argument specification are available. Argument specification I uses letters other than
G, L, O, N and P once each. Argument specification II uses A, B and C once each and also uses Ii,
Ji and Ki. i is 1~10, and the types of argument specification are determined automatically
according to the letters used.
Argument specification I
Address
Variable No. Address
Variable No.
Address
Variable No.
A #1 I #4 T #20
B #2 J #5 U #21
C #3 K #6 V #22
D #7 M #13
W #23
E #8 Q #17
X #24
F #9 R #18
Y #25
H #11
S #19
Z #26
Addresses G, L, N, O and P cannot be used in arguments;
Addresses that need not be specified can be omitted and local variables corresponding to an
omitted address are set to null;
Summary of Contents for GSK988TA
Page 6: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation VI ...
Page 19: ...1 Ⅰ Programming PROGRAMMING ...
Page 227: ...209 Ⅱ Operation OPERATION ...
Page 369: ...Chater 10 Machining Example 351 Ⅱ Operation ...
Page 371: ...353 Appendix ...
Page 465: ...Appendix 1 Parameters 447 Appendix ...
Page 479: ...Appendix 3 Interface Explanation 461 Appendix ...
Page 527: ...Appendix 5 Installation Layout 509 Appendix ...