
13. Program Support Functions
13.4 Variable Commands
295
(2) Type of variables
The following table gives the types of variables.
Type of variable
No.
Function
Common variables
Common
variables 1
Common
variables 2
100 sets
500 to 549
100 to 149
200 sets
500 to 599
100 to 199
300 sets
500 to 699
100 to 199
600 sets
500 to 999
100100 to
800199
(Note 7)
100 to 199
1st part
system
700 sets
400 to 999
(Note 4)
100100 to
800199
(Note 7)
100 to 199
50 + 50 * n sets
500 to 549
100 to 149 * n
100 + 100 * n sets
500 to 599
100 to 199 * n
200 + 100 * n sets
500 to 699
100 to 199 * n
500 + 100 * n sets
500 to 999
100100 to
800199
(Note 7)
100 to 199 * n
Multi-part
system
(n =
number of
part
systems)
600 + 100 * n sets
400 to 999
(Note 4)
100100 to
800199
(Note 7)
100 to 199 * n
•
Can be used in common
throughout main, sub and
macro programs.
•
When using common
variables in the multi-part
system, the number of
common variable shared
between the part systems
can be specified by the
parameter "#1052
MemVal".
(Note 5)
Local variables
1 to 33
Can be used for local
variables in macro
programs.
System variables
From 1000
Application is fixed by
system.
Fixed cycle variables
1 to 32
Local variables in fixed
cycle programs.
(Note 1)
All common variables are retained even when the power is turned OFF.
(Note 2)
When the power is turned OFF or reset, the common variables can be set to <null> by
setting the parameter (#1128 RstVC1, #1129 PwrVC1).
(Note 3)
The common variables are divided into the following two types.
Common variables 1 : Used in common through all part systems
Common variables 2 : Used in common in the programs of the part system
(Note 4)
Address #400s common variable can be used only when the sets of common variable
is "700 sets" and the parameter "#1336 #400_Valtype" is "1". If address #400s
common variable is used when the set of common variable is other than 700 sets or
the parameter "#1336 #400_Valtype" is "0", a program error (P241) will occur.
When common variable address #400s can be used, these can be displayed and set
on the common variable screen.
It is possible to input/output data of common variable address #400s.