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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.37 Write n Variables E42000 W_E42000<br />

Syntax<br />

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

W_E42000(&source, number, n)<br />

&source: Source address.<br />

Number: Number of the first E42000 variable to be written (0 ... 127).<br />

n: Number of bytes to be written (1 to 128).<br />

Copies n bytes from &source to variable E42000 + number.<br />

Example<br />

W_E42000(%M100.&, 0, 3)<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: number > 127<br />

number+n > 128<br />

%M100.B<br />

Bit 7 Bit 0<br />

%M101.B<br />

Bit 7 Bit 0<br />

%M102.B<br />

Bit 7 Bit 0<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &source parameter error,<br />

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

E42000<br />

E42001<br />

E42002

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

Saved successfully!

Ooh no, something went wrong!