TraceMgrPacketCheckTrigger (FUN) ¶ FUNCTION TraceMgrPacketCheckTrigger : RTS_IEC_RESULT Checks if the trigger fires this cycle and sets the trigger state accordingly. If the trigger is already reached, ERR_OK is returned. Note: this function is called cyclically by CmpTraceMgr and should normally not be called from an application. Use TraceMgrPacketGetState instead to query the current trigger state. InOut: Scope Name Type Comment Return TraceMgrPacketCheckTrigger RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library): ERR_PARAMETER if hPacket is not a valid trace packet ERR_NOTINITIALIZED if no trigger is defined or if the trigger is disabled ERR_FAILED if the check fails Input hPacket RTS_IEC_HANDLE The trace packet handle
TraceMgrPacketClose (FUN) ¶ FUNCTION TraceMgrPacketClose : RTS_IEC_RESULT Closes a handle opened by TraceMgrPacketOpen. InOut: Scope Name Type Comment Return TraceMgrPacketClose RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library): ERR_PARAMETER if hPacket is not a valid handle Input hPacket RTS_IEC_HANDLE The trace packet handle
TraceMgrPacketComplete (FUN) ¶ FUNCTION TraceMgrPacketComplete : RTS_IEC_RESULT Completes a trace packet and finishes the configuration. This function must be called after all records have been added to the packet. InOut: Scope Name Type Comment Return TraceMgrPacketComplete RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library): ERR_PARAMETER if hPacket is not a valid handle Input hPacket RTS_IEC_HANDLE The trace packet handle
RegisterEventHandler (FUN) ¶ FUNCTION RegisterEventHandler : DINT Actually not implemented InOut: Scope Name Type Return RegisterEventHandler DINT Input deviceId DINT handler tEventHandler userData POINTER TO BYTE
UnregisterEventHandler (FUN) ¶ FUNCTION UnregisterEventHandler : DINT Actually not implemented InOut: Scope Name Type Return UnregisterEventHandler DINT Input deviceId DINT handler tEventHandler
WatchdogSetTime (FUN) ¶ FUNCTION WatchdogSetTime : DINT Sets the watchdog time. The time until the watchdog triggers is the multiplication of factor and timeout_us. @param factor The factor specifies how often the timeout_us has to elapse until the watchdog triggers. @param timeout_us The timeout of the watchdog in microseconds. @return Return DAL_SUCCESS on success, DAL_FAILURE otherwise. InOut: Scope Name Type Return WatchdogSetTime DINT Input factor UDINT timeout_us UDINT
WatchdogStart (FUN) ¶ FUNCTION WatchdogStart : DINT Starts the watchdog. @return DAL_SUCCESS on InOut: Scope Name Type Return WatchdogStart DINT
WatchdogStop (FUN) ¶ FUNCTION WatchdogStop : DINT Stops the watchdog. @return Return DAL_SUCCESS on success, DAL_FAILURE otherwise. InOut: Scope Name Type Return WatchdogStop DINT
WatchdogTrigger (FUN) ¶ FUNCTION WatchdogTrigger : DINT Triggers the watchdog. @return Return DAL_SUCCESS on success, DAL_FAILURE otherwise. InOut: Scope Name Type Return WatchdogTrigger DINT
WriteBit (FUN) ¶ FUNCTION WriteBit : DINT The WiteBit method writes one bit from data to the given offset. @param deviceId The device to write the bit to. @param bitOffset The bit offset to write the bit at. @param data Pointer from where the bit will be written from. @return Returns 0 on success, -1 otherwise. InOut: Scope Name Type Return WriteBit DINT Input deviceId DINT taskId UDINT bitOffset UDINT data POINTER TO BYTE