Flexible SCADA Help
Data

Variables and channels

A variable (tag) is one process value: a pressure, a pump state, a setpoint. It comes from a device channel or lives on the server as a local variable. Here — every variable setting and what it means.

Channels

A channel is a connection to one device or data server. It is created with a right-click on the project → Create → Channel (protocol) and lives in the Protocols branch. A click on a channel opens the table of its variables, a double-click — the channel window. The settings of every protocol are on the Protocols page.

The SIM channel in the “Protocols” branch. A green dot — the channel is connected; red — no connection; grey — polling is off.1
The SIM channel in the “Protocols” branch. A green dot — the channel is connected; red — no connection; grey — polling is off.

Every channel has system variables — they can be shown on windows and used in alarms:

VariableValue
_Sys.<channel>.Online1 — the channel is connected, 0 — not
_Sys.<channel>.CycleMsduration of the last polling cycle, ms
_Sys.<channel>.Errorsthe number of communication errors since the channel started

The channel variable table

The table shows the variables of the channel (or of all channels — click “Protocols”) with live values, quality and time. Above the table are a search by name, description and address, the Tree | List switch (branches by name parts or full names) and buttons:

ButtonWhat it does
+ Variablea new variable of the selected channel
Channel settingsthe channel window (the same — double-click the channel in the tree)
Modbus scannerpolls a range of addresses of a Modbus device and shows where there is data — the chosen ones are added as variables
Browse OPC UAthe address space of an OPC UA server: pick nodes — variables are created with the NodeId, type and description
Import from DBfor an S7 channel: variables of a data block from a TIA Portal source (.db) or STEP 7 (.awl)
Import from ETSfor a KNX channel: group addresses from an ETS export (XML or CSV)
To archive / No archiveappear when row checkboxes are ticked: turn the archive on or off for the selected (what is already written stays until it expires)
Delete selecteddelete the ticked variables
CSV ▾export the table to CSV for Excel or load it from CSV (by column headers, as in the export): this is how variables are created by the hundred

The checkbox in the header ticks everything found by the search, Shift+click on a checkbox ticks a range of rows. At the end of a row are the “Edit”, “Duplicate to the next address” and “Delete” icons: a copy gets the next name and the next address (DB1.DBW4 → DB1.DBW6, IOA 10 → 11).

The variables of the SIM channel with live values.
The variables of the SIM channel with live values.

Table cells are selected with the mouse as in Excel: Ctrl+C copies them, Ctrl+V pastes from Excel — a quick way to edit addresses and descriptions of many variables.

The variable window

A double-click on a variable (or + Variable) opens its window. The “General” and “Processing” sections are the same for every variable; “Value source” depends on the channel protocol.

ParameterValuesMeaning
Nametext e.g. Line1.PressureA unique name in the project. Letters (Latin and Cyrillic), digits, _ . -; the first character is a letter, a digit or _. Dots split the name into tree branches: Line1.Pump.Run — branch “Line1” → “Pump” → “Run”. Windows, trends, alarms and programs refer to the variable by this name.
Descriptiontext What the value is — shown in tips, tables, to the operator, in reports and in alarm texts ({description}).
Unitstext Units: “bar”, “°C”, “%”. Shown next to the value on windows and trends; a trend draws variables with different units on different scales.
Minimumnumber The lower bound of the range: the scale of an analog indicator and a trend, a check of values entered on the screen. Empty — unlimited.
Maximumnumber The upper bound of the range. Empty — unlimited.
Decimal placesnumber 2 · defaultHow many digits to show after the decimal point: 0 — an integer, 2 — 4.25. Storage and the archive are not affected.
The window of a simulator channel variable.
The window of a simulator channel variable.

Value source

The switch at the top of the section: Device channel — the value is read from the channel at an address; Local variable — the value lives on the server (see below). The Channel field is a project channel; next come the address fields of that protocol (see Protocols). The Read now button reads the value at the address immediately — a check without Save.

Numeric variables of protocols have scale and offset: engineering value = raw × scale + offset. For example, a 4–20 mA sensor in a register 0…27648 gives 0…10 bar with a scale of 0.000361690. Writing from the screen converts back.

Processing

