HEIDENHAIN TNC 426 PB/M Technical Manual page 979

Table of Contents

Advertisement

Function
Load the double
word D12 into the
word accumulator.
Opening
parenthesis: Buffer
the accumulator
content onto the
program stack.
Load the constant K
1000 into the word
accumulator.
Divide the word
accumulator by the
content of the
double word D36.
Closing parenthesis:
Gate the
accumulator content
with the program
stack (+[, –[ .....).
Assign the result of
the total operation to
double word D100.
7 – 130
Example:
Example for the commands ADD [ ], SUBTRACT [ ], MULTIPLY [ ], DIVIDE [ ],
REMAINDER [ ].
Divide a constant by double word D36, add the result to double word D12, and
assign the result to double word D100.
Initial state:
Constant
= 1000 (dec)
Double word D12
= 15000 (dec)
Double word D36
= 100 (dec)
Double wordD100
= ?
STL
Accumulator content (dec)
L D12
+[
L K1000
/ D36
]
= D100
M4200
Overflow during multiplication
M4201
Division by 0
M4202
Incorrectly executed modulo
M4203
Error status for PLC module
x
x x x
x x x
x x x
1 5
0 0 0
1 5
0 0 0
1
0 0 0
1 5
0 1 0
1 5
0 1 0
HEIDENHAIN Technical Manual TNC 426, TNC 430
Operand content (dec)
1 5 0 0 0
1 0
1 5 0 1 0
Set
Reset
NC
PLC
NC
PLC
NC
PLC
NC
NC/PLC
1 0 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents