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 OR NOT command<br />

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

Operation:<br />

The contents of the Word Accumulator and the contents of the operand (B, W, D, K) are gated with<br />

OR NOT. In accordance with the different sizes of operand (B = 8 bit; W = 16 bit; D = K = 32 bit), 8,<br />

16 or 32 bits will be influenced in the Accumulator.<br />

Thus: Bit 0 in the Accumulator is gated with bit 0 in the operand<br />

Bit 1 in the Accumulator is gated with bit 1 in the operand and so on.<br />

The result of the operation is stored in the Word Accumulator.<br />

Example:<br />

The contents of Word W4 and Word W6 are to be gated with OR NOT and the result assigned to<br />

Word W8.<br />

Initial state: Word W4 = 36 AA (hex)<br />

Word W6 = 3C 36 (hex)<br />

Word W8 = ?<br />

Line Instruction Accumulator Contents Operand Contents<br />

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

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

1 L W6 ... 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0 00111100 00110110<br />

2 ON W4 ... 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 00110110 10101010<br />

3 = W8 ... 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 11111101 01110111<br />

Line 1: The contents of Word W6 are loaded into the Accumulator.<br />

Line 2: The contents of the Word Accumulator and Word W4 are gated with OR NOT.<br />

Line 3: The gating result is assigned to Word W8.<br />

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

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

Saved successfully!

Ooh no, something went wrong!