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.4.3 MULTIPLICATION (x) x<br />

Abbreviation for the PLC Editor: x (MULTIPLY)<br />

Logic Byte/Word Double Constant<br />

Execution time [µs]* ---- 10.2/9.4 --- 9.8<br />

Number of bytes ---- 14 10 14<br />

* Only a maximum processing time can be entered with the arithmetic operations X, / and MOD.<br />

The processing time may be shorter, depending on the operands.<br />

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

Operation:<br />

With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).<br />

Then the contents of the operand are multiplied with the contents of the Word Accumulator. The<br />

result of the operation is stored in the Word Accumulator and may be processed further. If the result<br />

of multiplication causes an overflow, Marker M3168 is set, otherwise it is reset.<br />

Example:<br />

A Constant and a value stored in Word W6 are to be multiplied. The result is then stored in<br />

Doubleword D8.<br />

Initial state Constant = 100 (dec)<br />

Word W6 = 20 (dec)<br />

Doubleword D8 = ?<br />

In the interests of clarity the contents of the Accumulator and the operand are shown in decimal<br />

notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator<br />

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 K100 1 0 0<br />

2 x W6 2 0 0 0 2 0<br />

3 = D8 2 0 0 0 2 0 0 0<br />

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

Line 2: The contents of the Accumulator are multiplied by the contents of Word W6.<br />

Line 3: The result is assigned to Doubleword D8.<br />

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

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

Saved successfully!

Ooh no, something went wrong!