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.

2.1.1.3 «System» I/O Card Refresh Task<br />

Processing Performed<br />

This task refreshes the card I/Os:<br />

- read of %I. card inputs,<br />

- write of %Q. card outputs,<br />

- update of I/O card diagnostic variables.<br />

2.1.1.4 «System» UNITE Server Task<br />

Processing Performed<br />

This task processes the UNITE requests sent to the automatic <strong>control</strong> <strong>function</strong> server.<br />

Service Performed by the UNITE Server<br />

The automatic <strong>control</strong> <strong>function</strong> server mainly processes the following UNITE requests:<br />

- Read/write of variables (%I, %Q, %R, %W, %M, %V),<br />

- load/unload of automatic <strong>control</strong> <strong>function</strong> tasks (%TS0, %SP30, etc.),<br />

- automatic <strong>control</strong> <strong>function</strong> STOP (stopping of user tasks),<br />

- automatic <strong>control</strong> <strong>function</strong> INIT (CPU intialisation),<br />

- automatic <strong>control</strong> <strong>function</strong> RUN (running of user tasks).<br />

2.1.2 «User» Tasks<br />

2.1.2.1 Start up Task<br />

Structure of an Application<br />

The %INI task is called by the system before any other user tasks when the automatic <strong>control</strong> <strong>function</strong> is started.<br />

This task can re-configure the I/O cards.<br />

! CAUTION<br />

The system reads the I/O card configuration returned by %INI. Any changes made later to<br />

the configuration are ignored until the next restart.<br />

2.1.2.2 Cyclic Tasks<br />

The cyclic tasks are %TS0 to %TSn where n is incremented from 1 to 5 each RTC cycle.<br />

The execution period of %TS0 is equal to an RTC cycle, i.e. 20 ms.<br />

The execution period of %TS1, %TS2, %TS3 and %TS4 is equal to five RTC cycles, i.e. 100 ms (the fifth RTC cycle<br />

is used by system task %TS5).<br />

Tasks %TS are not interruptible:<br />

- by occurrence of the RTC (1060 series I and series II multicard),<br />

- by the IT set by parameter P99 (1060 series II - USCII).<br />

en-938846/3 2 - 5<br />

2

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

Saved successfully!

Ooh no, something went wrong!