User`s manual

Local Logic Language Syntax
GFK-1742A Chapter 12 Local Logic Language Syntax 12-9
12
Operator -
Subtracts source2 from source1 and stores the result in destination
destination := source1 source2;
The operator syntax has these parts:
Part Description
Destination Any writeable local logic variable except Dxx registers.
source1 Any readable local logic variable/constant except Dxx registers.
source2 Any readable local logic variable/constant except Dxx registers.
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;.
Operator *
Performs a signed multiply of source1 and source2 generating a signed 64-bit result. The
result may be stored to a 32-bit or 64-bit destination.
Syntax 1
destination := source1 * source2;
Syntax 2
double destination := source1 * source2;
The * operator syntax has these parts:
Part Description
Destination Any writeable logic variable
double destination Any of the 64-bit local logic parameter variables (Dxx registers).
source1 Any readable local logic variable/constant except Dxx registers.
source2 Any readable local logic variable/constant except Dxx registers.
Overflow
Never set.
Remarks
If the result is assigned to a 32-bit variable, the least significant 32-bits are stored. Any
excess is truncated.
The second syntax may be used for multiplication operations where the result will fall
outside the range of +/- 2 billion.