EasyManua.ls Logo

YASKAWA yasnac lx3 - Page 86

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.4 Variables (Cent’d)
(4) Variable Representation
Each variable is represented in a variable number
that follows #.
a.
How to designate a number directly:
#i(i=l ,2,3, 4,...)
me
#lo
#130
#2000
b.
How to designate an expression as a variable
number:
# [ <expression>]
&22E&
#
[#loo]
# [#500 + 1]
# [#2012J
In the following description, variable #i may be
replaced with variable #[< expression >].
(5) Variable Reference
a.
The value that follows an address may be
replaced by a variable.
When < address> #i or <address> -#i is specified,
the value of the variable or its negative value
(complement, more exactly) is made the specified
value of the address .
Es!2P.k
#30= l.o;
#lol = 100. ;
#lo3 = 300. ;
#140 = o. 3 ;
G#30 X#lOl Z-#102 F#140 ;
The above specification is equivalent to the
specification below.
GO1 x1OO. Z-300. FO.3 ;
Notes:
1. Address / , 0, and N may not refer to varia-
bles .
Sample
/#8, N#100 . . . Error.
2. A variable number may not be replaced with
a variable.
Sample
##20 . . . Error.
#[ #20] . . . Correct.
Sample
(i) When #l = 45.2346
x#l ...
= X45.235 mm (for metric input)
(ii) When #2 = O. 255
F#2 ...=
FO. 26 (mm/rev)
(iii) When #3 = 5.37672
G04 P#3 ...
= G04 P5, 377 (see)
(iv) When #4 = 2.7236
M#4 . . . M03
GW. ..GO3
4. Value for each address should not exceed
the maximum programmable value.
5. The value that follows an address may be
replaced with <expression >.
(J. The constant without decimal point enclosed
in brackets [
] is assumed to have a decimal
point at its end.
(6) Undefined Variable
The value of an undefined variable is assumed to
be “blank. An undefined variable occurs in the
following situations:
a.
The local variable for which argument desig-
nation was not performed in macro call command.
b.
Common variables #100 through #149 at the
time of power–on and reset operations.
c. The local variables and common variables
for which the values were not written from MDI
panel.
3. When a variable is used as address data, the
values below the least significant digit are round-
ed.

Other manuals for YASKAWA yasnac lx3

Related product manuals