An action is a task to be performed by the ComfileHMI. For example, when a button is pressed an action can be performed to store a value to a specific address in an attached PLC. This is a single action.
A Multi-action performs multiple actions in sequence. For example, when a button is pressed, a value can be written to a PLC, a record of the event can be written to a file, and the sound can be played.
The various types of actions available are shown below.
Literal values or variables can be written to a memory location in an attached device 1).
Data can be read from a memory location on an attached device and stored to a variable.
Information can be written to a log file. The following example illustrates writing a variable, CurrentTemperature to a log file named log.txt on the ComfileHMI's mciroSD card.
Text can be concatenated to form a single line in the log file.
The Log to File feature can also be used to make screen captures.
For creating, modifying or deleting files.
Variables can be loaded from or stored to a file.
For modifying the date and time, or running a touchscreen calibration.
First, an action group must be registered and given a unique name. In the illustration below the variable ABC will be initialized with the value 0.
Then the event can be used in a multi-action list.
Use the Advanced Options to configure repetition.
This action can be used to stop an action group that was specified to execute repeatedly.
Waterproof front-panel models can output audio in .wav file format.
Open-frame models have a piezo buzzer for sounding beeps.
The Run Script action can be used to write a small script to be executed when a button is pressed. These scripts can contain complex logic and expressions for reading and/or writing variables. Expressions should be separated by semicolons.
The Keypad action will display a keypad so an operator to enter numeric input.
An action can be activated dynamically by specifying a conditional expression.
So, this action is only executed if the condition is satisfied.