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.9 Copy One or More Long Words cpyl<br />

Syntax<br />

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

&dest: Destination address.<br />

&source: Source address.<br />

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

Copies n long 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.<br />

6.10 Set Self-Test Period diagiq<br />

Syntax<br />

diagiq(period)<br />

period: Self-test period (in tenths of a second).<br />

The system cyclically reads the internal status of the cards connected to the serial bus (%I, %Q) and refreshes<br />

diagnostic word %Irc3C.W.<br />

The default period is 400 milliseconds.<br />

Function diagiq() is used to inhibit the self-test or modify the default period. The period parameter must be ZERO to<br />

inhibit the self-test or between 1 (0.1 second) and 10 (1 second). It should be noted that a short period involves an<br />

extra workload for the CPU.<br />

diagiq() must be called in task %INI.<br />

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

6

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

Saved successfully!

Ooh no, something went wrong!