Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CoDeSys V 3.x
SysEvent.library
CONTENT
1 OVERVIEW 3
2 LIBRARY MODULES 4
2.1 SysEventCreate 4
2.2 SysEventDelete 4
2.3 SysEventSet 4
2.4 SysEventWait 5
CHANGE HISTORY 6
libdoc_e.dot / V1.0
1 Overview
Note: Es hngt vom verwendeten Zielsystem ab, welche Systembibliotheken im Steuerungsprogramm verwendet
werden knnen.
This library provides functions for synchronizing and controlling the processing of two (IEC-)
tasks.
A task currently waiting for an event can be re-activated by setting this event by a second
task.
The following events are available for creating, deleting, starting resp. setting a timeout of a
task. The processing is synchronous:
SysEventCreate
SysEvebtDelete
SysEventSet
SysEventWait
libdoc_e.dot / V1.0
2 Library Modules
2.1 SysEventCreate
This function serves to create and name a new event.
The return value of type UDINT is a handle, identifying the event and required as input for the
other library functions.
Input Variable Data type Description
2.2 SysEventDelete
This function serves to delete an event which is identified by the handle returned by
SysEventCreate.
The return value of type UDINT contains an error code and tells about the success of the
operation.
Input Variable Data type Description
2.3 SysEventSet
This function serves to set an event which is identified by the handle returned by
SysEventCreate. Thereby the task currently waiting for the event via SysEventWait will get
active.
The return value of type UDINT contains an error code and tells about the success of the
operation.
Input Variable Data type Description
2.4 SysEventWait
This function serves to wait for the event. By setting a timeout you can define the wait time.
The event for which should be waited is identified by the handle returned by SysEventCreate.
The return value of type UDINT contains an error code and tells about the success of the
operation.
Input Variable Data type Description
Change History
Version Description Date