l
Function Block Instance
When you place an instance of a function block definition in a program or another function block,
the function block definition is treated as a part of that program or function block.
Function block definitions that are called from a program or another function block are called
"instances".
Every instance of a function block has an identifier known as an instance name associated with it,
and every instance uses memory.
You can use a single function block definition to create more than one "instance". This allows you
to process different I/O data with the same function.
Instance name
Instance name
Algorithm
FB1
FB1_1
Algorithm
FB1
FB1_2
Program POU
Variable
declarations
Variable
declarations
Memory area
Memory for
instance
FB1_2
Memory for
instance
FB1_1
Function block definition name
Memory area
reserved.
Function block definition name
Memory area reserved.
If you place instance names
FB1_1
and
FB1_2
for function block FB1 in the program, each in-
stance requires its own space in memory.
"Instances" cannot be read from other programs or function blocks. If an instance with the same
name as another instance is placed in a different program or another function block, that instance
will operate as a completely separate instance.
Precautions for Correct Use
In the following conditions, a user-defined function block will cause an error during the program
check when the program is built.
• The same function block instance was called more than once in the POU.
• The instance of the function block was registered as a global variable.
6 Programming
6 - 9
NX-series Safety Control Unit User's Manual (Z930)
6-1 POUs (Program Organization Units)
6
6-1-5
Details on Function Blocks
Содержание NX-SIH400
Страница 4: ...Introduction 2 NX series Safety Control Unit User s Manual Z930 ...
Страница 46: ...Revision History 44 NX series Safety Control Unit User s Manual Z930 ...
Страница 108: ...2 Specifications 2 42 NX series Safety Control Unit User s Manual Z930 ...
Страница 132: ...3 Installation and Wiring 3 24 NX series Safety Control Unit User s Manual Z930 ...
Страница 148: ...4 Safety Control Unit Operation 4 16 NX series Safety Control Unit User s Manual Z930 ...
Страница 216: ...5 System Configuration and Setup 5 44 NX series Safety Control Unit User s Manual Z930 ...
Страница 306: ...6 Programming 6 90 NX series Safety Control Unit User s Manual Z930 ...
Страница 378: ...7 Checking Operation and Actual Operation 7 72 NX series Safety Control Unit User s Manual Z930 ...
Страница 390: ...8 Calculating Safety Reaction Times 8 12 NX series Safety Control Unit User s Manual Z930 ...
Страница 412: ...11 Safety Data Logging 11 10 NX series Safety Control Unit User s Manual Z930 ...
Страница 504: ...12 Troubleshooting 12 92 NX series Safety Control Unit User s Manual Z930 ...
Страница 550: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 38 NX series Safety Control Unit User s Manual Z930 ...
Страница 554: ...l I O Map Settings Appendices A 42 NX series Safety Control Unit User s Manual Z930 ...
Страница 558: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 46 NX series Safety Control Unit User s Manual Z930 ...
Страница 564: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 52 NX series Safety Control Unit User s Manual Z930 ...
Страница 623: ...I Index I 1 NX series Safety Control Unit User s Manual Z930 I ...
Страница 625: ......