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.

7.1 Introduction<br />

Task Management<br />

For further information concerning processing of the background tasks, see Section 2.1.2.3.<br />

7.2 Start a Critical Section csbegin<br />

Syntax<br />

csbegin()<br />

Operation<br />

Inhibits pre-emption of the calling task by another %TS, %TH or %TF task.<br />

Return code<br />

Always OK<br />

0<br />

7.3 End a Critical Section csend<br />

Syntax<br />

csend()<br />

Operation<br />

Authorises pre-emption of the calling task by a higher priority task. This <strong>function</strong> cancels the effects of <strong>function</strong><br />

csbegin().<br />

Return code<br />

Always OK<br />

0<br />

7.4 Suspend a %TF task whtr<br />

Syntax<br />

whtr(n)<br />

n: Number of real time clock cycles during which the %TF task is on<br />

WAIT.<br />

Operation<br />

Changes the calling %TF task from EXECUTING state to WAITING state for n RTCs. At the end of this time, the %TF<br />

task goes into READY state. n must be between 0 and 255, (equivalent to 0 to 5.1 secs).<br />

en-938846/7 7 - 3<br />

7

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

Saved successfully!

Ooh no, something went wrong!