Yaskawa YASNAC PC NC Programming Manual User Manual

Page 265

Advertising
background image

4 - 128

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

€ Local variables of level 0 are secured for the main program. For microprograms, local

variables are secured corresponding to the level (level 1 to level 4) of the called up micro-
program.

ó If a microprogram is called up by G65, for example, the local variables used for the pro-

gram where microprogram call up is executed are saved and the local variables are
secured for the called up microprogram corresponding to its level. In this case, the argu-
ments are passed to the called up microprogram.
Consequently, even with the same microprogram, the local variables of the level of that
microprogram have different values if the microprogram is called up in different timing.

ì When the execution of a microprogram returns to the microprogram one level above by

the execution of M99, the local variables of the previous microprogram level are reset to
<empty> and the local variables having been saved are recovered.

ö Your should not change the contents of local variables while a macroprogram is being

executed. If they are changed after interrupting the operation by single block stop, make
sure that the new contents do not cause problems before restarting the operation.

ú Local variables can be used in a subprogram. In this case, the local variables of the

present macroprogram level are used. Argument specification is not allowed when calling
up a subprogram. The contents of the local variables are not reset to <empty>, when the
execution of a program returns from the subprogram by the execution of M99.

Advertising