Less Than Or Equal To (<=) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.35 LESS THAN OR EQUAL TO (<=)
Function
Load the constant
into the word
accumulator.
Check whether word
accumulator <=
operand; if not, set
logic accumulator to
0.
Assign the result to
marker M500.
December 2001
Syntax:
<= (LESS EQUAL)
Operands:
B, W, D, K
Action:
This command sets off a direct transition from word to logical processing.
Gate the content of the word accumulator 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 TNC sets the logic accumulator to 1. If the word
accumulator is greater 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 = ?
To improve clarity, the contents of the accumulator and operand are shown in
decimal notation. The ten-digit accumulator results from the greatest possible
accumulator content (2 147 483 647).
STL
Accumulator contents (dec or [bit])
L
K16000
31..15 ..................... 7 ................. 0
<= D8
x ..... x x x x x x x x 0 x x x x x x x
= M500
x ..... x x x x x x x x 0 x x x x x x x
Commands
x
x x x
x x x
x x x
1 6
0 0 0
Operand content
(dec or [bits])
1 5 0 0 0
0
7 – 123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents