6.6.2 Function Block
A function block generates one or more outputs in response to one or more inputs. To use
function blocks, variables (instances) must be declared.
For example, use the following procedure to create function block
"FB_ADD", which uses three
INT type variables as inputs and outputs the sum of three arguments, and to invoke an
instance.
1. Right-click the
[Application] object in the navigator pane and then select Add Object>POU
from the context-sensitive menu that is displayed.
The "Add POU" dialog box will be displayed.
2. Select the "Function block
" check box, enter a name in the Name field, and select a
programming language from the Implementation Language drop-down list.
In the Name field, specify a function block name. In the Implementation Language drop-
down list, select a programming language that is used to code function block processing.
6.6 Function and Function Block
6-36 WUME-GM1RTXOP-01