Files Created With Cx-Programmer Ver. 5.0 - Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual

Function blocks
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
1-1-3

Files Created with CX-Programmer Ver. 5.0

Project Files (*.cxp) and
File Memory Program
Files (*.obj)
4
Number of
CS1-H/CJ1-H CPU Units:
function block
• Suffix -CPU44H/45H/64H/65H/66H/67H: 1,024 max. per CPU Unit
definitions
• Suffix -CPU42H/43H/63H: 128 max. per CPU Unit
CJ1M CPU Units:
• CJ1M-CPU11/12/13/21/22/23: 128 max. per CPU Unit
Function
64 characters max.
block names
Variables
Variable names
Variable types
Number of I/O variables in
function block definitions
Allocation of addresses
used by variables
Actual address specifica-
tion
Array specifications
Language
Function blocks can be created in ladder programming language or structured
text (ST, see note).
Number of
CS1-H/CJ1-H CPU Units:
instances
• Suffix -CPU44H/45H/64H/65H/66H/67H: 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
Instance
30,000 characters max.
names
Project files
The project file (.cxp/cxt) Includes function block definitions and instances.
Program files
The file memory program file (*.obj) includes function block definitions and
instances.
Function
Each function block definition can be stored as a single file (.cxf) for reuse in
block library
other projects.
files
Note
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, and comments.
For details, refer to Appendix B Structured Text (ST Language) Specifications.
Projects created using CX-Programmer that contain function block definitions
and projects with instances are saved in the same standard project files
(*.cxp) and file memory program files (*.obj).
The following diagram shows the contents of a project. The function block def-
initions are created at the same directory level as the program within the rele-
vant PLC directory.
Specifications
30,000 characters max.
Inputs, Outputs, Internals, and Externals
64 max. (not including EN and ENO)
Automatic allocation (The allocation range can
be set by the user.)
Supported
Supported (one-dimensional arrays only)
Section 1-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents