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.5.6 UNEQUAL ()<br />

Abbreviation for PLC Editor: (NOT EQUAL)<br />

Byte/Word/Double Constant<br />

Execution time [µs] 1.8 to 2.4 1.8 to 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 execution occurs. The content of the Word<br />

Accumulator is compared with the content of the addressed operand. If the Word Accumulator and<br />

the operand are not equal, the condition is true and the Logic Accumulator is set to 1. If the Word<br />

Accumulator is equal to the operand, the Logic Accumulator is set to 0. The comparison takes place<br />

over the number of bits corresponding to the operand i.e. B=8 bit,W=16 bit and D=K=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 />

Output state Constant = 16 000<br />

Doubleword D8 = 15 000<br />

Accumulator and operand contents are entered here in decimal notation. The ten position<br />

Accumulator thus permits the maximum possible Accumulator content (2 147 483 647).<br />

Line Instruction Accumulator Content Operand<br />

Content<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 Word Accumulator.<br />

Line 2: Contents of the Word Accumulator and operand are compared according to the following<br />

criteria: Word Accumulator Operand. If this condition is fulfilled, the Logic Accumulator<br />

is set to 1.<br />

Line 3: The contents of the Logic Accumulator [result of the comparison] is assigned to<br />

marker M500.<br />

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