Yaskawa YASNAC PC NC Programming Manual User Manual

Page 255

Advertising
background image

4 - 118

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

·

Max. 24 pairs

(b) Specifying arguments

It is possible to specify arguments in the M code macroprogram call up block. In this
case, it is not allowed to specify axis move commands in the same block.

If more than one M code is specified in a single block, the first M code is checked whether
it is for microprogram call up. Concerning the second and later M codes, if the setting for
parameter pm4020 D5 is “call up with argument specification”, the use of them is deter-
mined by the setting for a parameter whether they are treated as a normal M code or as M
code used for specifying an argument.

When an M code used for microprogram call up is executed, M code or MF which is out-
put for normal M code is not output.

(5) Microprogram Call Up by S Code

(a) Microprogram call up format

By specifying “S*****”, it is possible to determine whether the specified S command
should be treated as a normal S command or a microprogram call up S command by the
setting for parameter pm4888. If “pm4888 = 0”, the S command is treated as a normal S
command.

When using an S command for calling up a microprogram, one required program number
can be set. In this case, the S command value is used as the argument of common variable
#147. Designation of other arguments is not allowed.

1
2



23
24

pm4504

(max. 4 digits)




pm4527

pm4864

(max. 5 digits)




pm4887

pm4020 D5 = 0

Call up without argument specification

pm4020 D5 = 1

Call up with argument specification

pm4020 D6 = 0

Normal M code

pm4020 D6 = 1

M code for specifying argument

Advertising