How can i do this Call routine help me
i need your helps
PROC sample1()
CONST robtarget ptest:=[[2849.22,1066.10,-534.02],[0.000692304,0.714986,0.699138,0.000942024],[-1,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
MoveL,test, v7000, fine, tGripper;
MODULE sample
PROC sample1()
CONST robtarget ptest:=[[2849.22,1066.10,-534.02],[0.000692304,0.714986,0.699138,0.000942024],[-1,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
MoveL,test, v7000, fine, tGripper;
ENDPROC
ENDMODULE
ENDMODULE
i have one module and this module has got one routine
module name sample
routine name is sample1
i want to run this routine in my flexpendant application one button and this routine run and stop its possible i need sample code please help me i dont want to use screenmaker i am using vs2005 .net basic RAB 5.10
thank you
0
Comments
-
This can be done in a number of different ways. Please find below a code snippet to get you started. Note that this is far from a ready solution, you have to add more logic e.g error handling.
public TpsViewIRC5App4()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();//
// ToDo: Add any constructor code after InitializeComponent call
//aController=new Controller();
aTask = aController.Rapid.GetTask("T_ROB1");
}private void cmdButton_Click(object sender, EventArgs e)
{
aTask.SetProgramPointer("sample", "sample1");
aController.Rapid.Start();
}Lennart H0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings