bluelog Neo
English German
English German

Telecontrol formula editor

Last modified:


Note: Beta feature

Telecontrol is currently available as a beta feature

About the formula editor

The Formula editor is a graphical interface that allows you to create visual graphs. Using the nodes in the editor, you can create a formula (calculation rule) and select the values you want to use in the formula. Examples of common formulas:

  • Forward setpoints (command telegrams) to the bluelog PPC.

  • Submit values (information telegrams) from the plant to the grid operator (general interrogation/group interrogation/cyclic or reactive transmission).

  • Limit remote switch events to the site, e.g. do not switch if a person is on-site.

  • Calculate values that are not available by default in the bluelog, but which are required by the grid operator.

overview of the formula editor
Overview of formula editor

Item

Description

1

Nodes for the formula

List of available nodes.

2

Input slot

Connection point on a node that receives data from another node's output. An input slot can only have one connection at a time.

3

Output slot

Connection point that sends data to the inputs of one or more nodes. An output slot can have multiple connections at a time.

4

Connection

Connection between two nodes.

About nodes

  • Nodes are the building blocks for formulas. The links between nodes represent data flow. The visual graph represents the formula.

  • Depending on its individual properties, each node can have slots that allow you to connect the nodes and add operations.

  • Drag a node into the right-side area using drag & drop.

  • You can only link input slots (left side of the node) to output slots (right side of the node).

  • You can link nodes if the data type allows it. For example, a boolean can not be connected to a date or time data type.

  • Where relevant, double-click on the node to edit its properties. Alternatively, select the node and edit the properties via the Properties tab in the side bar.

  • To remove a node, select it, then select Remove. Alternatively, select the node and hit “delete” on your keyboard.

Node types

The formula editor has the following types of nodes:

Telecontrol-specific nodes

Node

Description

Properties

Input slots and selection

Output slots

Input value

Value of a configured value point in the formula

  • Last changed

  • Metadata: additional information for the formula simulation, e.g. Last changed.

Selection:

  • Value point: select the required input value point

  • Value

Output value

Submit a (calculated) value to an output value point

  • Metadata: additional information for the formula simulation, e.g. Last changed

Slot:

  • Value

Selection:

  • Value point: Select the required output value point


IEC return value

Submit (calculated) values to the grid operator.


Slots:

  • Value

  • Timestamp

Quality bits (COT):

  • Negative Confirmation

  • Blocked

  • Replaced

  • Outdated

  • Invalid

  • Overflow

  • Elapsed

  • Adjusted

  • Carry

  • Transient

  • Elapsed time


IEC command

Receive a command from the grid operator to perform an action on-site.

Examples:

  • P/Q setpoint

  • Switch commands



  • Value

  • Value (bit 1)

  • Value (bit 2)

  • COT

  • Timestamp

  • Command Qualifier

  • Select/Execute

IEC command output


Return quality bit information via IEC for command telegrams


Slots:

  • Negative Confirmation

  • Blocked

  • Replaced

  • Outdated

  • Invalid

  • Overflow

  • Elapsed

  • Adjusted

  • Carry


Display calculated values

Watch and display multiple (calculated) values at once to test the formula. Simulation mode only.


Slot:

  • Connect to a value to read and display data


Scale value range

Scales an input value from a defined source range to a corresponding value in a target range, e.g. to calculate an alternative output or a percentage.

  • Input min

  • Input max

  • Output min

  • Output max

Slot:

  • Value (input)


  • Scaled value

Basic nodes

Node

Description

Properties

Input slots and Selection

Output slots

Time

Current time for time-dependent functionality of the formula.



  • Time (ms)

  • Time (s)

Constant number

Constant numeric value.


Selection:

  • Value (number)

  • Value

Constant boolean

Constant boolean value.


Selection:

  • Value (boolean)

  • True

  • False

Constant string

Constant string value.


Selection:

  • Value (string)

  • Value

Length of value

Returns the length of strings.


Slot:

  • Input

  • Output

Math nodes

Node

Description

Properties

Input slots / Selection

Output slots

Convert to number

Converts any input value to a numeric type


Slot:

  • Input

  • Output

Random value

Generates random numbers within a specified range.

  • min (default 0)

  • max (default 1)


  • Output: random number between min and max

Clamp value

Restricts a value to be within a specified range.

  • min (default 0)

  • max (default 1)

Slot:

  • Input

  • Output

Absolute value

Calculates the absolute value of the input.


Slot:

  • Input

  • Output

Round down

Rounds down to the nearest integer.


Slot:

  • Input

  • Output

Fractional part

Returns the fractional part of a number.


Slot:

  • Input

  • Output

Pass value

Selects between two inputs based on a boolean condition.

When the control signal is true, the node passes input A through. When false, it passes input B. Can be used e.g. for choosing between different data sources or control paths.


Slots:

  • Input (boolean)

  • Input A

  • Input B

  • Output

Math operation

Process two inputs using one of the following mathematical operations: +, -, *, /, % (modulo), ^, max, min.

When using this node, the OP (operation) must be defined.

  • A (value 1 for simulation)

  • B (value 2 for simulation)

  • OP (Operation)

Slot:

  • Input A

  • Input B

  • Result


Compare values

Compares two values and returns boolean results for different comparison operators.


Slots:

  • Input A

  • Input B

  • Equal

  • Not equal

