I'm using logic to stop a motor from running once the motor speed reaches the reference motor speed. I am able to do this if I stop my program once the values are equal but I do not want to stop my program quite yet. I want to stop my program once the motor decelerates to a value of 0.
The problem I am having is that once the values are equal, the motor stops....but then it starts to run again once the values "aren't equal".
How can I output a permanent 'True' statement once my motor reaches the reference speed?
Here's a picture if it helps any;
Thanks.