J
where:
Input
The arithmetic operation is performed when power is connected to the
input. The input circuit is normally open.
Preset
The upper element of an arithmetic operation is a preset value. The preset
can be a fixed value (up to 999) or a register. When the preset is a register
(reference number 300X or 40Xx), the content of the register (a value up to
999) is used as the preset value.
Holding Register
A register that holds the result of another logic operation (reference
number 40Xx).
Result Register
A register in which the answer to the arithmetic operation is stored. The
MICRO 84 automatically assigns a reference number to this register. The
number assigned is the holding register reference number plus one (e.g.,
40XX + 1). When assigning a reference number to a holding register, make
sure that there is an unassigned reference number, one larger than the one
being assigned, for use by the controller.
output 1
The status of the output is determined by the result of the arithmetic
process.
output 2
The status of the output is determined by the result of the arithmetic
process.
NOTE
An output is energized only if the input is also energized.
When power is removed from the input, the output is de-
energized.
7.651 Addition
The addition function adds the preset value to the contents of the holding
register and stores the result in the result register. Based on the results of
the addition, one of two output conditions exists:
l
If the sum exceeds 999, Output 1 is energized (Output 2 is de-energized)
and the remainder (the sum minus 1000) is stored in the result register.
l
If the sum is less than 999, Output 2 is energized (Output 1 de-
energized).
NOTE
7.6.5.2 Subtraction
The result register contains only the result of the latest
calculation.
The subtraction function compares the value in the preset with the value
in the holding register and places the value of the difference in the result
register. Based on the results of the compare, one of three output
conditions exists:
l
If the preset is greater than the holding register, Output 1 is energized
(Output 2 de-energized).
l
If the preset is less than the holding register, Output 2 is energized
(Output 1 de-energized).
l
If the preset is equal to the holding register, both Output 1 and Output
2 are energized.
7-9
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com