Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1715

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.15.62 PUSH WORD ACCUMULATOR ONTO THE DATA STACK (PSW)
8.15.63 PULL LOGIC ACCUMULATOR FROM THE DATA STACK (PLL)
January 2012
Syntax:
PSW (PUSH WORDACCU)
Operands:
None
Action:
The PSW command enables you to buffer the word accumulator. With the
PSW command, the control 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 control 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 content
before the module call: 1A 44 3E 18
Function
Buffer the word
accumulator in the data
stack
Call subroutine 15
Restore data stack into
word accumulator.
Syntax:
PLL (PULL LOGICACCU)
Operands:
None
Action:
The PLL command is the counterpart to the PSL command. Data that has been
buffered with the PUSH command can be restored from the data stack by
using the PULL command. The control copies bit 7 of the data stack's current
address into the logic accumulator. If the stack is empty, the control displays
an error message.
Example:
See PSW command.
8.15 Command Set
STL
Accumulator
content
PSW
1A443E18
CM 15
PLW
1A443E18
Data stack
1A443E18
1A443E18
1715

Advertisement

loading