Push Logic Accumulator Onto The Data Stack (Psl); Push World Accumulator Onto The Data Stack (Psw) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.62 PUSH LOGIC ACCUMULATOR ONTO THE DATA STACK (PSL)

7.7.63 PUSH WORD ACCUMULATOR ONTO THE DATA STACK (PSW)
Function
Buffer the word
accumulator in the
data stack.
Call subroutine 15.
Restore data stack
into word
accumulator.
7 – 142
Syntax:
PSL (PUSH LOGICACCU)
Operands:
None
Action:
The PSL command enables you to buffer the logic accumulator. With the PSL
command, the TNC copies the logic accumulator onto the data stack. Because
the data stack has a width of 16 bits, you must write to it with a minimum
width of one word. The TNC copies the operand value into bit 7 of the data
stack's current address. The vacant bits of the occupied memory remain
undefined or unused. In the event of a stack overflow, the TNC outputs an
error message.
Memory assignment in the data
stack [bit]
15 ........................ 7 ..................... 0
x x x x x x x x L x x x x x x x
Example:
See PSW command.
Syntax:
PSW (PUSH WORDACCU)
Operands:
None
Action:
The PSW command enables you to buffer the word accumulator. With the
PSW command, the TNC copies the word accumulator onto the data stack.
The content of the word accumulator (32 bits) occupies two words on the data
stack. In the event of a stack overflow, the TNC displays an error message.
Example:
Since the sequence is the same for all stack operations, this example also
applies to the commands PS, PL, PSW, PLL, PLW. The difference between
the individual operations lies merely in the transferred data width.
Call Module 15 at a certain place in the program. After returning to the main
program, restore the original accumulator content. Accumulator contents prior
to calling the module: 1A 44 3E 18
STL
Accumulator content (hex)
PSW
CM 15
PLW
x x
x x
x x
x x
1 A
4 4
3 E
1 8
1 A
4 4
3 E
1 8
HEIDENHAIN Technical Manual TNC 426, TNC 430
Data stack (hex)
1 A 4 4 3 E 1 8
1 A 4 4 3 E 1 8

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