Arithmetic Operators Used In Ladder Logic

The following table is a list of arithmetic operators used in Contrologix processors when writing Ladder Logic. Not all operators are available for all instructions. When in doubt try it.



+ add
* multiply
/ divide
= equal
< less than
<= less than or equal
> greater than
>= greater than or equal
<> not equal
** exponent (x to y)
ABS absolute value
ACS arc cosine
AND bitwise AND
ASN arc sine
ATN arc tangent
COS cosine
DEG radians to degrees
FRD BCD to integer
LN natural log
LOG log base 10
MOD modulo-divide
NOT bitwise complement
OR bitwise OR
RAD degrees to radians
SIN sine
SQR square root
TAN tangent
TOD integer to BCD
TRN truncate
XOR bitwise exclusive OR