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 />

If OK<br />

Not significant.<br />

Error<br />

-1: n negative or zero<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &dest parameter error,<br />

- &dest+n outside authorised area.<br />

General Purpose Functions<br />

6.24 Set One or More Words setw<br />

Syntax<br />

setw(&dest, w, n)<br />

&dest: Destination address.<br />

w: Value of the word to be set.<br />

n: Number of words to be set.<br />

Sets n words to the value w starting at address &dest.<br />

Return code<br />

If OK<br />

Not significant.<br />

Error<br />

-1: n negative or zero<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &dest parameter error,<br />

- &dest+n outside authorised area.<br />

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

6

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

Saved successfully!

Ooh no, something went wrong!