User Tools

Site Tools

한국어

comfilehmi:multiaction:index

What is a Multi-action

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.


Write Directly

Literal values or variables can be written to a memory location in an attached device 1).


Copy from Device to Variable

Data can be read from a memory location on an attached device and stored to a variable.


Log to File

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.

  • Be sure to specify the Storage Card folder. The files will be stored on the ComfileHMI's microSD 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.


Manage Files

For creating, modifying or deleting files.


Bulk Load/Store Variables

Variables can be loaded from or stored to a file.


Invoke System Settings

For modifying the date and time, or running a touchscreen calibration.


Run Action Group

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.


Stop Iterating Action Group

This action can be used to stop an action group that was specified to execute repeatedly.


Sound Audio/Buzzer

Waterproof front-panel models can output audio in .wav file format.

Open-frame models have a piezo buzzer for sounding beeps.


Run Script

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.


Display a Keypad

The Keypad action will display a keypad so an operator to enter numeric input.

Multi-action Conditional Activation

An action can be activated dynamically by specifying a conditional expression.

So, this action is only executed if the condition is satisfied.

Back to ComfileHMI

1)
A PLC or MCU connected to the ComfileHMI hardware
comfilehmi/multiaction/index.txt · Last modified: 2017/06/28 10:24 by COMFILE Technology