Push Data Onto The Data Stack (Ps) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.60 PUSH DATA ONTO THE DATA STACK (PS)

Logic processing
with the PS
command
Word processing
with the PS
command
Data stack for byte, word, double word and constant [bit]
31 ....................... 24
x x x x x x x x
x x x x x x x x
D D D D D D D D
K K K K K K K K
7 – 140
Syntax:
PS (PUSH)
Operands:
M, I, O, T, C
Action:
The PS command enables you to buffer data. To do this, the TNC loads the
addressed operand 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]
31..15 ..................... 7 .................. 0
x ..... x x x x x x x x L x x x x x x x
Example:
See PSW command.
Syntax:
PS (PUSH)
Operands:
B, W, D, K
Action:
The PS command enables you to buffer data. The TNC copies the addressed
operand value into the current address of the data stack. During the word
processing, the TNC copies two words per PS command onto the data stack
and extends the operand—in accordance with the MSB—with the correct
algebraic sign. In the event of a stack overflow, the TNC displays an error
message.
23 ....................... 16
x x x x x x x x
x x x x x x x x
D D D D D D D D
K K K K K K K K
Example:
See PSW command.
15 ............................ 8
x x x x x x x x
W W W W W W W W
D D D D D D D D
K K K K K K K K
HEIDENHAIN Technical Manual TNC 426, TNC 430
7 .............................. 0
B B B B B B B B
W W W W W W W W
D D D D D D D D
K K K K K K K K

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