8 examples of microprograms – Yaskawa YASNAC PC NC Programming Manual User Manual

Page 302

Advertising
background image

4 - 165

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

4.4.8

Examples of Microprograms

Some examples of microprograms are explained below.

(1) Microprogram in a Canned Cycle

(a) Canned cycle with G82

Example of Programming (PI)

G91;

G82X100. Y50. R-80. Z-40. P3.0 F250;

The commands indicated above are executed according to the following processing in the
NC.

€ All axis move distances should be replaced with variables (local variables: #1 to #33).
ó For local variables, type I and type II variables are provided. When the number of local

variables to be handled is small, it is recommended to use type I local variables which
allow the use of X, Y, and Z, thus facilitating assigning of arguments.

ì By using type I local variables, local variables are assigned to address characters as indi-

cated below.

Here, address P cannot be used for assigning argument. Therefore, address P should be
replaced with another address.

Advertising