No it wont actually show a feed hold or anything this way, but it should stop moving completely. You removed the stopcoordinatedmotion line right? All you will need this way is just the one line:
if (FRO < .03) FRO = 0;
If your still having trouble for some reason and want to try the other way id probably try something like this:
Code:
if (FRO < .03 && !ReadBit(xx)) // If FRO below 0.03 and not already stopped
{
StopCoordinatedMotion(); // Stop
SetBit(xx); // Set bit to indicate stopped by pot
}
if (FRO > .04 && ReadBit(xx)) // If FRO above 0.04 and stopped by pot
{
ResumeCoordinatedMotion(); // Resume
ClearBit(xx); // Clear bit to indicate stopped by pot
}
This should apply a proper feedhold and then remove it when you increase the pot. You will have to enter some number in place of XX for an unused bit. I think there is a range of numbers that can be used for things like this that are not used for any inputs and outputs but im not sure what they are, maybe Tom can help with that. Any unused output number should work fine as well to test.