RunRoutineButton query
PaulG
✭
in ScreenMaker
Hi, I have setup my GUI and have run into a slight problem.
I would like to use a runroutinebutton on my screen, to be used as a PP to main button (so an operator doesn't need to go into the program editor in order to set the pp to main)
I am having difficulty making this work. So far I have bound the runroutinebutton to the main routine in the main module. When this button is pressed I get a warning message saying "The robot may move! Press 'yes' to continue and run the selected program" Upon pressing 'yes' I then get the following message:
System.NullReferenceException: Object reference not set to an instance of an object. at ABB.Robotics.ScreenMaker.Windows.Forms.RunRoutineButton.RobotMove_Ack(Objectsender, MessageBoxEventArgs e)
Can anyone see where I am going wrong, and if there is a solution to this?
Thanks
Paul
I would like to use a runroutinebutton on my screen, to be used as a PP to main button (so an operator doesn't need to go into the program editor in order to set the pp to main)
I am having difficulty making this work. So far I have bound the runroutinebutton to the main routine in the main module. When this button is pressed I get a warning message saying "The robot may move! Press 'yes' to continue and run the selected program" Upon pressing 'yes' I then get the following message:
System.NullReferenceException: Object reference not set to an instance of an object. at ABB.Robotics.ScreenMaker.Windows.Forms.RunRoutineButton.RobotMove_Ack(Objectsender, MessageBoxEventArgs e)
Can anyone see where I am going wrong, and if there is a solution to this?
Thanks
Paul
0
Comments
-
Hi,The control is meant to run a routine is a service context, which means that the RAPID routine will be executed only once. This button will move the PP to the specific routine, and then actually start the RAPID execution.The workaround will be to defined a virtual signal which is connected to the system input "StartAtMain". Then you can pulse this signal from the Action actions of a button. You should also not allowed to the button to be clicked while it RAPID is running. For this you can bind the Enabled property of the button to another virtual signal which needs to be connected to the system output "TaskExecuting"Best RegardsCarlos Martinez
ABB0 -
Thanks for the quick reply Carlos
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings