Events and functions
An event runs a list of system functions or a JavaScript script.

Element events
Section titled “Element events”Click, double-click, right-click, left and right button press and release, mouse enter and leave, value change, activate and deactivate, key press and release.
Screen events
Section titled “Screen events”Open, close and cycle, which repeats while the screen is open.
System functions
Section titled “System functions”Screens
Section titled “Screens”| Function | Parameters | Action |
|---|---|---|
ActivateScreen |
Screen | Open a screen |
ActivatePreviousScreen |
— | Previous screen |
ActivateHomeScreen |
— | First screen of the project |
ShowPopupScreen |
Screen, X, Y | Screen in a pop-up window |
ShowGeniePopup |
Genie, Substitutions, Title | Genie window, for example Tag=Pump1; Title=Pump 1 |
ClosePopup |
— | Close a pop-up |
ShowAlarms |
— | Active alarms |
ShowAlarmJournal |
— | Alarm journal |
ShowTrend |
Tag | Tag trend for the last hour |
ShowTrendGroup |
Group | Trend group |
ShowTagOverview |
— | Tag overview |
Tags and bits
Section titled “Tags and bits”| Function | Parameters | Action |
|---|---|---|
SetBit, ResetBit, InvertBit |
Tag | Write 1, 0 or invert |
SetBitWhileKeyPressed |
Tag | 1 on press, 0 on release |
SetBitInTag, ResetBitInTag, InvertBitInTag |
Tag, Bit | Operate on a bit of an integer tag |
SetValue |
Tag, Value | Write a value |
IncreaseValue, DecreaseValue |
Tag, Step, Limit | Step with a limit |
InputValue |
Tag | Value input window |
CopyValue |
Target, Source | Copy a value |
Calculations
Section titled “Calculations”| Function | Parameters | Action |
|---|---|---|
LinearScaling |
Target, Source, X1, X2, Y1, Y2 | Linear scaling |
InvertLinearScaling |
Target, Source, X1, X2, Y1, Y2 | Inverse scaling |
ShiftAndMask |
Target, Source, Shift, Mask | Extract a bit field |
Alarms, users, system, scripts
Section titled “Alarms, users, system, scripts”| Function | Parameters | Action |
|---|---|---|
AcknowledgeAllAlarms |
— | Acknowledge all alarms |
AcknowledgeAlarm |
Alarm | Acknowledge one alarm |
ShowLogonDialog |
— | Switch user |
Logoff |
— | Sign out |
ChangePassword |
— | Change password |
ShowMessage |
Text | Message to the operator |
PrintScreen |
— | Print the screen |
ToggleFullScreen |
— | Full screen |
Beep |
— | Sound signal |
StopRuntime |
— | Close the client; the server keeps running |
RunScript |
Function, Argument | Project script function |
RunServerScript |
Function, Argument | Server script function |
Server tasks can use the tag-writing functions, calculations, acknowledgement and RunScript.