
3/2000 TNC 416/TNC 406/TNC 306 Commands 7-91
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.
Comentários a estes Manuais