![background image](http://html1.mh-extra.com/html/omron/cs1-h-series/cs1-h-series_operation-manual_742526139.webp)
124
Procedures
Section 3-2
Note
Symbols with automatically generated symbol names (Au
Address
)
cannot be copied from a global symbol table and pasted into the function
block definition symbol table.
3-2-4
Creating Instances from Function Block Definitions
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,2,3...
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.
Input the instance name.
Select the function block from
which to create an instance.
Following dialog
box is displayed.
Instance name
Function block definition
An instance called
sample
is created from the function
block definition called
FunctionBlock1.
Содержание CS1-H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 7: ...viii TABLE OF CONTENTS...
Страница 15: ...xvi Application Precautions 4...
Страница 151: ...136 Procedures Section 3 2...
Страница 153: ...138 Data Types Appendix A...
Страница 177: ...162 External Variables Appendix C...
Страница 181: ...166 Revision History...