beautypg.com

Assign (=), 7 assign (=) – HEIDENHAIN TNC 306 Technical Manual User Manual

Page 323

background image


3/2000

TNC 416/TNC 406/TNC 306

Commands

7-33

3.1.7 ASSIGN (=)

=

Abbreviation for the PLC-Editor:

= (ASSIGN)

Logic

Byte/Word

Double

Constant

Execution time [µs]

1.2

1.2/1.2

1.6

----

Number of bytes

4

4

4

Logic execution with the ASSIGN command

Operands: M, I, O, T, C

Operation:
ASSIGN in conjunction with the Logic-Operands (M, I, O, T, C) copies the contents of the Logic
Accumulator to the addressed operand. The = command is only used at the end of a logic chain in
order that a gating result is available. The command may be used several times in succession (see
example).

Example:
Inputs I4 and I5 are to be gated with AND and the result assigned to Outputs O2 and O5.

Initial state:

Input

I4 = 1

Input

I5 = 0

Output

O2 = ?

Output

O5 = ?

Line Instruction

Accumulator contents

Operand contents

Bit

31

.

.

.

7

0

... x x x x x x X x x x x x x x

1

L I4

... x x x x x x 1 x x x x x x x

1

2

A I5

... x x x x x x 0 x x x x x x x

0

3

= O2

... x x x x x x 0 x x x x x x x

0

4

= O5

... x x x x x x 0 x x x x x x x

0

Line 1:

The operand contents are loaded into the Logic Accumulator.

Line 2:

The contents of the Logic Accumulator and input I5 are gated with AND.

Line 3:

The gating result is assigned to output O2.

Line 4:

The gating result is assigned to output O5.

This manual is related to the following products: