Model 574 Programmable Counting System (PCS)
170 - GSE Scale Systems
n=mP%'
Examples: Compare VAR#0 to VAR#1 in all
three respects (>, < and =).
80>81P%' Determine "IF" parameter 80 is
greater than parameter 81.
80<81P%' Determine "IF" parameter 80 is
less than parameter 81.
80=81P%' Determine "IF" parameter 80 is
equal to parameter 81.
2. Comparing a parameter's value to a fixed value
can be done in three ways, greater than, less
than or equal to. The statements below are
used to compare any parameter to any fixed
value. ("n" is the variable compared to the "x"
variable, where "x" equals a fixed number).
The (%') is the completion of the compare
statement.
n>x%'
n<x%'
n=x%'
Examples: Compare VAR#9 to the value "10".
89>10%' Determine "IF" parameter 89
is greater than the value "10".
89<10%' Determine "IF" parameter 89
is less than the value "10".
89=10%' Determine "IF" parameter 89
is equal to the value "10".
3. Comparing a parameter's value to zero (0) can
be done in three ways, greater than, less than or
equal to. The statements below are used to
compare any parameter to zero (0). ("n" is the
variable compared to zero). The (%') is the
completion of the compare statement.
n>%'
n<%'
n=%'
Examples: Compare VAR#4 to zero.
84>%' Determine "IF" parameter 84 is
greater than zero.
84<%' Determine "IF" parameter 84 is
less than zero.
84=%' Determine "IF" parameter 84 is
equal to zero.
Advanced example: Determine if the number of
labels that have been printed
has reached 20.
0;80%C Reset VAR#0 (counter)
%T Tag this position for returning jump.
80=20%' "IF" VAR#0 equals 20 .......
%B ..... Abort running macro.
%N "ELSE"
1%Q Print label (custom transmit 1).
1;80%+ Add 1 to VAR#0 (increment counter).
%J Jump to Tag.
%E "END IF"
16.9 General Notes on Math Commands
In the math examples, the use of the < > around a
parameter ID is intended to represent the value of the
parameter and not the parameter itself. Also, the "=>"
indicates "stored into". This is used instead of the equals
sign to reduce confusion.
Any numeric parameter ID may be used (i.e. not the ID's,
parameters 21 thru 26) with the various math commands.
However it is not possible to combine time / date
parameters (parameters 11 and 50 thru 54) with the other
numeric parameters, except for the copy command (%C).
Example:
11,81%+ NOT ALLOWED!
Instead:
11,80%C Copy time / date value to var #0
80,81%+ Add var #0 (time / date value) to var
#1
Often, both of the values to be used in a calculation must
be retained. Since the second parameter specified in the
command is also used to specify the result, a COPY may
be performed on the second parameter before the math