Difference between revisions of "MC-Basic:EVENTLIST"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?Eventlist<br> ?''<task>''.EventList |AVAILABILITY= All versions |DESCRIPTION= List of the names of the existing events and their states. T…')
 
 
(8 intermediate revisions by 4 users not shown)
Line 6: Line 6:
 
?Eventlist<br>
 
?Eventlist<br>
  
?''<task>''.EventList
+
?<''task''>.EventList
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 32: Line 32:
 
If the event is enabled, the Status is On. If the condition has been detected (the event has been triggered), the value of Edge is Triggered (1). If the parent task or one of its events is running, Action is set to Run.
 
If the event is enabled, the Status is On. If the condition has been detected (the event has been triggered), the value of Edge is Triggered (1). If the parent task or one of its events is running, Action is set to Run.
  
If a ''<task>'' precedes EVENTLIST, only events belonging to the specified task are listed.
+
If a <''task''> precedes EVENTLIST, only events belonging to the specified task are listed.
  
 
|TYPE=
 
|TYPE=
Line 50: Line 50:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 58: Line 58:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:EVENTOFF|EVENTOFF]]
+
* [[MC-Basic:EVENTOFF|EVENTOFF]]
* [[Axystems:MC-Basic:EVENTON|EVENTON]]
+
* [[MC-Basic:EVENTON|EVENTON]]
* [[Axystems:MC-Basic:ONEVENT|ONEVENT]]
+
* [[MC-Basic:ONEVENT|ONEVENT]]
 
 
  
 +
[[Category:MC-Basic:Event Control|EVENTLIST]]
 
}}
 
}}

Latest revision as of 09:15, 22 May 2014

List of the names of the existing events and their states. The information is returned in the following format:

List of the names of the existing events and their states. The information is returned in the following format:

All versions:

EventName = <event>, State=Running | Stopped | Error, Priority=<priority>, Owner=<parent task>, Edge=Triggered | UnTriggered, Scan=<scan rate>,

Status = On | Off

If the event is enabled, the value of State is 1. If the condition has been detected (i.e., the event has been triggered), the value of Edge is 1. If the event action code is running, the value of State is set to Running.

Versions 3.0 and above:

Name = <event>, Owner=<parent task>, Edge=0 | 1,State=0 | 1,

Scan=<scan rate>, Priority=<priority>, Action = Stop | Run, Status = On | Off

If the event is enabled, the Status is On. If the condition has been detected (the event has been triggered), the value of Edge is Triggered (1). If the parent task or one of its events is running, Action is set to Run.

If a <task> precedes EVENTLIST, only events belonging to the specified task are listed.

Syntax

?Eventlist

?<task>.EventList

Availability

All versions

Scope

Terminal

Limitations

Read only

Examples

?EventList                                        ‘returns Name = EV1, Owner = EVENT.PRG,

Edge = 0, State = 1, Scan = 250, Priority = 2, Action = stop

See Also