EVENT_CLASS (ENUM) ¶ TYPE EVENT_CLASS : This enumeration describes the event classes. Attributes: qualified_only InOut: Name Initial Comment ALL_CLASSES -1 all classes NO_CLASS 16#0 no classes ONLINE_EVENTS 16#1 general online events INFOS 16#2 infos WARNINGS 16#4 warnings RTS_ERRORS 16#8 errors from runtime SYSTEM_EXCEPTIONS 16#10 system exceptions INTERRUPTS 16#20 interrupts IO 16#40 I/O actions FIELDBUS 16#80 Fieldbus actions TIMERS 16#100 Timer ervents MANUF_SPEC 16#200 manufacturer specific
EVENT_SOURCE (ENUM) ¶ TYPE EVENT_SOURCE : This enumeration describes the triggers of an event. Attributes: qualified_only InOut: Name Initial Comment ALL_SOURCES -1 all sources NO_SOURCE 0 no sources RUNTIME 16#1 runtime SYSTEM 16#2 system IECTASK 16#4 IEC task IECPROGRAM 16#8 IEC program DRIVER 16#10 hardware driver
Functions ¶ Callback Info GetCallback (Function) GetHandleOfCallback (Function) GetNumberActiveCallbacks (Function) IsHandleValid (Function) Helper DecodeClass (Function) DecodeEvent (Function) EncodeSpec (Function) Indirect Functioncall CallFunctionByIndex (Function) PostEvent (Function) RegisterCallback (Function) SendEvent (Function) UnregisterCallback (Function)
Callback Info ¶ GetCallback (Function) GetHandleOfCallback (Function) GetNumberActiveCallbacks (Function) IsHandleValid (Function)
GetCallback (FUN) ¶ FUNCTION GetCallback : ERROR This function gets the callback data structure of a registered callback InOut: Scope Name Type Comment Return GetCallback ERROR Description of the callback conditions and the callback function Input hHandle CAA.HANDLE handle of Callback pCallback POINTER TO CB_CALLBACK Adress of return value
GetHandleOfCallback (FUN) ¶ FUNCTION GetHandleOfCallback : CAA.HANDLE This function gets the handle of callback via the callback number (ctNumber); InOut: Scope Name Type Comment Return GetHandleOfCallback CAA.HANDLE Handle to the callback, CAA.gc_hINVALID if ctNumber is invalid Input ctNumber CAA.COUNT number of Callback (value between 1 and CB_GetNumberActiveCallbacks) peError POINTER TO ERROR Pointer to error ID
GetNumberActiveCallbacks (FUN) ¶ FUNCTION GetNumberActiveCallbacks : CAA.COUNT This function gets the number of registered callbacks InOut: Scope Name Type Comment Return GetNumberActiveCallbacks CAA.COUNT The number of registered callbacks. Input peError POINTER TO ERROR Pointer to an error ID
IsHandleValid (FUN) ¶ FUNCTION IsHandleValid : BOOL This function checks, whether a callback with handle hHandle is registered InOut: Scope Name Type Comment Return IsHandleValid BOOL TRUE if the handle is valid. FALSE otherwhise. Input hHandle CAA.HANDLE handle of Callback peError POINTER TO ERROR Pointer to error ID
IWORKER (ALIAS) ¶ TYPE IWORKER : ASM_IWORKER Attributes: qualified_only
STATE (ALIAS) ¶ TYPE STATE : ASM_STATE Attributes: qualified_only