EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F Series - Page 25

Mitsubishi Electric MELSEC iQ-F Series
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3 PROGRAM ORGANIZATION UNITS
3.3 Function Blocks (FB)
23
3
Creating instances
A function block needs to be instantiated to be used in programs.
By creating instances, a function block can be called and executed by a program block or another function block.
Declare instances with global labels or local labels.
*1 Local labels can be declared as the local labels of a program block or function block. Local labels cannot be declared in a function.
Same function blocks can be instantiated with different names in a single POU.
Label type Instance type Class
Global label Global FB VAR_GLOBAL
Local label
*1
Local FB VAR
(1) Same instances use the same internal variables.
(2) Different instances use different internal variables.
wLabel1
wLabel2
wLabel3
wLabel5
wLabel6
wLabel8
wLabel9
wLabel7
wLabel1
wLabel2
wLabel3
wLabel5
wLabel6
wLabel8
wLabel9
wLabel7
wLabel10
wLabel11
wLabel12
wLabel5
wLabel6
wLabel8
wLabel9
wLabel7
wLabel4
wLabel4 wLabel13
(2)
(1)
Instance A
Function block
Instance A
Function block
Instance B
Function block
Input variable 1
Input variable 2
Output variable
Input variable 3
Local variable
Input variable 2
Output variable
Input variable 3
Local variable
Input variable 1
Input variable 1
Output variable
Input variable 1
Local variable
Input variable 1

Other manuals for Mitsubishi Electric MELSEC iQ-F Series

Related product manuals