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

- &source parameter error,<br />

- &dest parameter error,<br />

- &source+n outside authorised area,<br />

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

6.8 Copy One or More Words cpyw<br />

Syntax<br />

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

cpyw(&dest, &source, n)<br />

&dest: Destination address.<br />

&source: Source address.<br />

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

Copies n words from the source to the destination.<br />

Direction of Transfer<br />

Refer to Section 6.5.<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: n negative or zero<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &source parameter error,<br />

- &dest parameter error,<br />

- &source+n outside authorised area,<br />

- &dest+n outside authorised area.

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

Saved successfully!

Ooh no, something went wrong!