beautypg.com

HEIDENHAIN TNC 306 Technical Manual User Manual

Page 317

background image


3/2000

TNC 416/TNC 406/TNC 306

Commands

7-27

Word execution with the LOAD command

Operands: B, W, D, K

Operation:
The addressed Operand (B, W, D) or a Constant (K) is copied into the Word Accumulator. In addition,
the Accumulator is filled, if necessary, according to the sign bit. In contrast to logic execution the
start of a word gating chain must always be with the L command. It is not possible to use a gating
command.

Example:
A Constant and Byte B5 are to be gated with AND and the result assigned to Byte B8.

Initial state:

Byte

B5 = 2A (hex)

Constant:

54 = 36 (hex)

Byte

B8 = ?

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

Line 1:

The Constant is loaded into the Word Accumulator.

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.

This manual is related to the following products: