Omron CX-PROGRAMMER V8.1 Operation Manual page 32

Function blocks/ structured text
Table of Contents

Advertisement

Introducing the Function Blocks
Item
Functions not
Defining
supported by
and creat-
CX-Program-
ing func-
mer Ver. 4.0
tion blocks
or earlier.
Creating
instances
Storing
function
blocks as
files
Note
Variables
Variable names
Variable types
Number of variables used in
a function block
(not including internal vari-
ables, external variables,
EN, and EN0)
Allocation of addresses
used by variables
Actual address specification Supported
Array specifications
Language
Function blocks can be created in ladder programming language or structured
text (ST, see note).
Number of
CJ2H Units:
instances
CJ2H-CPU6@(-EIP): 2,048 max. per CPU Unit
CS1-H/CJ1-H CPU Units:
Suffix -CPU44H/45H/64H/65H/66H/67H/64H-R/65H-R/66H-R/67H-R: 2,048
max. per CPU Unit
Suffix -CPU42H/43H/63H: 256 max. per CPU Unit
CJ1M CPU Units:
CJ1M-CPU11/12/13/21/22/23: 256 max. per CPU Unit
CP1H CPU Units:
• All models: 256 max. per CPU Unit
CP1L CPU Units:
• CP1L-M/L: 256 max. per CPU Unit
NSJ Controllers:
• SJ@-@@@@-G5D: 2,048 max. per Controller;
NSJ@-@@@@-M3D: 256 max. per Controller
FQM1 Flexible Motion Controllers:
• FQM1-CM002/MMA22/MMP22: 256 max. per Controller
Instance
15,000 characters max.
names
Project files The project file (.cxp/cxt) Includes function block definitions and instances.
Program
The file memory program file (*.obj) includes function block definitions and
files
instances.
Function
Each function block definition can be stored as a single file (.cxf) for reuse in
block library
other projects.
files
The structured text (ST language) conforms to the IEC 61131-3 standard, but
CX-Programmer Ver. 5.0 supports only assignment statements, selection
statements (CASE and IF statements), iteration statements (FOR, WHILE,
REPEAT, and EXIT statements), RETURN statements, arithmetic operators,
logical operators, comparison functions, numeric functions, standard string
functions, numeric string functions, OMRON expansion functions, and com-
ments. For details, refer to SECTION 5 Structured Text (ST) Language Speci-
fications in Part 2: Structured Text (ST).
Specifications
30,000 characters max.
Input variables (Inputs), output variables (Out-
puts), input-output variables (In Out), internal
variables (Internals), and external variables
(Externals)
Maximum number of variables per function block
definition
• Input-output variables: 16 max.
• Input variables + input-output variables: 64 max.
• Output variables + input-output variables: 64
max.
Automatic allocation (The allocation range can be
set by the user.)
Supported (one-dimensional arrays only and only
for internal variables and input-output variables)
Section 1-1
7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents