SysTimerCreateEvent (FUN)
FUNCTION SysTimerCreateEvent : RTS_IEC_HANDLE
<description>This function creates a new timer and sets an event at timer elapsed.</description> <result>Handle of the timer or RTS_INVALID_HANDLE</result>
- InOut:
Scope
Name
Type
Comment
Return
SysTimerCreateEventRTS_IEC_HANDLEInput
hEventRTS_IEC_HANDLE<param name=”hEvent” type=”IN”>Handle to the event that is sent after the interval expires</param>
tIntervalNsSYSTIME<param name=”tIntervalNs” type=”IN”>Period of the timer (timebase = 1 ns)</param>
ulPriorityUDINT<param name=”ulPriority” type=”IN”>Priority of the timer object</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>