ParameterValuesMeaning
Deadbandnumber 0 · defaultA change smaller than this threshold does not count as a change: the value is not sent to clients and programs. Removes the “chatter” of analog signals. Empty or 0 — any change.
Write to archive — history for trends and reportscheckbox off · defaultValues are written to the server archive: trends show the past, reports calculate averages and totals. Without it a trend only shows values from the moment it was opened. Archiving settings — on the Value archive page.
Write to the database — for MES, BI and enterprise reportscheckbox off · default
Allow writing from the screencheckbox off · defaultThe operator can change the value with buttons and input fields (if their role has the “Control” permission). Without it input elements show the value but do not write.

Simulator

The Simulator channel generates values by a formula — to build and check windows, alarms and trends without a device. The value is recalculated with the channel update period.

ParameterValuesMeaning
FunctionSine · defaultSawtoothSquare waveRandom walkCounterThe waveform (see the table below).
Amplitudenumber 10 · defaultThe span: for the sine — the deviation from the offset, for the sawtooth and the square wave — the height, for the random walk — how far it may move from the offset.
Offsetnumber 0 · defaultThe average value (sine, random walk) or the lower one (sawtooth, square wave).
Period, snumber 10 · defaultThe duration of one signal cycle. At least 0.1 s.
Noisenumber 0 · defaultA random addition of ± noise to every value — a “living” sensor.
FunctionFormulaExample
Sineoffset + amplitude · sin(2π · t / period)frequency 45 ± 5 Hz: amplitude 5, offset 45
Sawtoothoffset + amplitude · (fraction of the period): rises from the offset to offset + amplitude and drops backtank level, filling and draining
Square wavethe first half of the period — offset + amplitude, the second — offseta digital 1/0 signal: amplitude 1, offset 0
Random walkevery step — a random shift of ±2.5 % of the amplitude, within offset ± amplitudepressure, temperature
Counter+1 every stepa pulse counter, operating hours

Local variables

A local variable lives in the server core without a device: a setpoint, an operating mode, a calculation result, a flag. It is visible in the whole project — on windows, trends, in alarms and in C#, ST and FBD programs (there — with its own IEC 61131-3 type). It is created with the Local variable button in the menu bar, right-click a folder → Create → Local variable, or with the “Local variable” switch in the variable window.

ParameterValuesMeaning
Retain value — after applying the project and restarting the server, continue from the last value rather than the initial onecheckbox off · defaultThe last value survives a server restart and Save — for setpoints and modes set by the operator. Without it, after a restart — the initial value.
TypeBOOL — boolean (0 / 1)INT — 16-bit integerUINT (WORD) — 16-bit unsigned integerDINT — 32-bit integerUDINT (DWORD) — 32-bit unsigned integerREAL — 32-bit floating pointLREAL — 64-bit floating point (default) · defaultSTRING — stringThe IEC 61131-3 type. A value written from the screen or a program is converted to the type: 3.7 becomes 4 in an INT, any non-zero value becomes TRUE in a BOOL.
Initial valuenumber 0 · defaultThe value at project start (FALSE or TRUE for BOOL, the initial text for STRING).
The window of a local variable.
The window of a local variable.
TypeRangeUsed for
BOOL0 / 1 (FALSE / TRUE)flags, commands, on/off modes
INT−32,768 … 32,767counters, mode numbers
UINT (WORD)0 … 65,535status words, bit masks
DINT−2,147,483,648 … 2,147,483,647large counters
UDINT (DWORD)0 … 4,294,967,295double words, masks
REAL±3.4·1038, 7 significant digitssetpoints, calculations
LREAL±1.8·10308, 15 significant digitsthe default: any number
STRINGup to 10,000 characterstext: a recipe name, a message; not archived

Value quality

Every value has a quality, as in OPC UA:

QualityWhat it meansHow it looks
Goodthe value came from the device and is validnormal appearance
Uncertaindoubtful: the device reported a sensor fault, the value is stalethe value is paler, the tip says why
Badno connection to the device, address not found, read errorthe value is crossed out or “—”, elements get a frame

Object variables (Substation.CircPump1.Run) are created by the object itself: their name, type, units and binding are set by the object and its type. In the window of such a variable only the archive, the deadband and value retention can be changed. Details — Objects and types.