Creating Instances From Function Block Definitions - Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual

Function blocks
Table of Contents

Advertisement

Procedures
3-2-4

Creating Instances from Function Block Definitions

1,2,3...
124
Note
Symbols with automatically generated symbol names (AutoGen_ + Address)
cannot be copied from a global symbol table and pasted into the function
block definition symbol table.
If a function block definition is registered in the global symbol table, either of
the following methods can be used to create instances.
Method 1:Select the function block definition, insert it into the program, and
input a new instance name. The instance will automatically be registered in
the global symbol table.
Method 2: Set the data type in the global symbol table to "FUNCTION
BLOCK," specify the function block definition to use, and input the instance
name to register it.
■ Method 1: Using the F Key in the Ladder Section Window and Inputting
the Instance Name
1. In the Ladder Section Window, place the cursor in the program where the
instance is to be inserted and press the F Key. (Alternately, select Func-
tion Block Invocation from the Insert Menu.) The New Function Block In-
vocation Dialog Box will be displayed.
2. Input the instance name, select the function block from which to create an
instance, and click the OK Button.
3. As an example, set the instance name in the FB Instance Field to sample,
set the function block in the FB Definition Field to FunctionBlock1, and
click the OK Button. As shown below, a copy of the function block definition
called FunctionBlock1 will be created with an instance name of sample.
The instance will be automatically registered in the global symbol table
with an instance name of sample and a data type of FUNCTION BLOCK.
Press F Key with cursor here.
Following dialog
Input the instance name.
box is displayed.
Select the function block from
which to create an instance.
Instance name
Function block definition
An instance called sample
is created from the function
block definition called
FunctionBlock1.
Section 3-2

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