Dynamic Links

Introduction

A dynamic link is a link between two nodes: a parent node, which is always a variable, and a remote node called a source. Typically, it is used to set the value of a variable based on the value of another variable or attribute of another node, for example, to set the text of a label based on the value of a temperature variable.

Advanced dynamic links

When a dynamic link implements transformations of the source node’s value through specific converters, it is referred to as advanced dynamic link (see Converters).

A dynamic link can be set in one of the following modes, which determines the direction of the link:

  • Read: from source node to parent

  • Write: from parent to source

  • Read/Write: bidirectional

Note

when the dynamic link is between a graphical object property and another node, the parent node is always the graphical object property.

Default Behavior

When setting-up a dynamic link, the following default behavior applies:

  • If the source is a variable, the source value is that of the Value attribute.

  • If the source is an object, the source value is the NodeId attribute of the object.

Creating a Dynamic Link to an Array Variable

In a dynamic link, if the parent or source node is an array variable, a specific array cell can be set as parent or source.

Format of the Parent Node

When a dynamic link is set between two nodes with the same data types, the desired format for the parent node data can be set for some data types. The following table shows for which Data Types this function is available, and the selectable formats:

Source Datatype

Parent node format

Description

Example

Int16

Int32

Int64

Integer

UInt16

UInt32

UInt64

UInteger

0 (1234)

Binary representation, without the thousands separator

7.9897989

Hexadecimal (ff)

Hexadecimal representation

452d

Octal

Octal representation

8055

Binary

Binary representation

4510010110

Float

Double

0,# (1234,5)

Rounding to the first decimal place

  • 59,7859,8

  • 59,259,2

  • 3152,93.152,9

0,## (1234,56)

Rounding to the second decimal place

  • 45,3399445,34

  • 1,81,8

  • 1245,681.245,68

0,### (1234,56)

Rounding to three decimal places

  • 4,57794,578

  • 3,143,14

  • 1528,651.528,65

0.0 (1234.0)

Representation with exactly one decimal place

  • 5,685,7

  • 5,15,1

  • 9597,779.597

0.00 (1234.00)

Representation with exactly two decimal places

  • 5,35,30

  • 10,6510,65

  • 5789,5645.789,56

0.000 (1234.000)

Representation with exactly three decimal places

  • 70,470,400

  • 87,789787,790

  • 31529,787931.529,788

DateTime

hh:mm

Date/time format, t

05:30

dd/MM/yy

Date/Time format, d

01/05/19

hh:mm:ss

Extended date time format, T

06:01:58

d MMM yyyy

Extended date, format D

1 gen 2019

dd/MM/yy, hh:mm

Extended date/time, format g

01/07/2016, 12:59

d MMM yyyy, hh:mm:ss

General date/time layout, format F

1 feb 2019, 6:15:28

yyyy-MM-ddThh:mm:ss.0000000Z

ISO 8601 Standard, format o or O

2019-01-07T00:00:00.0000000Z

Duration

[d.]hh:mm:ss[.0000000]

Format c

2.09:10:2006:10:20

[d:]h:mm:ss[,0000000]

General short format, g

4:9:10:20

d:hh:mm:ss,0000000

General extended format, G

4:09:20:15,0000000