Hi CrossConnect
I imagine something like :
program auxiliary()
begin
while true
l_nKey=getKey()
workingMode(nIsHold)
switch l_nKey
// F1 key
case 271
if nIsHold==2
restartMove()
else
stopMove()
endIf
break
endSwitch
delay(0)
endWhile
end
program start()
begin
taskCreate "T1",100,task1()
taskCreate "tAux",100,Auxiliary()
end
hi klausi
I ran the programe it did stop the robot but did pressing F1 again did not start the motion. I tried in the simulator , not on the robot
Kibdly can u explain me the following doubts
1> why is the delay() command there in the auxiliary programme
2> did i understand the program correctely, if i say that the if programme checks if the robot is in hold conditin or not based on it , it starts the motion via "resetMotion()" or stops the robot via "StopMove()"
3> if i kill the task "T1" if F1 is sensed is it different from stop move in this case. Killing a motion process did stop my robot but isit the correct way
thanks