Yaskawa YASNAC PC NC Programming Manual User Manual

Page 306

Advertising
background image

4 - 169

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

ó Example of macroprogranm

O9000

#100 = #18;

#101 = #26;

#102 = #21;

#103 = #9;

#104= 0;

---------------------------------

O9082;

#104 = #104 + l;

#1 = #4001;• • • • •

G0 to G3

#2 = #4010; • • • • •

G98/G99

G00 X#24 Y#25;

IF [#104 NE1] GOTO1;

G00 Z#100;

N1 G01 Z#101 F#103;

G04 P#102;

IF [#2 EQ98] GOTO2;

G00 Z-[#101];

GOTO3;

N2 G00 Z-[ROUND [#100] + ROUND [#101]];

N3 G#l;

• • • • Recovering the G code

M99;. .

Advertising