i need your helps
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
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
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();
}