SysTaskSetInterval (FUN)

FUNCTION SysTaskSetInterval : RTS_IEC_RESULT

<description>

Set the actual interval of a cyclic task. If the specified task is no cyclic task, the function return an error. This interface can be used to synchronize a task to another task or to events.

</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysTaskSetInterval

RTS_IEC_RESULT

Input

hTask

RTS_IEC_HANDLE

<param name=”hTask” type=”IN”>Handle to the task</param>

ulInterval

UDINT

<param name=”ulInterval” type=”IN”>New interval of the task in microseconds!</param>