|
MEMORY VARIABLES The device features 35 independent memory variable positions designed to evaluate arithmetic expressions, manipulate text strings, manage crypto hashes, or store runtime constants. The rules associated with the memory variables are stored in |
|
THE VALUE FIELD IS DYNAMIC: The VALUE register is constantly rewritten and updated by the internal processing engine. You must never write static baseline data directly into the VALUE field. All calculations, fixed constants, formulas, and target system tags must be configured inside the EXPRESSION field. NON-VOLATILE PERSISTENCE: The compiled contents of all memory variables are stored securely within non-volatile memory and are retained across power loss or system reboots. |
Expression VS. value field processingThe device processes the EXPRESSION field based on whether the content is static or dynamic:
Decimal Precision Rendering
Operators & evaluation reference tableThe processing engine parses expressions using the specific structural rules and operators outlined below. Replace the letter x with the alphanumeric memory variable index sequence: 1 to 9, followed by A to Z (totaling 35 positions).
|
||
|
OPERATOR |
ESPRESSION Vx2 |
RENDERED VALUE Vx1 |
|
none |
10 numeric constant |
10 returned 'as is' |
|
abc text 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 text + text |
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 text * text |
invalid operation |
|
|
$A12*1000 tag A12 * number |
2300 convert value measure by analog 1 e.g. convert kilograms to grams |
|
|
/ divide |
10/4.0 number / number |
2.5 returns the quotient of two numbers |
|
abc/def text / text |
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 text % text |
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 text | text |
invalid operation |
|
|
$I12|$I22 tag I11 | tag I21 |
1 At least one active input (input 1, input 2) |
|
|
& 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 text & text |
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 K = WIEGAND 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. |
||
