FUNCTION SendEvent : ERROR
This function serves to trigger an event in order to call one or multiple callbacks with this event. It is recommended that IEC programs using this function do set CB_IECPROGRAM as event source and CB_ALL_CLASSES as event class. If the function is used by drivers, it is advisable to use CB_DRIVER as event source. The function will not return before all callbacks have been executed. Thus it is made sure, that all interested parties have terminated their respective reaction until the function returns.
InOut: |
|