beautypg.com

HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 505

background image


7-44

TNC 407/TNC 415/TNC 425

3 Commands

01.98

Word execution with the ASSIGN command

Operands: B, W, D

Operation:
ASSIGN in conjunction with the Word-Operands (B, W, D) copies the contents of the Word
Accumulator to the addressed operand. In contrast to bit processing, the = command can also be
used within a word gating chain. The command can be used several times in succession (see
example).

Example:
A Constant (K) and the contents of Byte B5 should be gated with AND and the result assigned to
Byte B8 and Byte B10.

Initial state:

Byte

B5 = 2A

(hex)

Constant

54 = 36

(hex)

Byte

B8 = ?

Byte

B10 = ?

Line Instruction

Accumulator Contents

Operand Contents

Bit

31 . . . 15

7

0

7 0

... x x x x x x x x x x x x x x x x x x

1

L K+54

... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0

2

A B5

... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0

00101010

3

= B8

... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0

00100010

4

= B10

... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0

00100010

5

= B10

... 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0

01010000

Line 1:

The Constant is loaded into the Word Accumulator.

Line 2:

The contents of the Word Accumulator is stored in B8

Line 2:

The contents of the Word Accumulator and Byte B5 are gated with AND.

Line 3:

The gating result is assigned to Byte B8.

Line 4:

The gating result is assigned to Byte B10.