Fanuc Series 15i/150i-MA (Programming) Operators Manual

- 614 -
A variable value greater than the number of
controlled axes is undefined.
- System constants #0, #3100 to #3102 (Attribute : R)
Fixed values or constants used with the system can be handled in the
same way as system variables. These constants are referred to as
system constants. The following system constants are supported :
#0 , #3100 [#_EMPTY] Null value
#3101 [#_PI] Circle ratioπ = 3.14159265358979323846
#3102 [#_E] Base of natural logarithm e
= 2.71828182845904523536
- Common variable name setting and specification
With the following command, a name not longer than 8 characters can
be assigned to 50 common variables (#500 to #549) :
SETVN n[ VAR500,VAR501,VAR502, - - - ] ;
n is the start number of common variables to be named. VAR500,
VAR501, VAR502, and so forth are the variable names of variable
number n, n+1, n+2, and so forth. Character strings are separated from
each other by a comma (,). All codes that the system can recognize as
significant information can be used except for control-in and control-
out codes ([ ]), EOB, EOR, and : (used with a program number). Each
common variable name must start with a letter. No common variable
name is deleted when the power is turned off. Set common variable
names are displayed on the custom macro screen in the same way as
with system variable names.
By specifying a set common variable name, the common variable can
be both read and written. When specifying a common variable name,
use the [# common variable name] format for [#VAR500].
This command assigns the following variable names :
Variable Name
#510 TOOL_NO
#511 WORK_NO
A variable name thus assigned can be used in a program. When
assigning 10 to #510, for example, the user can specify
[#TOOL_NO]=10; instead of #510=10;.

Leave a Reply

Your email address will not be published. Required fields are marked *