Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter 3 G Commands
175
Ⅰ
Programming
Method II: Use A, B, C and li, Ji, Ki (I is 1~10), the used letter and executed times (I, J, K)
automatically decides the corresponding variable number of argument. The argument in the method
specifies A, B, C one time for each and I, J, K up to 10 times ( 10 times replacing the more).
Argument address and corresponding variable No. table in method II
Address
Variable No.
Address
Variable No.
Address
Variable No.
A
#1 K
3
#12
J
7
#23
B
#2 I
4
#13 K
7
#24
C #3 J
4
#14
I
8
#25
I
1
#4 K
4
#15
J
8
#26
J
1
#5
I
5
#16 K
8
#27
K
1
#6
J
5
#17
I
9
#28
I
2
#7 K
5
#18
J
9
#29
J
2
#8
I
6
#19 K
9
#30
K
2
#9
J
6
#20 I
10
#31
I
3
#10 K
6
#21 J
10
#32
J
3
#11
I
7
#22 K
10
#33
Note 1: The subscripts of I, J, K are used to confirming the specified sequence of argument, and are not
written in the actual programming.
Note 2: The system can identify the variable number according to the present sequence and times of I, J, K in
the method.
Note 3: CNC internal can automatically identify the argument specifying mode I and II. When the two modes
are specified, the later specified is valid.
3.27.3.2 Modal Call G66
Command format:
G66 P_ L_ <Argument>_;
Command explanation:
P
——
called macro program number
L
——
called times (It is 1 when it is omitted, it can be the repetitive
times from 1 to 9999)
<Argument>
——
data sent to macro program is valued with the
corresponding local variable.
Nest call:
G66 call has four-level nest.
Note:
1) Macro program is called firstly after G66 block is executed.
2) The macro program is called again after G00, G01, G02, G03, G05 are executed (after
G66 is executed and before the modal call is cancelled).
3) Call the value which is updated from the argument to the local variable.
4) G65 call will automatically cancel G66 modal call.
3.27.3.3 Modal Call Cancel G67
Command format:
G67;
Command explanation:
cancel G66 modal macro program call
Application:
O2005(O2005) ;
G00 X100 Z50;
G66 P0100 L2 A2 B20 C20 I30 J20 K20; call P0100 two times when the system executes the
block
G01 X80 Z50; call P0100 two times (update the local variable according to the argument) after