Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1700

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.15.35 GREATER THAN OR EQUAL TO (>=)
1700
Syntax:
>= (GREATER EQUAL)
Operands:
B, W, D, K
Action:
This command sets off a direct transition from word to logical processing.
Compare the content of the word accumulator 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 control sets the logic accumulator to 1.
If the word accumulator is less than the operand, it sets the logic accumulator
to 0. The comparison takes place over the number of bits in the operand:
where B = 8 bits, W = 16 bits, and D = K = 32 bits.
Example:
Compare a constant with the content of double word D8, and assign the result
to marker M500.
Initial state:
Constant
= 16 000 (dec)
Double word D8
= 15 000 (dec)
Marker
M500 = ?
Function
Load the constant into the
word accumulator.
Check whether word
accumulator >= operand;
if so, set logic
accumulator to 1.
Assign the result to
marker M500.
STL
Accumulator
content
L
16000
K16000
>= D8
1
= M500 1
HEIDENHAIN Technical Manual MANUALplus 620
Operand content
15000
1

Advertisement

loading