Klicka här för att komma till innehållsförteckningen
Many of the operators is pretty obvious, such as +, -, = etc., While others like the GT, LT, etc. may need a short presentation. AND (&), BIT, OR (|) and XOR is the Boolean operators. The characters in brackets can be used instead of writing out the whole word. They are used in conventional ways to handle binary signals.
+
-
*
/
^
Addition
Subtraction
Multiplication
Division
Used as the exponent operator. Ex. GRAPH Expo (kPa) = ID1 + 3 (study as CH1 cubed)
AND
&
OR |
Or-conditions:
Ex .: GRAPH mesh (sat) = ID31 OR 4 (Returns ID31 + 4 if bit 3 was not set; otherwise ID31)
The best way to describe a so-called. half adder is a truth table. The terms for each position in a binary number:
0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0
Ex .: GRAPH add (bin) = 5 XOR 3 (Returns 6)
"The largest of .. and .."
Ex: Greater GRAPH (° C) = ID1. GT 30
(If the ID1 is greater than 30 retuneras ID1 otherwise retuneras 30.)
"The smallest of .. and .."
Ex: GRAPH lesser (° C) = ID1 LT 30 (If ID1 is less than 30 retuneras ID1 otherwise retuneras 30.)
Finally, we provide a number of special characters that can be good to have:
°
μ
²
Degrees sign
My, micro-
Powers 2, quadratic