Problem with signals
TEUTON
✭
Hi people! I'm programming with PC SDK (not Webware SDK). I have a problem, first I get the signals of the robot and then I want to change one. But when the programm executes the Set() or Reset() method, it throws a exception: ABB.Robotics.ModeRejectException. I don't now what I can do. Please, Can anybody help me?
The source code is:
private void button2_Click(object sender, EventArgs e)
{
if (button2.Text != "Indef.")
{
DigitalSignal garra = (DigitalSignal)senyales[8]; ;
if (garra.Value == 0)
garra.Set();
else garra.Reset();
if (button2.Text == "Activar")
button2.Text = "Desactivar";
else button2.Text = "Activar";
ActualizarSenyal();
}
}
"senyales" has all the signals that the robot.
Thank you a lot.
The source code is:
private void button2_Click(object sender, EventArgs e)
{
if (button2.Text != "Indef.")
{
DigitalSignal garra = (DigitalSignal)senyales[8]; ;
if (garra.Value == 0)
garra.Set();
else garra.Reset();
if (button2.Text == "Activar")
button2.Text = "Desactivar";
else button2.Text = "Activar";
ActualizarSenyal();
}
}
"senyales" has all the signals that the robot.
Thank you a lot.
0
Comments
-
Look at the Access level (eio parameter) of the signals you are trying to modify. If they are set to DEFAULT, then you cannot modify them from a remote client. You must change the access level of the signal to allow it to be modified by a remote client.Russell Drown0
-
Thank you a lot. The program runs perfectly fine.
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings