EasyManua.ls Logo

HEIDENHAIN iTNC 530 HSCI - Load Twos Complement (L-)

HEIDENHAIN iTNC 530 HSCI
1966 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
July 2013 9.8 Command Set 1765
9.8.4 LOAD TWO’S COMPLEMENT (L–)
Syntax: L– (LOAD MINUS)
Operands: B, W, D, K
Action:
Load the two’s complement of the addressed operand, or of a constant, into
the word accumulator. If necessary, the iTNC fills the accumulator with the
correct algebraic sign. The two’s complement allows negative numbers to be
stored, i.e., a number loaded with the L command appears in the accumulator
with an inverted sign. This command can be used only with word processing.
Example:
Negate the content of byte B5 and then add it to the content of byte B6.
Assign the result to byte B8.
Initial state:
Byte B5 = 15 (dec)
Byte B6 = 20 (dec)
Byte B8 = ?
Function STL Accumulator
content
Operand content
Load byte B5 into the
word accumulator, invert
the algebraic sign.
L– B5 –15 +15
Add the contents of the
word accumulator and
byte B6.
+ B6 +5 +20
Assign the gating result to
byte B8.
= B8 +5 +5

Table of Contents

Other manuals for HEIDENHAIN iTNC 530 HSCI

Related product manuals