06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Word execution with the LOAD command<br />

Operands: B, W, D, K<br />

Operation:<br />

The addressed Operand (B, W, D) or a Constant (K) is copied into the Word Accumulator. In addition,<br />

the Accumulator is filled, if necessary, according to the sign bit. In contrast to logic execution the<br />

start of a word gating chain must always be with the L command. It is not possible to use a gating<br />

command.<br />

Example:<br />

A Constant and Byte B5 is to be gated with AND and the result assigned to Byte B8.<br />

Initial state: Byte B5 = 2A (hex)<br />

Constant: 54 = 36 (hex)<br />

Byte B8 = ?<br />

Line Instruction Accumulator Contents Operand Contents<br />

Bit 31 . . . 15 7 0 7 0<br />

... x x x x x x x x x x x x x x x x x x<br />

1 L K+54 ... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0<br />

2 A B5 ... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 00101010<br />

3 = B8 ... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 00100010<br />

Line 1: The Constant is loaded into the Word Accumulator.<br />

Line 2: The contents of the Word Accumulator and Byte B5 are gated with AND.<br />

Line 3: The gating result is assigned to Byte B8.<br />

7-28 <strong>TNC</strong> <strong>360</strong> 3 Commands 8/95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!