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.

General Purpose Functions<br />

6.36 Read n Variables E42000 R_E42000<br />

Syntax<br />

R_E42000(&dest, number, n)<br />

&dest: Destination address.<br />

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

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

Copies n bytes starting from variable E42000 + number to the area starting at &dest.<br />

Example<br />

R_E42000(%V100.&, 120, 7)<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: number > 127<br />

number+n > 128<br />

E42120<br />

E42121<br />

E42122<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &dest parameter error,<br />

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

Bit 7 Bit 0<br />

Bit 7 Bit 0<br />

Bit 7 Bit 0<br />

%V100.B<br />

%V101.B<br />

%V102.B<br />

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

6

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

Saved successfully!

Ooh no, something went wrong!