Transformation commands operate on the received CAN payload.
Extracts one or more bytes.
SELECT([start],[end])
Extracts bytes from [start] to [end].
Examples:
SELECT(1,1)
SELECT(3,4)
SELECT(2,10)
Converts the selected bytes from hexadecimal into a decimal number.
Example:
10 → 16
Replaces a numeric value with text.
IF([condition],"ON")
If the current value equals [condition], it becomes:
ON
Example:
IF(0,"OFF")
IF(1,"ON")
Supported operations:
XOR FF
AND 0F
OR 80
NOR FF
NAND FF
NOT
These commands perform standard bitwise operations on the current value.
Basic arithmetic can also be applied.
+10
-5
*2
/4
These operations are executed in the order they appear.