Yaskawa YASNAC PC NC Programming Manual User Manual

Page 257

Advertising
background image

4 - 120

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

Table 4.4.2.8

Parameter Used for Microprogram Call Up by B Code

When a microprogram call up B command is executed, B code and BF are not output as a nor-
mal B code. The B command is a 4-digit command.

When microprogram call up is specified with G, M, S, T, and/or B entered in one block, the
execution priority is “G > M > S > T > B”.

G • • • R • • • T • • • S • • • B • • •;

If the commands are specified as indicated above, only “G • • •” is valid and M, S, T,
and B are disregarded. This does not cause an alarm.

B • • • S • • • T • • • M • • • G • • •;

This block of commands is processed in the same manner. That is, the G command is
given priority for the execution of the program independent of the order of the speci-
fied microprogram call up commands.

(8) Nesting of Macroprogram Call Up

As with subprograms, it is possible to call up a microprogram from another microprogram. In
this type of call up, nesting level increases one each time a microprogram call up is executed
by G65, G66, G, M, S, T, or B code. The allowable maximum nesting level of microprogram
call up is four.

(a) Nesting level of microprogram call up

With a microprogram called up by G, M, S, T, and B codes, the allowable nesting level is
one. In other words, from a microprogram called up by G, M, S, T, or B code, call up of
another microprogram using G, M, S, T, or B code again is not allowed. If G, M, S, T, or
B code is specified in a microprogram which has been called up by the execution of
microprogram call up G, M, S, T, or B code, an alarm occurs in the case of a G code and
with other codes (M, S, T, and B), they are executed as normal M, S, T, and B codes.

(b) Modal call up (G66)

In the modal call up mode, the specified microprogram is called up and executed at each
execution of a move command. If more than one G66 is specified in the same program,
the prior G66 command specified is valid during the execution of a microprogram called
up by the G66 command given later. Therefore, after the execution of a move command
given in the microprogram called up by G66 specified later, the microprogram specified
with the previous G66 is also executed. In other words, the macroprograms are executed

Common Selection

Call Up Program Number

Normal B command

pm4890 = 0

Macroprogram call up B command

pm4890 max. 5 digits

Advertising