Function Block Definition; Example: Clock_Pulse; Algorithm; Function Block Specifications - Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual

Function blocks
Table of Contents

Advertisement

Function Block Specifications

2-1
Function Block Specifications
2-1-1
Function Block Specifications
2-1-2

Function Block Elements

Function Block
Definition Name
Item
Number of function block definitions CS1-H/CJ1-H CPU Units:
Number of instances
Number of instance nesting levels
Number of I/O variables
The following table shows the items that must be entered by the user when
defining function blocks.
Item
Function block
The name of the function block definition
definition name
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.
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.
Function block definition name
CLOCK PULSE
EN
ENO
(BOOL) (BOOL)
ON_TIME
(INT)
OFF_TIME
(INT)
Description
• 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
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
Nesting is not supported.
64 variables max. per function block definition
Description
Section 2-1
21

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