Gets or sets a value indicating if the task will start when RAPID execution is started.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public bool Enabled { get; set; }
Property Value
Type:
Booleantrue if task will start with execution, else false.
Exceptions Remarks Grant UAS_RAPID_RESTART is required to set Enabled state.
Examples This example enables task T_ROB1
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.RapidDomain;
...
public void EnableTRob1()
{
try
{
EnableTask("T_ROB1");
}
catch (System.Exception se)
{
}
}
private void EnableTask(string taskName)
{
Controller c = null;
Task t = null;
try
{
c = new Controller();
if(c == null)
{
}
t = c.Rapid.GetTask(taskName);
if(t == null)
{
}
if (t.Enabled == false)
t.Enabled = true;
}
catch (System.Exception se)
{
}
finally
{
if (t != null)
t.Dispose();
t = null;
if (c != null)
c.Dispose();
c = null;
}
}
...
See Also