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.

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &format parameter error,<br />

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

8.2.6 Open a Keyboard Acquisition scano<br />

Syntax<br />

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

scano(&question, width)<br />

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

width:<br />

Opens a keyboard acquisition.<br />

Maximum width of the entry field.<br />

Operation<br />

The system displays the string pointed to by &question at the bottom of the screen and opens the dialogue after the<br />

string.<br />

If parameter &question == 0, no string is displayed.<br />

Character entry is <strong>control</strong>led by the system line editor.<br />

The line editor checks that the number of characters entered is less than «width».<br />

The line editor commands are the conventional commands of the part programme editor:<br />

- cursor movement left and right, start and end of line,<br />

- character insertion and deletion,<br />

- entry is ended by the line feed key.<br />

! CAUTION<br />

The putchar() and printf() display <strong>function</strong>s are prohibited during a keyboard acquisition.<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.

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

Saved successfully!

Ooh no, something went wrong!