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.

Return code<br />

Transparent Mode<br />

If OK<br />

0: Dialogue in progress.<br />

1: Number successfully read and converted. The result is transferred into<br />

variable .L pointed to by &lvariable (the dialogue is finished).<br />

The conversion stops on the first non-decimal character.<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 />

- &lvariable parameter error.<br />

8.2.10 Read and Convert a Hexadecimal Number scanx<br />

Syntax<br />

scanx(&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 hexadecimal value entered from the keyboard. This <strong>function</strong> must be called after a scano() or<br />

scanu() dialogue opening <strong>function</strong>.<br />

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

is loaded with 0.<br />

Operation<br />

This <strong>function</strong> is used to receive the value of a hexadecimal 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 />

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

Return code<br />

If OK<br />

0: Dialogue in progress.<br />

1: Number successfully read and converted. The result is transferred into<br />

variable .L pointed to by &lvariable (the dialogue is finished).<br />

The conversion stops on the first non-hexadecimal character.<br />

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

8

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

Saved successfully!

Ooh no, something went wrong!