EasyManua.ls Logo

YASKAWA yasnac lx3 - Page 76

YASKAWA yasnac lx3
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2. 8.23.1 Macro Program Call Commands (Cent’d)
S ample Program
1
G66 P9400 ;
GOO X1O. ;
@
G66 P9500 ;
GOO Z20. ;
@
G67 ;
G67 ;
GOO Z30. ;
o
Main Program
09400 ;
17
GOO X40. ;
+=
@
0
Macro
GO(J z50. ;
M99 ;
Id
09500 ;
GOO x60. ;
*I
@
o
Macro
GOO Z70. ;
-l
J
M99 ;
The above sample program is executed in the
following order:
2. 8.23.2 Argument Designation
Argument is the real value to be assigned to a
variable used in the macro program body.
Ar-
gument designation, therefore, is the act of
assigning real values to variables,
Argument
designation is of type I and type II, which can
be selected as required.
(1) Argument Designation I
Argument may be designated in any address ex-
cept for G,
L, N, O,and P.
The relationships
between the argument designation addresses and
the variables are as shown below .
Address of
Argument Designation I
A
B
c
D
E
F
H
I
J
K
M
Q
R
s
T
u
v
w
x
Y
z
Variable in
Macro Program Body
M
#2
#3
$7
:8
#9
#11
#4
;:
$13
Z17
k18
?19
420
?!21
#22
#23
#24
#25
#26
For the address in which
designated ,
the command
Sample Program
#1 #2
++
G65 P91OO L3 A30 B60
no argument need
may be omitted,
#24
#26
+ +
x34.8 z50.2 ;
be
I
Argument Designation
P art
(2) Argument Designation D
A, B, and C arguments and 10 sets of I, J, and
K arguments may be designated.
I, J, and K
must be designated in this order.
The relation-
ships between the argument designation address–
es and the variables are as shown below .
Address of
Argument Designation H
A
B
c
11
J,
K,
12
Jz
K~
Is
J3
K3
Id
J4
K4
Is
Js
K5
1~
Je
KG
IT
J7
K,
1~
J8
K8
19
J9
Kg
1,~
JIO
K,.
Variables in’
User Macro Body
#l
72
#3
*4
85
#6
87
*8
?49
$10
*11
*12
#13
#14
#15
#16
#17
#18
#19
%20
#21
#22
#23
$24
$25
#26
$27
$28
#29
WI
#31
#32
K33
The suffixes 1 through 10 to 1, J, and K are de-
termined by the order of the designated 1, J,
and K combinations.
For the address in which no argument need
be designated, the command may be omitted.
68

Other manuals for YASKAWA yasnac lx3

Related product manuals