06.08.2013 Views

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

Technical Manual TNC 360 - heidenhain - DR. JOHANNES ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.11.2 Acquire data from the data stack (PL)<br />

Abbreviation for PLC Editor: PL (PULL)<br />

Logic Byte/Word Double Constant<br />

Execution time [µs] 3.4 3.8 4.2 ----<br />

Number of bytes 20 20 18 ----<br />

Logic Execution with the PL Command<br />

Operands: M, I, O, T, C<br />

Operation:<br />

The PL command complements the PS command. Data which are saved with PUSH can be taken<br />

from the Data Stack again with PULL. With logic execution, bit 7 is copied from the current address<br />

of the Data Stack into the addressed operand with a PL command. If the Stack is empty, an error<br />

message will be issued.<br />

Logic Execution with the PL Command<br />

Operands: B, W, D<br />

Operation:<br />

The PL command complements the PS command. Data which are saved with PUSH can be taken<br />

from the Data Stack again with PULL. With Word execution, two Words are copied from the current<br />

address of the Data Stack into the addressed memory area with a PL command. If the Stack is<br />

empty, an error message will be issued.<br />

3.11.3 Load logic accumulator onto the data stack (PSL) PSL<br />

Abbreviation for PLC Editor: PSL (PUSH LOGICACCU)<br />

Execution time [µs] 3.0<br />

Number of bytes 20<br />

Operands: none<br />

Operation:<br />

The Logic Accumulator can be buffered with the PSL command. For this purpose, the Logic<br />

Accumulator is loaded onto the Data Stack. Since the Data Stack is organized as 16 bits, it must be<br />

written to with a minimum width of one Word. During this the content of the Logic Accumulator is<br />

copied into the current address of the Data Stack. The free bits of the reserved memory are<br />

undefined or unused. In the event of a Stack overflow, an error message will be issued.<br />

Memory allocation in the Data Stack:<br />

Bit 15 7 0<br />

x x x x x x x x L x x x x x x x<br />

7-90 <strong>TNC</strong> <strong>360</strong> 3 Commands 8/95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!