Re: Implementing a non blocking delay
Posted: Sat Jan 24, 2026 8:12 pm
Hey
Really sorry for this as it’s something that I realised when putting this in practice. So it goes like this:
I managed to make count variable numbers like when I press button A, the LED lights after 3 seconds and shuts off at about 3.3seconds since the button is pressed. Like a 300ms pulse is given.
But if I press the button A again before this 3.3 seconds, then there is no second output since the first on is not completed. What made me realise this is, there could be two signals of the same category (consider it as button A being pressed again 1 second apart) from the PLC, depending on the reading picked from the camera.
Regards
Really sorry for this as it’s something that I realised when putting this in practice. So it goes like this:
I managed to make count variable numbers like when I press button A, the LED lights after 3 seconds and shuts off at about 3.3seconds since the button is pressed. Like a 300ms pulse is given.
But if I press the button A again before this 3.3 seconds, then there is no second output since the first on is not completed. What made me realise this is, there could be two signals of the same category (consider it as button A being pressed again 1 second apart) from the PLC, depending on the reading picked from the camera.
Regards