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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.3.4 OR NOT (ON) ON<br />

Abbreviation for the PLC Editor: ON (OR 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 OR 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 this 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 OR NOT. The result of the operation is stored in the Logic Accumulator.<br />

Example:<br />

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

Initial state: Input I4 = 0<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 0 x x x x x x x 0<br />

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

3 = O2 ... x x x x x x 1 x x x x x x x 1<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 OR NOT.<br />

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

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