MEMORY VARIABLES

The device provides 35 positions to store texts, numerical values or combinations of elements to be evaluated.


The rules associated with the memory variables are stored in

specific unit R folders


TECHNICAL NOTE

The VALUE field is periodically updated by the device, so it must not be used directly to store data that must always be entered in the EXPRESSION field.

Contents of the memory variables is kept even when the device is turned off.


We can enter a number or a text in the EXPRESSION field, this static content (constant) will be transferred identical in the VALUE field.


We can enter an expression to be processed, this dynamic content (variable) will be processed every 60 seconds and the result transferred to the VALUE field.

For numerical values up to 2 decimals are accepted.

If the entered value is an integer the result will be rendered as an integer.

If the entered value has a point as a decimal separator, the result will include up to 2 decimals.


To embed the value of a TAG in the EXPRESSION field, enter the identifier preceded by the dollar sign $.


Here are some examples of static content and dynamic content with the related usable operators.


OPERATOR

ESPRESSION

Vx2

RENDERED VALUE

Vx1


none

10

numeric constant

10

returned

'as is'

abc

string constant

abc

returned

'as is'

$N12

tag N12

80

returns the

PLMN signal

"Sunrise: $D17"

string and  tag D17

Sunrise: 0735

returns

string and sunrise time

$D14$D15

tag D14 tag D15

181004143010

returns concatenated

current date and current time 2

"$D14 $D15"

tag D14  tag D15

181004 143010

returns separated

current date and current time 2

+

sum

10+4

number + number

14

returns the sum

of two numbers

abc+def

string + string


invalid

operation

$P22+$P32

tag P22 + tag P32

482

sum of total pulses counted

by input 2 and input 3

-

difference

10-4

number - number

6

returns the difference

of two numbers

abc-def

string - string


invalid

operation

$A62-$A42

tag A62 - tag A42

5

difference between internal temperature and value measured by analog 2

*

multiply

10*4

number * number

40

returns the product

of two numbers

abc*def

string * string


invalid

operation

$A12*1000

tag A12 * number

2300

convert value measure by analog 1

e.g. convert kilograms to grams

/

divide

10/4

number / number

2.5

returns the quotient

of two numbers

abc/def

string / string


invalid

operation

$P63/$P64

tag P63 / tag P64

2300

pulses during period / period of input 6 

returns pulses per minute

%

modulus

13%3

number % number

1

returns the remainder

of division

abc%def

string % string


invalid

operation

|

logic OR

1|0

number | number

1

returns logic OR

of two binary numbers

33|5

number | number

33 = 00100001

05 = 00000101

37

returns logic OR (bitwise)

37 = 00100101

abc|def

string | string


invalid

operation

$W00|$N00

tag W00 | tag N00

1

at least one network 

active (WiFi or PLMN)

&

logic AND

1&0

number & number

0

returns logic AND

of two binary numbers

33&5

number & number

33 = 00100001

05 = 00000101

1

returns logic AND (bitwise1)

1 = 00000001

abc&def

string & string


invalid

operation

$I12&$I22

tag I12 & tag I22

1

input 1 and input 2 

are both active, closed

^

concatenation

13^6

number ^ number

136

returns two numbers

concatenated into a single one

abc^def

text ^ text

abcdef

returns two strings

concatenated into a single one

$D14^$D15

tag D14 ^ tag D15

181004870

returns concatenated

current date and current time 2

#

separation

$D19#,2

string # separator part

to

D19 contains

"text,to,send"

use comma as separator

makes the second part extracted

?

user search

$N20?T

identifier ? folder

search for the name

corresponding to the identifier

in the specified folder


UserName

N20 is the last caller telephone

  if found in folder T

returns the associated name

otherwise it returns the identifier



$Y01?W

identifier ? folder

Greenhouse

Y01 is one of the LAN devices

  if found in folder W

returns the associated name

otherwise it returns the identifier



USERS FOLDERS

T =  TELEPHONE

E =  EMAIL

K =  WIEGAND

U =  BLE

A =  APPID

W =  DEVICE

§

hash

HMAC-SHA256

myData§myKey

hash string using string




$D01§myKey

hash tag using string

device name § myKey




$D01§$D07

hash tag using tag

device name § password

hash the string "myData" 

using the string "myKey" as key

DB383D9B8...

64 ASCII char


hash the device name 

using the string "myKey" as key

1ACBB6AF...

64 ASCII char



hash the device name 

using the device password as key

676CC40CB...

64 ASCII char


1        This function is useful for extracting a single bit from reading a

       ModbusRTU register, masking the unwanted bits.

2        When the current time is used in conjunction with operators, the value is 

       returned in MINUTES FROM MIDNIGHT, otherwise it is rendered as text in

       the hhmmss format.


online configuration platform automatically adds

double quotes when required