User Manual Chapter 12
GFK-1742F Jan 2020
Local Logic Language Syntax 294
12.4.1 Operator +
Adds source1 to source2 and stores the result in destination
Syntax
destination := source1 + source2;
The + operator syntax has these parts:
Overflow – Set if the result of an addition is greater than 2,147,483,647 or less than -
2.147,483,648. The Module_Status_Code is set to a value of 16#0095, which is a status-
only error.
12.4.2 Operator -
Subtracts source2 from source1 and stores the result in destination
destination := source1 – source2;
The – operator syntax has these parts:
Overflow – Set if the result of a subtraction is greater than 2,147,483,647 or less than -
2,147,483,648. The Module_Status_Code is set to a value of 16#0095, which is a status-
only error.
Remarks
The – operator may not be used as a unary operator except with a decimal (base 10)
constant (e.g. P001 := -P003; is illegal). To negate a variable, subtract it from zero, e.g. P001
:= 0 – P003;.