Type: |
Function block |
Available as of: |
V1.0.1.0 |
The FB_VisController is used to transfer the data (PackTags) from the application into the data structure of type ST_VisInterface which is used by the visualization frames provided with the PackML library. Further, the function block implements functions to control the appearance of the visualization. For example: the scrolling through the alarm list and the control of state-dependent background colors for alarms.
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
Activation and initialization of the function block. |
i_pstStatus |
POINTER TO ST_Status |
Through this input, the pointer address to the PackTags of type ST_Status is passed to the function block. |
i_pstAdmin |
POINTER TO ST_Administration |
Through this input, the pointer address to the PackTags of type ST_Administration is passed to the function block. |
i_diNumberOfModes |
DINT |
Number of operation modes. If the value is changed, a reinitialization of the function block is required. |
i_pstInitMode |
POINTER TO ST_UnitModeDefinition |
Through this input, the pointer address to the unit mode definitions is passed to the function block.* * The unit mode definition provides the state definitions for each available operation mode and must be provided in an array of ST_UnitModeDefinition. The indexes of the array correspond to the numeric value of the available control modes (refer to ET_Modes). Therefore, the pointer must point to the index which is associated to the operation mode Producing, which is the first mode. |
Input / Output |
Data type |
Description |
---|---|---|
iq_stVisInterface |
Through this input / output, the variable is passed to the function block which is linked to the visualizations provided in the PackML library. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
If this output is set to TRUE, the function block is active. |
q_xReady |
BOOL |
If this output is set to TRUE, the function block is ready for operation. |
q_xError |
BOOL |
If this output is set to TRUE, an error was detected. |
q_etResult |
ET_Result |
Result. Refer to ET_Result. |
q_sResultMsg |
STRING[80] |
Additional result message. |