Variable Names; Dynamic Variable Names; Static Variable Names - Omron SCARA YRCX Series Programming Manual

Robot controller
Hide thumbs Also See for SCARA YRCX Series:
Table of Contents

Advertisement

3

Variable Names

3.1

Dynamic Variable Names

Dynamic variables can be named as desired, provided that the following conditions are satisfied:
The name must consist only of alphanumeric characters and underscores (_). Special symbols
cannot be used.
The name must not exceed 32 characters (all characters beyond the 32th character are ignored).
The name must begin with an alphabetic character.
SAMPLE
COUNT
COUNT123
2COUNT
Variable names must not be the same as a reserved word.
Variable names must not begin with characters used for system variable names (pre-defined
variables) and user-defined function. These characters include the following:
FN, DIn, DOn, MOn, LOn, TOn, SIn, SOn, Pn, Sn, Hn ("n" denotes a numeric value)
SAMPLE
COUNT
ABS
FNAME
S91
REFERENCE
3.2

Static Variable Names

Static variable names are determined as shown below, and these names cannot be changed.
Variable Type
Integer variable
Real variable
Static variables are cleared only when initializing is executed by online command.
REFERENCE
························ Use is permitted
························ Use is permitted
························ Use is not permitted
························ Use is permitted
························ Use is not permitted
························ Use is not permitted
························ Use is not permitted
For details regarding reserved words, refer to Chapter 13 "1 Reserved word list".
Variable Name
SGIn (n: 0 to 31)
SGRn (n: 0 to 31)
For details regarding clearing of static variables, refer to "12 Clearing variables" in
this Chapter.
(Reserved word)
(FN: user-defined function)
(Sn: pre-defined variable)
Variable Names
1
2
3
4
5
6
3-3

Advertisement

Table of Contents
loading

Table of Contents