I have the following code in a function.
SETLCD 1,1, STR$(CtrPV[1])
if CtrPV[1] = 0 then
SETLCD 2,2, "Here"
SETIO stop
stepmoveabs 1,0,5 'goto home position
'CLRIO stop
call Init ' initialize all variables
'CLRIO stop
return
endif
stepmove 1, C, 4
The problem I am having is the SETIO stop operates the input so the motor stops, but I cannot turn that back off, even with a CLRIO stop.
I want simulate the momentary action of the pushbutton to turn the motor off.