beautypg.com

2 acquire data from the data stack (pl), 3 load logic accumulator onto the data stack (psl) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 562

background image


01.98

TNC 407/TNC 415/TNC 425

3 Commands

7-101

3.11.2 Acquire Data from the Data Stack (PL)

Abbreviation for PLC Editor:

PL (PULL)

Logic

Byte/Word

Double

Constant

Execution time [µs]

1.1 to 1.5

0.9 to 1.3

0.9 to 1.3

----

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 the Data Stack (PSL)

Abbreviation for PLC Editor:

PSL (PUSH LOGICACCU)

Execution time [µs]

0.6 to 1.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 organised 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