Omron cx-programmer 5.0-function block operation Benutzerhandbuch

Seite von 183
21
Function Block Specifications
Section 2-1
2-1
Function Block Specifications
2-1-1
Function Block Specifications
2-1-2
Function Block Elements
The following table shows the items that must be entered by the user when
defining function blocks.
Function Block 
Definition Name
Each function block definition has a name. The names can be up to 64 char-
acters long and there are no prohibited characters. The default function block
name is FunctionBlock
@, where @ is a serial number.
Item
Description
Number of function block definitions CS1-H/CJ1-H CPU Units:
• Suffix -CPU44H/45H/64H/65H/66H/67H: 
1,024 max. per CPU Unit
• Suffix -CPU42H/43H/63H: 128 max. per CPU 
Unit
CJ1M CPU Units:
• CJ1M-CPU11/12/13/21/22/23: 128 max. per 
CPU Unit
Number of instances
CS1-H/CJ1-H CPU Units:
• 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
Number of instance nesting levels
Nesting is not supported.
Number of I/O variables
64 variables max. per function block definition
Item
Description
Function block 
definition name
The name of the function block definition
Language
The programming language used in the function block defini-
tion. Select ladder programming or structured text
Variable definitions
Variable settings, such as operands and return values, 
required when the function block is executed
• Type (usage) of the variable
• Name of the variable
• Data type of the variable
• Initial value of the variable
Algorithm
Enter the programming logic in ladder or structured text.
• Enter the programming logic using variables. 
• Input constants directly without registering in variables.
Comment
Function blocks can have comments.
CLOCK PULSE
EN          ENO
(BOOL)  (BOOL)
ON_TIME
(INT)
OFF_TIME
(INT)
Function block definition name