01.07.2013 Views

Programming manual M238 | 3 MB - BERGER - POSITEC

Programming manual M238 | 3 MB - BERGER - POSITEC

Programming manual M238 | 3 MB - BERGER - POSITEC

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.

Default Task Configuration<br />

Tasks<br />

Default Task Configuration<br />

For the Modicon <strong>M238</strong> Logic Controller:<br />

The MAST task can be configured in Freewheeling or Cyclic mode. The MAST<br />

task is automatically created by default in Cyclic mode. Its preset priority is<br />

medium (15), its preset interval is 20 ms, and its task watchdog service is<br />

activated with a time of 100 ms and a sensitivity of 1. Refer to Task Priorities<br />

(see page 39) for more information on priority settings. Refer to System and Task<br />

Watchdogs (see page 38) for more information on watchdogs.<br />

Designing an efficient application program is important in systems approaching the<br />

maximum number of tasks. In such an application, it can be difficult to keep the<br />

resource utilization below the system watchdog threshold. If priority reassignments<br />

alone are not sufficient to remain below the threshold, some lower priority tasks can<br />

be made to use fewer system resources if the SysTaskWaitSleep function is added<br />

to those tasks. For more information about this function, see the optional SysTask<br />

library of the system / SysLibs category of libraries.<br />

NOTE: Do not delete or change the Name of the MAST task. If you do so,<br />

SoMachine detects an error when you attempt to build the application, and you will<br />

not be able to download it to the controller.<br />

EIO0000000384 04/2012 41

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

Saved successfully!

Ooh no, something went wrong!