Home

mlamp

Download project

Visu Dialog ST

This project contains three example applications relating to the visualization of dialogs
with the language "Structured Text (ST)".

More information

Application DialogVarInOut

This example shows how dialogs can be opened and how input values can be read and checked by an event handler.

The event handler IEditBoxInputHandler is set in the main program PLC_PRG. The method VariableWritten
is called after an input value is set. The range of the input value is checked by the method CheckValue of the
function block ControlFB. The OK-Button is active if the variable pVar is less than 100.
Notice that the function block ControlFB is passed to the frame by the attribute VAR_IN_OUT_AS_POINTER.

Application FileDialog

This example shows how file dialogs can be opened by program (ST) via the DialogManager.

The file filter and an instance of the function block Visu_FbFileListProvider is created in the program PLC_PRG.
The function block Visu_FbFileListProvider is used by the dialog to list and filter files. The function
OpenFileDialog sets theVisu_FbFileListProvider and opens the dialog. After selecting a file, the name
of the file is displayed in the visualization.

Application IECOpenDialog

The example shows how to open dialogs via the library Visu Utils.

System requirements and restrictions

System requirements and restrictions Info
Programming System CODESYS Development System V3.5.16.1 or higher
Runtime System CODESYS Control V3.5.16.1
Required Accessories -