A-115
Appendices
NJ-series CPU Unit Software User’s Manual (W501)
A-10 Size Restrictions for the User Program
App
A-10-2 Counting User Program Objects
Variables with a Retain attribute are counted as described below.
Objects Counted as Variables with a Retain Attribute
The following objects are counted as variables with a Retain attribute.
• Global variables with a Retain attribute
• Local variables with a Retain attribute in programs and function block instances (both user-cre-
ated instances and instructions are included)
Precautions in Counting Variables with a Retain Attribute
Observe the following precautions when you count variables with a Retain attribute.
• Count arrays as one variable each regardless of the number of elements.
• Do not count arrays of function block instances. However, count one variable for each element of
the array for the number of variables with a Retain attribute that are used in the function blocks.
Data type definitions are counted as described below.
Objects Counted as Data Type Definitions
The following objects are counted as data type definitions.
• User-created structure definitions
• User-created union definitions
• User-created enumeration definitions
Number of Variables with a Retain Attribute
Number of Data Type Definitions