15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

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.

General Purpose Functions<br />

6.14 Simulate Operator Panel Keyboard putkey<br />

Syntax<br />

putkey(key_code)<br />

key_code: ASCII code of an operator panel key.<br />

Simulation of the operator panel keyboard by the machine processor.<br />

Operation<br />

Function putkey() is enabled if the panel is absent (%W5.0 = 1).<br />

To make sure a simulated key code is accepted by the CNC, wait for the return code to become 0 after sending the<br />

key code. This means that the key code was accepted by the CNC, but there is no way of knowing whether the code<br />

will be processed. It is therefore recommended to apply a timeout of at least 100 ms before a new call to putkey().<br />

REMARK The value OxAF can be set in the argument «Key_code» to call the transparent mode<br />

directly.<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: Operator panel keyboard not disabled.<br />

1: Buffer full, repeat the call to putkey(..)<br />

6.15 Shortest Path Calculation qcktool<br />

Syntax<br />

qcktool(origin, destination, n)<br />

origin: Origin pocket number (see Remark).<br />

destination: Destination pocket number (see Remark).<br />

n: Number of pockets in the tool carousel.<br />

Function qcktool() determines the number of pockets and the optimum direction of rotation to go from the origin pocket<br />

to the destination pocket in a tool carousel.<br />

REMARK The pockets are numbered from zero up (from 0 to n-1).<br />

en-938846/7 6 - 15<br />

6

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

Saved successfully!

Ooh no, something went wrong!