Appendices
A-114
NJ-series CPU Unit Software User’s Manual (W501)
This section describes how to count POU instances, variables with a Retain attribute, variables without
a Retain attribute, and data type definitions. The information in this section is provided only as guide-
lines. The methods for counting objects sometimes varies with the unit version of the CPU Unit. Always
use the Sysmac Studio to confirm that user program object sizes are suitable.
POU instances are counted as described below.
Objects Counted as POU Instances
The following objects are counted as POU instances.
• Programs
• Function block instances (both user-created instances and instructions are included)
• Functions (both user-created instances and instructions are included)
Precautions in Counting POU Instances
Observe the following precautions when you count POU instances.
• If n instances of a function block are used for the same function block definition, count them as n
instances.
• If the same function is used more than once in the same task, count them as one instance regard-
less of the actual number of functions.
• If the same function is used in different tasks, count them as one instance for each task.
Variables without a Retain attribute are counted as described below.
Objects Counted as Variables without a Retain Attribute
The following objects are counted as variables without a Retain attribute.
• Global variables without a Retain attribute
• Local variables without a Retain attribute in programs and function block instances (both user-cre-
ated instances and instructions are included)
Precautions in Counting Variables without a Retain Attribute
Observe the following precautions when you count variables without a Retain attribute.
• Count arrays as one variable each regardless of the number of elements.
• Count function block instances as one variable. Both user-created instances and instructions are
included for function block instances.
• Count arrays of function block instances as one variable each regardless of the number of ele-
ments. However, count one variable for each element of the array for the number of variables with-
out a Retain attribute that are used in the function block.
A-10-2 Counting User Program Objects
Number of POU Instances
Number of Variables without a Retain Attribute