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.

Transparent Mode<br />

8.2.7 Open a Numerical Keypad Acquisition scanu<br />

Syntax<br />

scanu(&question, width)<br />

&question: Address of a character string (ending with a ZERO byte).<br />

width:<br />

Opens a keypad acquisition.<br />

Maximum width of the entry field.<br />

Operation<br />

Scanu() operates in the same way as scano() except that the line editor inhibits entry of characters others than decimal<br />

digits (0, 1 ... 9).<br />

! CAUTION<br />

This <strong>function</strong> can only be used with the 12 line x 40 column font. Entry is on the 11th line,<br />

with deletion of the line just above.<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: Not in transparent mode, the calling task is not a %TF task.<br />

-2: Resource already in use (a keyboard acquisition is already in progress).<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &question parameter error,<br />

- end of string outside authorised area.<br />

8.2.8 Read a String scans<br />

Syntax<br />

scans(&dest)<br />

&dest: Address of the memory area (%M or %V) where the characters entered<br />

from the keyboard will be stored.<br />

Reads a keyboard entry. This <strong>function</strong> must be called after a scano()( or scanu() dialogue opening <strong>function</strong>.<br />

en-938846/7 8 - 13<br />

8

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

Saved successfully!

Ooh no, something went wrong!