Extensions.EventHandling.EventSource

From emotive
Jump to navigation Jump to search

Classification

Name EventSource
Short Description Event source that generates events
Class Complex Data Type
Base Data Type ComplexType
Default Value Empty
Provide a Literal No
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

The event source data type identifies in OTX an event source, which generates events.

As soon as an event source is created, see Event Source Terms, begins to register certain events immediately. These events can then successively repeated calls to the WaitForEvent be read and removed activity.

About the CloseEventSource activity the event registration can be terminated immediately.

Event sources, the On-The-Fly within a WaitForEvent generated activity will be terminated automatically when you exit the activity.

Icons Note.png Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.
Icons Note.png Other libraries can define other event sources, eg HMI: Screen Event Source.

Core Conversion

The following table shows the rules for conversion to another data type:

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Undefined (should not be used)
ToFloat Undefined (should not be used)
ToString Returns the term of the event source generated EventSource eventSource = TimerExpiredEventSource(100); String s = ToString(eventSource); // Returns "TimerExpiredEventSource(100)"
ToByteField Undefined (should not be used)

Sample

EventHandling.EventSource EventSourceVariable;