4 Understanding Programming
4-10
CP2E CPU Unit Software User’s Manual(W614)
4-3-3 Function Block Specifications
Item Specifications
Defining and creat-
ing function blocks
Number of function
block definitions
64 max.
Function block
names
32 characters max.
Variables Variable names 15,000 characters max.
Variable types Input variables (Inputs), output
variables (Outputs), internal vari-
ables (Internals), and external
variables (Externals)
Number of variables used in a
function block (not including
internal variables, external vari-
ables, EN, and EN0)
Maximum number of variables
per function block definition
• Input-output variables: 16
max.
• Input variables + input-output
variables: 64 max.
• Output variables + input-out-
put variables: 64 max.
Allocation of addresses used by
variables
Automatic allocation (The alloca-
tion range can be set by the
user.)
Actual address specification Supported
Array specifications Supported (one-dimensional
arrays only and only for internal
variables)
Language Function blocks can be created in ladder programming language or
structured text.
Creating instances Number of
instances
128 max.
Instance names 15,000 characters max.
FB Program Area Eîš…îš…-type: 4K steps, Sîš…îš…-type: 8K steps, Nîš…îš…-type: 10K steps
Storing function
blocks as files
Project files The project file (.cxp/cxt) Includes function block definitions and
instances.
Program symbol
files
The file memory program file (*.obj) includes function block defini-
tions and instances.
Function block
library files
Each function block definition can be stored as a single file (.cxf) for
reuse in other projects.