Schneider Electric 372 SPU 780 01EMAN Welding System User Manual


 
Using the Logic Editor
158
372 SPU 780 01EMAN May 2002
Mathematical Operations in Equation Networks
Mathematical
Operations
The following table lists the mathematical operations you can include in your
equation:
Type Operator Result
Assignment operator
The assignment operator = is used to
assign a storage place for the results
of the equation. All equations will use
the assignment operator. The format
is:
ADDRESS = EXPRESSION
Where ADDRESS is a valid register
address and EXPRESSION is a valid
value or expression assigned to the
address.
= Assignment
Unary Operators
"Unary" means "single", so unary
operators are used on only one value.
The unary operator is placed just
before the value or expression to
which it is applied. For example, -
(30002) returns -1 times the number
stored at address 30002.
- Negation. The result is -1 times the
value.
~ Ones complement. This works on the
binary representation of a value: all 1s
are changed to 0s and vice versa.
Exponentiation operator
Takes values to a specified power.
40001**3 returns the (integer) value
stored at 40001, taken to the third
power.
** Exponentiation
Arithmetic operators
These require two values, one before
and one after the operator. These
values can be any valid expression.
For example, #4 * 40003 results in
four multiplied by the value stored at
address 40003.
* Multiplication
/ Division
+ Addition
- Subtraction