Click or drag to resize

TaskProgramChanged Event

This event is raised when the task's program 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 ProgramChangedEventHandler ProgramChanged

Value

Type: ABB.Robotics.Controllers.RapidDomainProgramChangedEventHandler
Examples
This example shows how to subscribe to the event and how to use the event arguments to find out what kind of change has taken place.
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.ProgramChanged += new ABB.Robotics.Controllers.RapidDomain.Task.ProgramChangedEventHandler(t_ProgramChanged);

   private void t_ProgramChanged(object sender, ABB.Robotics.Controllers.RapidDomain.Task.ProgramChangedEventArgs e)
   {       
     if(e.ProgramChangeType == ProgramChangeType.TaskStructural)
     {
        // At least one module was added, removed or renamed 
        ...
     }
   }
See Also