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 Logic Gates<br />

3.3.1 AND (A) A<br />

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

Logic Byte/Word Double Constant<br />

Execution time [µs] 1.2 1.2/1.2 1.8 1.6<br />

Number of bytes 4 4 4 6<br />

Logic execution with the AND 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 L command, i.e. the logic state of the<br />

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 L 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, I,<br />

O, T, C) are gated with AND. The gating result is stored in the Logic Accumulator.<br />

Example:<br />

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

Initial state: Input I4 = 1<br />

Input I5 = 0<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 A I5 ... x x x x x x 0 x x x x x x x 0<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.<br />

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

7-44 <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!