HEIDENHAIN TNC 122 Technical Manual User Manual
Page 59

58
TNC 122
12 PLC Description
4/97
Word execution with the PS command
Operands: B, W, D, K
With the PS command data is buffered by copying the addressed memory area (B, W, D, K) into the
current address of the Data Stack. With Word execution, two Words are reserved as standard on
the Data Stack per PS command. The operand is extended in the Stack with sign justification
corresponding to the MSB. If there is a stack overflow, an error message will be issued.
Load Logic Accumulator onto the Data Stack (PSL)
The Logic Accumulator can be buffered with the PSL command. For this purpose, the Logic
Accumulator is loaded onto the Data Stack. Since the Data Stack is 16-bit, it must be written to with
a minimum width of one Word. During this the content of the Logic Accumulator is copied into the
current address of the Data Stack. The free bits of the reserved memory are undefined or unused. If
there is a stack overflow, an error message will be issued.
Load Word Accumulator onto the Data Stack (PSW)
The content of the Word Accumulator can be buffered with the PSW command. For this purpose,
the Word Accumulator is copied into the Data Stack. The content of the Word Accumulator (32 bits)
reserves two Words on the Data Stack. If there is a stack overflow, an error message results.
Acquire data from the Data Stack (PL)
Logic execution with the PL command
Operands: M, I, O, T, C
The PL command complements the PS command. Data that have been saved with PUSH can be
taken from the Data Stack again with PULL. With logic execution, bit 7 is copied from the current
address of the Data Stack into the addressed operand with a PL command. If the Stack is empty, an
error message will be issued.
Word execution with the PL command
Operands: B, W, D
The PL command complements the PS command. Data that have been saved with PUSH can be
taken from the Data Stack again with PULL. With Word execution, two Words are copied from the
current address of the Data Stack into the addressed memory area with a PL command. If the Stack
is empty, an error message will be issued.
Acquire Logic Accumulator from the Data Stack (PLL)
The PLL command complements the PSL command. With a PLL instruction, bit 7 from the current
address of the Data Stack is copied into the Logic Accumulator. If the stack is empty, an error
message will be issued.
Acquire Word Accumulator from the Data Stack (PLW)
The PLW command complements the PSW command. With a PLW instruction, two Words are
copied from the Data Stack into the Word Accumulator. If the stack is empty, an error message will
be issued.