by cahit » Tue Nov 20, 2018 3:30 pm
Hi Dezsoe,
i found this solution for onliy F1 button on UCR201
//--------------------------------------------------------------------------------------------
//M20000, divide the xaxis or yaxis by 2 in combination with USR201
double xvalue;
double yvalue;
yvalue = Convert.ToDouble(AS3.Getfield(227)) / 2;
xvalue = Convert.ToDouble(AS3.Getfield(226)) / 2;
if (AS3.GetLED(155)==true){
exec.Code ("G00 X " + xvalue);
while(exec.IsMoving())
{
exec.Wait(200);
}
}
if (AS3.GetLED(156)==true){
exec.Code ("G00 Y " + yvalue);
while(exec.IsMoving())
{
exec.Wait(200);
}
}
//--------------------------------------------------------------------------------------------
thanks regards
cahit