Vai al contenuto

Math calculation

var := math;Where “var” is a variable PLC or @ local, and “math” is a series of calculations as desired (with constant values or variables) using the following:
  • + sum
  • – subtraction
  • * multiplication
  • / division
  • % (or MOD) division remainder
  • ORBIT or “bit a bit”
  • ANDBIT and “bit a bit”
  • XORBIT xor “bit a bit”
  • ! (or NOT) negate value
The sequence of math operations is from left to right and priorities will not be managed.If you want to control the execution order, use parenthesis ().