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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.3.2 AND NOT (AN) AN<br />

Abbreviation for the PLC Editor: AN (AND NOT)<br />

Logic Byte/Word Double Constant<br />

Execution time [µs] 2.0 2.0/2.0 3.0 2.6<br />

Number of bytes 8 8 8 10<br />

Logic execution with the AND NOT command<br />

Operands: M, I, O, T, C<br />

Operation:<br />

This command functions in different ways according to its position in the program:<br />

a) At the start of a logic chain the command functions as an LN command, i.e. the complement of<br />

the operand is loaded into the Logic Accumulator. This is to ensure compatibility with the <strong>TNC</strong> 355<br />

control which did not have the special LN command. In PLC programs for the <strong>TNC</strong> <strong>360</strong>/<strong>TNC</strong> 335 a<br />

logic chain should always be started with a load command (see L, LN, L–).<br />

b)Within a logic chain, the contents of the Logic Accumulator and the logic state of the operand (M,<br />

I, O, T, C) are gated with AND NOT.<br />

The gating result is stored in the Logic Accumulator.<br />

Example:<br />

Input I4 and Input I5 should be gated with AND NOT and the result assigned to Output O2.<br />

Initial state: Input I4 = 1<br />

Input I5 = 1<br />

Output O2 = ?<br />

Line Instruction Accumulator Contents Operand Contents<br />

Bit 31 . . . 7 0<br />

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

1 L I4 ... x x x x x x 1 x x x x x x x 1<br />

2 AN I5 ... x x x x x x 0 x x x x x x x 1<br />

3 = O2 ... x x x x x x 0 x x x x x x x 0<br />

Line 1: The operand contents are loaded into the Accumulator.<br />

Line 2: The contents of the Logic Accumulator and Input I5 are gated with AND NOT.<br />

Line 3: The gating result is assigned to Output O2.<br />

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

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

Saved successfully!

Ooh no, something went wrong!