17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

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.

4.4.2 Installing / Uninstalling a Timer Task<br />

Function Libraries<br />

A timer task is an executable unit within a program run<br />

with several other processes being allowed to run at the<br />

same time but without a time slice being allocated to the<br />

timer task. In other words, this kind of timer task is run<br />

exactly when it is requested to by a timer interrupt.<br />

Timer task properties:<br />

The program identified by its index is marked as a<br />

separate process by the operating system and runs at<br />

defined intervals, interrupting the process that is currently<br />

running. The timer task is run once, then terminated and<br />

the interrupted process is resumed.<br />

Parameter Type Value Explanation<br />

NPOU_IDparam WORD module index<br />

TTIME WORD<br />

Timer task usage:<br />

1..<br />

65535<br />

time interval, in 1ms<br />

(1ms..65,535s)<br />

0 not allowed!<br />

A timer task is beneficial wherever everything depends on<br />

a high accuracy of repetition in time. Timer tasks work just<br />

like timer modules in KUBES controllers.<br />

The watchdog can be enabled.<br />

The programmer must make sure that the timer task's<br />

runtime never exceeds the time set as "TTIME".<br />

75

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

Saved successfully!

Ooh no, something went wrong!