Difference between revisions of "MC-Basic:event.STATUS"
m (Miborich moved page Axystems:MC-Basic:event.STATUS to MC-Basic:event.STATUS: Global renaming of Axystems: namespace into (Main):) |
|||
Line 45: | Line 45: | ||
|SEE ALSO= | |SEE ALSO= | ||
* [[MC-Basic:event.STATE|event.STATE]] | * [[MC-Basic:event.STATE|event.STATE]] | ||
− | * [[ | + | * [[MC-Basic:task.STATUS|task.STATUS]] |
[[Category:Axystems:MC-Basic:Event Control|event.STATUS]] | [[Category:Axystems:MC-Basic:Event Control|event.STATUS]] | ||
}} | }} |
Revision as of 08:55, 22 May 2014
This query returns the status of an event that is loaded in memory. The information returned will be in the following format:
State <state>: <description> Error <last error number> Source <line of source code> Owner: <calling task>
where <state> is one of the following:
1: Running
2: Stopped (due to IDLETASK)
4: Stopped due to run-time error
Syntax
?<event>.Status
Availability
All versions
Type
String
Range
Returned value: 1, 2, 4
Scope
Task orTerminal
Limitations
Event must be loaded in memory(after the execution of the OnEvent statement and while calling task is running).
Examples
? Event1.Status