VisualizationsΒΆ

The visualization can be used to display the function block outputs. If the input EN_VISU of a function block is TRUE, it is also possible to control the inputs from the visualization. In order to allow the control of function block inputs from the program as well as from the visualization, these inputs are declared as VAR_IN_OUT and consequently have to be provided with variables. These inputs must not be provided with direct constants.

Example visualization visuDC541_32BIT_CNT

Integrated visualization of function block DC541_32BIT_CNT

../_images/e7282522e389d4e10a33139000eba54e

Offline mode

../_images/9f750580e389d52f0a33139000eba54e

Online mode, EN_VISU = TRUE

If an error occurred during function block processing, the error number is displayed in the top right until EN = FALSE.

../_images/0316a886e389d57d0a33139000eba54e

Online mode, EN_VISU = FALSE. The inputs cannot be modified using the visualization.

  1. In the Visualizations tab, add an object.

  2. Click on fd5f0120e389e4c90a33139000473a6a_65a01a5be389e0950a33139000eba54e .

  3. Select the corresponding visualization for the function block.

    β‡’
    ../_images/77986eabe389e0470a33139000eba54e
  1. Right-click on the visualization and select Configure.

    β‡’
    ../_images/25534296e389e0f20a33139000eba54e
  2. Under Frame, we recommend to select Fixed to maintain the original width-to-height ratio and font size.

  3. Link the visualization to the function block instance

    Click the Placeholder button.

  4. In column Replacement, enter the function block instance directly or press F2 to open the input assistant.

    β‡’
    ../_images/0efd2dc1e389e1500a33139000eba54e
  5. Click OK to close all dialogs.

  6. Adapt the visualization to the correct size.