SysTimerCreateCallback2 (FUN)
FUNCTION SysTimerCreateCallback2 : RTS_IEC_HANDLE
<description>This function creates a timer and calls a callback function.</description> <result><p>RESULT: Handle of the timer or RTS_INVALID_HANDLE if failed</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysTimerCreateCallback2RTS_IEC_HANDLEInput
pfTimerCallback<param name=”pfTimerCallback” type=”IN”>Pointer to a callback function</param>
hParamRTS_IEC_HANDLE<param name=”hParam” type=”IN”>Parameter for callback routine</param>
tIntervalNsSYSTIME<param name=”tIntervalNs” type=”IN”>Interval of the timer (timebase = 1 ns)</param>
ulPriorityUDINT<param name=”ulPriority” type=”IN”>Priority of the timer object</param>
ulTypeUDINT<param name=”ulType” type=”IN”>Timer type. See corresponding category.</param>
pfExceptionHandler<param name=”pfExceptionHandler” type=”IN”>Pointer to an optional exception handler. Can be NULL.</param>
pResultPOINTER TO RTS_IEC_RESULT
<param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>