Micromod Micro-DCI: 53MC5000 Multi-Loop Process Controller CUSTOMIZATION GUIDE User Manual
Page 21

“:”
9) Removes and compares the top two data values from the stack
memory. If the value of “C06” is greater than or equal to
“C23 H05 $
*
”, the statement is true; if not the statement is false.
A true statement will transform to a logical “1”, and a false
statement will transform to a logical “0”. The resulting logical is
returned to the stack (level 1) and is called bit B; the logical result
of Expression B. Bit A will now move up to stack (level 2).
“&”
10) Removes and performs the “AND” operation to the top two
values from the stack and then places the logical result
(“1” or “0”) back in stack memory (level 1). The output of the
AND Gate is called bit C. As shown in the Truth Table, if bit A
and bit B are both set to logic level “1”, the output of the AND
Gate will be a logical “1”. Any other combination of A and B
will result in setting bit C to a logical “0”.
11) End of statement; removes the logic bit from the
stack and sets L05 to that logic level that results from the
“AND” operation.
The “skip” instruction, Sxxx, may be used either when comparing two data values, when comparing
two expressions, when checking the status of a logical, or when testing whether a data value is
zero. When the statement evaluates true (1), the skip will be executed. The status of a logical can
be tested by entering a statement such as:
L24 ? S05
If L24 is a logical “1”, the statement will evaluate true. The skip can be any number of lines either
forward or backward. When L24 is a logical “0” (or false), the next statement will be executed (no
skip). This logic can be altered by using the invert (!) operator to follow the operand as shown in
the following example:
L24 ! ? S05
Backward skips (negative number of lines) count back from the statement or line. The instruction
will be counted. S-115 will execute the 114th line ahead of the statement.
In this case if L24 is logical “0”, inverting it will make the statement true (skip). A comparison can
be made to check whether a data value is zero. For example:
C02 Z ? S03
This statement means - if C02 is exactly zero, skip the Next 3 program statements.
MODULAR CONTROLLER CUSTOMIZATION GUIDE
2-14