Introduction
In addition to inputs/outputs, some function blocks also provide public variables.
These variables transfer statistical values (values that are not influenced by the process) to the function block. They are used for setting parameters for the function block.
The assignment of values to public variables is made via their initial values.
Public variables are read via the instance name of the function block and the names of the public variables.
Assigning Values to Public Variables
Carry out the following steps to assign a value to a public variable:
Step |
Action |
---|---|
1 |
Place a function block in the section, see also Calling an FFB via the data selection. |
2 |
Open the data editor, see also Data Editor Access. |
3 |
Select the tab.Result: The function block instances are displayed. ![]() |
4 |
Expand the display of the public variables by clicking the respective + symbols. Result: You can now see all available public variables of the function block. ![]() |
5 |
Enter the desired value for the public variable in the box. |