
Turning Motors on and off

mbwelenc
✭
Hi, I'm a newbie to PC SDK and I'm working on an application that requires being the ability to turn the motors on or off. I'm using PC SDK version 5.11. Is there a method, either directly or through RAPID, to turn the motors on or off?
0
Comments
-
It's easy
In my case, I use Visual studio C# to do my application. And there is a button event to turn on or off
private Controller mycontroller = null;private void button_Click(object sender, EventArgs e){if (mycontroller.State == ABB.Robotics.Controllers.ControllerState.MotorsOn){mycontroller.State = ABB.Robotics.Controllers.ControllerState.MotorsOff;}else{mycontroller.State = ABB.Robotics.Controllers.ControllerState.MotorsOn;}}
then done.0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings