Super Systems 9205 Series User Manual
Page 78

Series 9205 Operations Manual Rev A
77
Example:
IF V1 >= 30
V3 = V2 * 1.5
ELSE
V3 = 5
ENDIF
In this example, if the value in V1 is greater than or equal to 30, then the value of V3 will be the value of V2
multiplied by 1.5. If the value in V1 is less than 30, the value of V3 will be 5.
EVERY
“IF” must have a closing “ENDIF”. However, the “ELSE” is optional.
The “QUE” is used to send data to a slave instrument and must have three (3) variables separated by
spaces. The first is the slave instrument number, the second is the register number, and the third is the
data to send.
Example:
QUE 3 1129 V1
This example will send the value of V1 to register 1129 on instrument 3.
The “RLY” is used to control a relay if the relay assignment is 999. The “RLY” must be followed by a
variable which is the relay number (1 – 8) and a relationship expression.
Example:
RLY 5 M554 < 2
This example would turn Relay 5 ON if the communication status for instrument 5 was bad.
The “END” keyword will stop the lines from running, and start over from line 1.
There are a few functions that are available as well. The list of valid functions is: FSIN (Sine), FCOS
(Cosine), FEXP (Exponent), FLOG (Logarithm), FLN (Natural Logarithm), FSQRT (Square Root), FABS
(Absolute Value), and FPOW (Power). The Sine and Cosine functions need to have the parameter in radians.
A function must be in all caps and begin with an “F” and have a pair of parenthesis. An undefined function
returns the value of the expression in the parenthesis.
Note – A pair of parenthesis by themselves is
considered an undefined function
.
The instrument calculation has limited parsing ability. This is kept to variables, operation, variable – i.e. V1
= 12.25 * V2. Another example is M128 = V1/100.
A negative sign (-) in front of the number is considered part of the number – i.e. V1 = -2.55 + V2.
A variable to the parser is one of the following: a program variable (Vxx), a Modbus register (Mxxx), a
number, or a function.
Example:
V1 = (V2 * 1.35) + (V3 * V4)
This example will multiple V2 by 1.35 and multiply V3 and V4 together, and add those two results and store
that value in V1.
The maximum length of a program line is thirty-one (31) characters.
The following are the valid mathematical operators: + (Addition), - (Subtraction), * (Multiplication), /
(Division), and % (Modulo Divide – integer only).
The difference between Division and Modulo Division is that Modulo will always return an integer value.
Example:
11 / 4 = 2.75
11 % 4 = 2 (The .75 will not be returned)
Calculation Time In MS (0 to Disable)
This is the calculation time for the calculations. This will specify the delay between executing a line. Each
line has the same delay between them, even if they are blank. A value of zero (0) will keep the calculations
from being performed. The range is 0 – 10000.