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.5.3 GREATER THAN (>) ><br />

Abbreviation for the PLC Editor: > (GREATER THAN)<br />

Byte/Word/Double Constant<br />

Execution time [µs] 1.8 to 2.4 2.0<br />

Number of bytes 6 8<br />

Operands: B, W, D, K<br />

Operation:<br />

With this command, a direct transfer from Word to Logic processing occurs. The contents of the<br />

Word Accumulator are compared with the contents of the addressed operand. If the Word<br />

Accumulator is greater than the operand, the condition is true and the Logic Accumulator is set to 1.<br />

If the Word Accumulator is less than or equal to the operand, the Logic Accumulator is set to 0. The<br />

comparison takes place over the number of bits in the operand, i.e. B = 8 bit, W = 16 bit and D = K<br />

= 32 bit.<br />

Example:<br />

A constant is to be compared with the contents of Doubleword D8. The result is then assigned to<br />

Marker M500.<br />

Initial state: Constant = 16 000<br />

Doubleword D8 = 15 000<br />

The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator<br />

allows the entry of the highest possible Accumulator contents (2 147 483 647).<br />

Line Instruction Accumulator Contents Operand Contents<br />

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

1 L K16000 1 6 0 0 0<br />

Bit 31 . . . 7 0<br />

1 > D8 ... x x x x x x 1 x x x x x x x 1 5 0 0 0<br />

2 = M500 ... x x x x x x 1 x x x x x x x 1<br />

Line 1: The constant is loaded into the Accumulator<br />

Line 2: The contents of the Accumulator and the Operand are compared (Accumulator<br />

> Operand ? ). As this condition is fulfilled the Logic Accumulator is set to 1.<br />

Line 3: The contents of the Logic Accumulator (The result of the comparison) are<br />

assigned to Marker M500.<br />

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

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

Saved successfully!

Ooh no, something went wrong!