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
SysTimerCreateEvent
RTS_IEC_HANDLE
Input
hEvent
RTS_IEC_HANDLE
<param name=”hEvent” type=”IN”>Handle to the event that is sent after the interval expires</param>
tIntervalNs
SYSTIME
<param name=”tIntervalNs” type=”IN”>Period of the timer (timebase = 1 ns)</param>
ulPriority
UDINT
<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>
pResult
POINTER TO RTS_IEC_RESULT
<param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>