HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 564
![background image](https://www.manualsdir.com/files/815340/content/doc564.png)
Examples for the commands PS, PL, PSL, PSW, PLL, PLW
The Module 15 is to be called at a specific point in the program. After the return into the main
program, the original Accumulator content is again required for further program run.
Accumulator contents prior to the Call Module: 1A 44 3E 18
Line
Instruction
Accumulator Contents
50
PSW
1 A 4 4 3 E 1 8
49
1 A 4 4 3 E 1 8
52
CM 15
54
PLW
55
.
.
.
1 A 4 4 3 E 1 8
1 A 4 4 3 E 1 8
.
.
.
1 A 4 4
3 E 1 8
Data stack:
Line 50: Save the Word Accumulator onto the Data Stack.
Line 52: Subprogram 15 is called up.
Line 54: The original Accumulator contents are transferred back from the Data Stack and
is available for further program run.
Note:
The sequence for stack operations is the same for all commands. Only the data width varies.