Table 4.4.2.2 p and l commands – Yaskawa YASNAC PC NC Programming Manual User Manual

Page 253

Advertising
background image

4 - 116

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

By specifying “G65 P • • • L • • • <argument specification>;”, the microprogram which is
assigned the program number specified with P is called up and executed L times.

If it is necessary to pass arguments to the called up microprogram, these arguments can be
specified in this block.

Table 4.4.2.2

P and L Commands

t Argument Specification

A real number is assigned to the local variable that corresponds to the level of the called up microprogram.
When specifying arguments, G65 must be placed before all arguments.
Commands specified before G65 are processed as normal commands and the program jumps to the called up
microprogram after the completion of these commands.
For details, refer to item (9) “Specifying Argument”.

(2) Modal Call Up (G66, G67)

The modal call up commands set the mode for calling up a microprogram. The specified
microprogram is called up and executed when the specified conditions are satisfied.

By specifying “G66 P • • • L• • • <argument-specification>;”; the mode for calling up
the microprogram is set. Once this block is executed, the microprogram which is
assigned the program number specified with P is called up and executed L times after
the completion of move commands.

If an argument is specified, the argument is passed to the microprogram each time it is
called up as with the simple call up of a microprogram. The correspondence between
the address of argument and local variables is the same as in the case of simple call up
(G65).

G67 cancels the G66 mode. When arguments are specified, G66 must be specified
before all arguments. If G66 is specified, G67 must be specified in the same program
corresponding to it.

Address

Description

Number of Digits

P

Program number

5 digits

L

Number of repetitions

9 digits

Advertising