Yaskawa YASNAC PC NC Programming Manual User Manual

Page 304

Advertising
background image

4 - 167

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

(b) Calling up a microprogram by using G65

Example of Microprogram Call Up Program (P4)

G91;
G65 P9082

X100. Y50. R–80. Z–40.
U3.0 F250.;

€ Use the example program (P4) as the macroprogram and assign program number

“O9082” to this macroprogram.
O9082;
G00X#24 Y#25;
G00Z#18;
G0lZ#26 F#9;
G04P#21;
G00Z- [ROUND [#l8] + ROUND [#26] ];
M99;

ó With the microprogram indicated above, it is necessary to specify the R-point and Z-

point levels for each execution of the macroprogram. Therefore, another micropro-
gram should be written which specifies the position of the R-point and Z-point levels.

O9000;
#100 = #18;
#101 = #26;
#l02 = #21;
#l03 = #9;
M99;
O9082;
G00X#24 Y#25;
G00Z#l00;
G01Z#l01 FI03;
G04P#l02;
G01Z- [ROUND [#100] + ROUND [#101] ];
M99;

ì The program used to call the macroprograms indicated in item Ç above is indicated

below.

G91;
G65 P9000 R-80. Z–40. U3.0 F250.;
G65 P9082 X100. Y50.;
G65 P9082 X • • • Y • • •;
• • • • •

Advertising