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.

Operation<br />

This <strong>function</strong> is used to receive the string entered at the end of an operator dialogue.<br />

The system ends the string with a ZERO byte.<br />

If the dialogue is still in progress (line feed key not pressed), the code 0 is returned. It is therefore necessary to call<br />

scans() cyclically until the end of the dialogue.<br />

Return code<br />

If OK<br />

0: Dialogue in progress.<br />

n > 0: Number of characters transferred into &dest (the dialogue is finished).<br />

Error<br />

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

-2: No dialogue in progress.<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &dest parameter error,<br />

- end of acquisition field outside authorised error.<br />

8.2.9 Read and Convert a Decimal Number scand<br />

Syntax<br />

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

scand(&lvariable)<br />

&lvariable: Address of an .L variable (e.g. %V100.L) where the ASCII -> signed integer<br />

conversion of the string entered from the keyboard will be loaded.<br />

Reads and converts a decimal value entered from the keyboard. This <strong>function</strong> must be called after a scano() or scanu()<br />

dialogue opening <strong>function</strong>.<br />

The conversion stops on the first non-decimal character. If no decimal characters are detected, %lvariable is loaded<br />

with 0.<br />

Operation<br />

This <strong>function</strong> is used to receive the value of a decimal number at the end of an operator dialogue.<br />

If the dialogue is still in progress (line feed key not pressed), the code 0 is returned. It is therefore necessary to call<br />

scand() cyclically until the end of the dialogue.

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

Saved successfully!

Ooh no, something went wrong!