Comparisons, 5 comparisons – HEIDENHAIN TNC 122 Technical Manual User Manual

Page 55

Advertising
background image


54

TNC 122

12 PLC Description

4/97

12.2.5 Comparisons

EQUAL TO (==)

Operands: B, W, D, K
With this command a direct transfer from Word to Logic processing occurs. The content of the
Word Accumulator is compared with the content of the addressed operand. If the Word
Accumulator is equal to the operand, the condition is true and the Logic Accumulator is set to 1. If
they are not equal, the Logic Accumulator is set to 0. The comparison takes place over the number
of bits corresponding to the operand, i.e. B = 8 bits, W = 16 bits and D = K = 32 bits.

LESS THAN (<)

Operands: B, W, D, K
With this command, a direct transfer from Word to Logic processing occurs. The content of the
Word Accumulator is compared with the content of the addressed operand. If the Word
Accumulator is smaller than the operand, the condition is true and the Logic Accumulator is set to 1.
If the Word Accumulator is greater than or equal to the operand, the Logic Accumulator is set to 0.
The comparison takes place over the number of bits in the operand, i.e. B = 8 bits, W = 16 bits and
D = K = 32 bits.

GREATER THAN (>)

Operands: B, W, D, K
With this command, a direct transfer from Word to Logic processing occurs. . The content of the
Word Accumulator is compared with the content of the addressed operand. . If the Word
Accumulator is greater than the operand, the condition is true and the Logic Accumulator is set to 1.
If the Word Accumulator is less than or equal to the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits in the operand, i.e. B = 8 bits, W = 16 bits and D =
K = 32 bits.

LESS THAN OR EQUAL TO (<=)

Operands: B, W, D, K
With this command, a direct transfer from Word to Logic processing occurs. The content of the
Word Accumulator is compared with the content of the addressed operand. If the Word
Accumulator is less than or equal to the operand, the condition is true and the Logic Accumulator is
set to 1. If the Word Accumulator is greater than the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits in the operand i.e. B = 8 bits, W = 16 bits and D = K
= 32 bits.

GREATER THAN OR EQUAL TO (>=)

Operands: B, W, D, K
With this command, a direct transfer from Word to Logic execution occurs. The content of the Word
Accumulator is compared with the content of the addressed operand. If the Word Accumulator is
greater than or equal to the operand, the condition is true and the Logic Accumulator is set to 1. If
the Word Accumulator is smaller than the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits corresponding to the operand, i.e. B = 8 bits,
W = 16 bits and D = K = 32 bits.

Advertising