HEIDENHAIN TNC 122 Technical Manual User Manual
Page 54
![background image](https://www.manualsdir.com/files/815244/content/doc054.png)
4/97
TNC 122
12 PLC Description
53
MULTIPLICATION (x)
Operands: B, W, D, K
With arithmetic functions the operand is first expanded to the size of the Accumulator (32 bits). Then
the contents of the operand are multiplied with the contents of the Word Accumulator. The result of
the operation is stored in the Word Accumulator and can be processed further. If the result of
multiplication causes an overflow, Marker M3168 is set; otherwise it is reset.
DIVISION (/)
Operands: B, W, D, K
With arithmetic functions the operand is first expanded to the size of the Accumulator (32 bits). Then
the contents of the Word Accumulator are divided by the contents of the operand. The result of the
operation is stored in the Word Accumulator and can be processed further. If division by 0 is
attempted, the Marker M3169 is set; otherwise it is reset.
REMAINDER (MOD)
D
Operands: B, W, D, K
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the REMAINDER is determined by dividing the contents of the Word Accumulator by the
contents of the operand. The REMAINDER is stored in the Word Accumulator and can be processed
further. If the MOD command is not correctly executed then the Marker M3170 is set; otherwise it
is reset.
INCREMENT (INC, INCW)
INCREMENT operand (INC)
Operands: B, W, D
The content of the addressed operand is increased by one.
INCREMENT Word Accumulator (INCW)
The content of the Word Accumulator is increased by one.
DECREMENT (DEC, DECW)
DECREMENT operand (DEC)
Operands: B, W, D
The content of the addressed operand is decreased by one.
DECREMENT Word Accumulator (DECW)
The content of the Word Accumulator is decreased by one.