Difference between revisions of "Extensions.EventHandling.EventSource"
Jump to navigation
Jump to search
m (Hb moved page EventSource to Extensions.EventHandling.EventSource: #3153) |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Data Type '''EventSource'''}}[[Category:DataType]][[Category:EventHandling]] | {{DISPLAYTITLE:Data Type '''EventSource'''}}[[Category:DataType]][[Category:EventHandling]] | ||
== Classification == | == Classification == | ||
| − | {{ClassificationDataType | EventSource | Event source that generates events | [[Complex Data Type]] | - }} | + | {{ClassificationDataType | EventSource | Event source that generates events | [[Core.DataTypes.Complex Data Type|Complex Data Type]] | - }} |
== Description == | == Description == | ||
The event source data type identifies in OTX an event source, which generates events. | 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. | + | 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 [[Extensions.EventHandling.WaitForEvent|WaitForEvent]] be read and removed activity. |
| − | About the [[CloseEventSource]] activity the event registration can be terminated immediately. | + | About the [[Extensions.EventHandling.CloseEventSource|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. | + | Event sources, the On-The-Fly within a [[Extensions.EventHandling.WaitForEvent|WaitForEvent]] generated activity will be terminated automatically when you exit the activity. |
{{Note|Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.}} | {{Note|Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.}} | ||
Revision as of 06:51, 15 February 2016
Classification
| Name | EventSource |
| Short Description | Event source that generates events |
| Class | Complex Data Type |
| Base Data Type | - |
| 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.
![]()
Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.
![]()
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) |