beautypg.com

2 pull data from data stack (pl), 3 load logic accumulator onto data stack (psl), 3 load logic accumulator onto data stack (psl) psl – HEIDENHAIN TNC 306 Technical Manual User Manual

Page 379

background image


3/2000

TNC 416/TNC 406/TNC 306

Commands

7-89

3.11.2 Pull data from Data Stack (PL)

Abbreviation for PLC Editor:

PL (PULL)

Logic

Byte/Word

Double

Constant

Execution time [µs]

3.4

3.8

4.2

----

Number of bytes

20

20

18

----

Logic Execution with the PL Command

Operands: M, I, O, T, C

Operation:
The PL command complements the PS command. Data which are 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.

Logic Execution with the PL Command

Operands: B, W, D

Operation:
The PL command complements the PS command. Data which are 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.

3.11.3 Load logic accumulator onto Data Stack (PSL)

PSL

Abbreviation for PLC Editor:

PSL (PUSH LOGICACCU)

Execution time [µs]

3.0

Number of bytes

20

Operands: none

Operation:
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 organized as 16 bits, 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. In the event of a Stack overflow, an error message will be issued.

Memory allocation in the Data Stack:

Bit 15

7

0

x x x x x x x x L x x x x x x x

This manual is related to the following products: