beautypg.com

7 assign (=) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 504

background image


01.98

TNC 407/TNC 415/TNC 425

3 Commands

7-43

3.1.7 ASSIGN (=)

Abbreviation for the PLC-Editor:

= (ASSIGN)

Logic

Byte/Word

Double

Constant

Execution time [µs]

0.2 to 0.5

0.2 to 0.5

0.2 to 0.5

----

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:
Input I4 and Input I5 should 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.