EasyManua.ls Logo

HEIDENHAIN TNC 430 PA/M - Push Logic Accumulator Onto the Data Stack (PSL); Push World Accumulator Onto the Data Stack (PSW)

HEIDENHAIN TNC 430 PA/M
1135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 142 HEIDENHAIN Technical Manual TNC 426, TNC 430
7.7.62 PUSH LOGIC ACCUMULATOR ONTO THE DATA STACK (PSL)
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
stacks 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.
Example:
See PSW command.
7.7.63 PUSH WORD ACCUMULATOR ONTO THE DATA STACK (PSW)
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
Memory assignment in the data
stack [bit]
15 ........................ 7 ..................... 0
xxxxxxxxLxxxxxxx
Function STL Accumulator content (hex) Data stack (hex)
xx xx xx xx
Buffer the word
accumulator in the
data stack.
PSW 1 A 4 4 3 E 1 8 1A 44 3E 18
Call subroutine 15. CM 15
Restore data stack
into word
accumulator.
PLW 1 A 4 4 3 E 1 8 1A 44 3E 18

Table of Contents

Related product manuals