Evaluate condition

Evaluates one of the following conditions between two values and returns true/false results: >, <, ==, !=, <=, >=, ||, && .

The output value of each slot is a boolean (true/false).

The output value needs to be converted to a number when used in output value points.


Slots:

  • Input A

  • Input B

Selection:

  • Cond (>, <, ==, !=, <=, >=, ||, &&)


  • True

  • False

Branch by condition

Sends the input value to one of two outputs based on a condition.

Output:

  • True: Returns the input value if the condition is true, otherwise null

  • False: Returns the input value if the condition is false, otherwise null


Slots:

  • Input

  • Boolean condition

  • Output


String nodes

Node

Description

Properties

Input slots

Output slots

Convert to text

Converts any numbers or booleans to a string


  • Input

  • Output

Compare text

Compares two strings and returns boolean results for different comparison operators.


  • Input A

  • Input B

  • Output

Join text

Joins two strings to form a single string


  • Input A

  • Input B

  • Output

Text contains

Checks whether a string contains a character. The output is a boolean (true/false)


  • Input A

  • Input B

  • Output

Uppercase text

Converts a string from lowercase to uppercase text.


  • Input

  • Output

Split text

Splits strings using a comma (,) separator.

The output is an array of values


  • Text

  • Separator

  • Output

Logic nodes

Node

Description

Properties

Input slots

Output slots

AND

Logical operator that returns true if all inputs are true.


  • Input A

  • Input B

  • Output

OR

Logical operator that returns true if at least one input is true.


  • Input A

  • Input B

  • Output

NOT

Logical operator that returns the logical negation of the input.


  • Input

  • Output

Compare booleans

Compares whether boolean values are equal.


  • Input A

  • Input B

  • Output

Example formulas

Calculate values that are not on the bluelog: Scale a data point

  • Example: Convert kW to MW

  • Formula: AC power PV + AC power Battery / 1000 = Result

Steps

  1. Use a suitable TI (15/16/37, etc.).

  2. Define the input value points PV power AC and Battery power AC, selecting the corresponding Device type, Device ID, and Reference value.

  3. Define the formula by adding nodes:

    • Input value node: select the data point PV power AC.

    • Input value node: select the data point Battery power AC.

    • Constant value (number) node: Define the constant 1000.

    • Add the input value points together using the mathematical operation +.

    • Math operation node: Divide the sum of the data points by the constant using the mathematical operation /.

    • IEC return values node

  Scaling a data point_Formula
Scaling a data point: Formula

Information telegram: Confirm active power setpoint

Steps

  1. Create a data point with the IOA / TI / ASDU address.

  2. Define the transmission mode (reactive without hysteresis recommended for e.g. feedback active power)

  3. For the input value point, select the PPC value for Active power feed-in limitation (grid operator, relative) (PPC_GCP_P_LIM_FEEDIN_REL).

  4. Define the formula: Assign the value point to return the value using IEC (1:1 assignment). Connect the Value slots of the following nodes:

    • IEC command node

    • Output value node

image-20261021-082352.png
Confirm active power setpoint: Configuration
image-20261021-112016.png
Confirm active power setpoint: Formula

Command telegram: Receive grid operator setpoint and forward to PPC

Steps

  1. Create data point with given IOA / TI / ASDU address.

  2. For the output value point, select the PPC value for Active power feed-in limitation (grid operator, relative) (PPC_GCP_P_LIM_FEEDIN_REL).

    image-20261021-112730.png
    Receive grid operator setpoint and forward to PPC: Configuration
  3. Define the formula: Assign the IEC command value to the output value point's value (1:1 assignment). Connect the Value slots of the following nodes:

    • IEC command node

    • Output value node

Information telegram_Send current active power power AC_formula
Receive grid operator setpoint and forward to PPC: Formula

Double command telegram: Indicate that a person is on-site

❗

Warning

This is an essential safety mechanism for many plants and recommended best practice. It indicates that personnel are working on the equipment. When the signal is active, remote switching commands are blocked for safety reasons.

Steps

  1. Define output data points (switch bits).

    image-20261021-115049.png
    Indicate that a person is on-site: Configuration
  2. Define the formula:

Part of formula

Description

1

Calculation of the bit value

Depends on numeric value:

Bit 1

Bit 2

Value

Meaning

0

0

0

Intermediate

0

1

1

Off

1

0

2

On

1

1

3

Invalid

2

Security mechanism

Use the Branch by condition node:

Condition: Parameter <ORT> is 0.

Result: Bit values for the switch command are only transferred if ORT = 0.

IEC command output node (optional): Some grid operators require a negative confirmation if no switch is performed.

3

Output values

Two possible output values. The output value depends on the result of the security mechanism.

image-20261021-115228.png
Indicate that a person is on-site: Formula


Double information telegram (feedback for switch operations)

Steps

  1. Define data point with TI 31.

  2. Under IEC transmission mode, select Reactive.

  3. Activate the toggle image-20261029-132406.png Delayed transmission.

  4. Select the image-20260413-124104.png Plus icon to add a new value.

  5. Define a suitable delay for the values 0 and 3, e.g. 2000 ms.

  6. Select image-20261009-095037.png Save selected.

    image-20261021-144346.png
  7. Define input value points for both bits (0/1).

  8. Define the formula.

    Double information telegram_Formula
    Double information telegram: Formula


Last updated: