Yaskawa YASNAC PC NC Programming Manual User Manual
Page 305

4 - 168
YASNAC PCNC Programming Manual
Chapter 4: Enhanced Level Commands
(c) Example of control instructions using modal information
With the programs indicated above, the Z-axis returns to the initial point level. When giv-
ing the commands for initial point level return (G98) and R-point level return (G99), it is
possible to change the command that specifies the tool return level according to the
present mode (G98 or G99); the present mode is found by checking the modal informa-
tion. For this check, modal information variable can be used.
•
System variable #4010 should be used since G98 and G99 are G code of 10-group.
•
To change the tool return level command, use “IF • • • GOTO • • • command.
•
It is possible to retain the G code of 0-group, which is valid before the execution of a
macroprogram, after the execution of the macroprogram. “G codes of 01-group”
means G00, G01, G02, G03.
Example of macroprogram call up program
G91 G99;
G65 P9000 R–80. Z–40. U3.0 F250;
G65 P9082 X-100 Y50.;
G65P9082X • • • • • Y • • • • •;
• • • • •
G98;
G65P9082X • • • • • Y • • • • •;