Click or drag to resize

TaskExecutionStateChanged Event

This event is raised when the execution state of the task is changed.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public event ExecutionStateChangedEventHandler ExecutionStateChanged

Value

Type: ABB.Robotics.Controllers.RapidDomainExecutionStateChangedEventHandler
Examples
This example shows how to subscribe to the event.
using ABB.Robotics;
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.RapidDomain;
...
   Controller c = new Controller();
   Rapid r = c.Rapid;
   Task t = r.GetTask("T_ROB1");
   t.ExecutionStateChanged += new ABB.Robotics.Controllers.RapidDomain.ExecutionStateChangedEventHandler(t_ExecutionStateChanged);

   private void t_ExecutionStateChanged(object sender, ABB.Robotics.Controllers.RapidDomain.ExecutionStateChangedEventArgs e)
   {
       if (e.ExecutionState == ExecutionState.Stopped)
       {
           // Do something
       }
    else
    {
           // ...
    }
   }
See Also