NCT Group 2000M, 99M manual Macro Modal Call From Each Block G66.1, Illegal G Code

Models: 2000M 99M

1 206
Download 206 pages 27.56 Kb
Page 166
Image 166

20 Custom Macro

G0 Z-[#18+#26]

(retraction of the tool to the initial point)

M99

(return to the main program)

%

 

20.2.2 Macro Modal Call From Each Block (G66.1)

As a result of command

G66.1 P(program number) L(number of repetitions) <argument assignment>

all subsequent blocks will be interpreted as argument assignment, and the macro of the number specified at address P will be called, and will be executed as many times as is the number specified at address L.

The command produces the same effect as if each block were a G65 macro call:

G66.1 P L X Y Z

MS

X G67

=

G65 P L X Y Z

G65 P L M S

G65 P L X

The selected macro will be called until with command

G67

it is canceled.

The rules of argument assignment are

1.In the block performing the activation (in which G66.1 P L has been programmed), the rules of the argument assignment are the same as in command G65.

2.In the blocks following instruction G66.1,

the same addresses can be used as in command G65, and L: #12,

P: #16,

G:#10 with the qualification that the control will accept only one reference to an address G in each block; programming several G addresses will produce error message 3005

ILLEGAL G CODE.

N: #14 if an N address is at the beginning of a block (or preceded at most by the address of a conditional block "/"), the second N address will be considered for an argument:

/N130 X12.3 Y32.6 N250

Block No.

#24=12.3

#25=32.6

#14=250

if address N is in the middle of the block (preceded by any address other than "/"), address N will be interpreted as an argument:

X34.236 N320

#24=34.236

#14=320

if address N has been recorded already as an argument, the next reference to address N will produce error message 3064 BAD MACRO STATEMENT.

166

Page 166
Image 166
NCT Group 2000M, 99M manual Macro Modal Call From Each Block G66.1, Illegal G Code