I browsed the forums a bit but couldn't find an exact response to this issue. In most cases people seemed to recommend using TON timers instead of TOF. But then I saw the R. Beaufort quiz PDF which explains how unexpected issues can happen there too.
So curious if anyone has a better solution than what I found. It's one of those things that feels like it shouldn't be this hard, but I haven't been able to crack it.
Functionality I'm looking for is pretty simple. Have a hydraulic system which needs to keep some valves open for a few seconds after the command is removed to depressurize the cylinder (there is a separate build pressure valve which closes right away). So I have a TOF timer after the command is removed, I hold the output for a few seconds. The issue is when the e-stop is pressed, the TOF goes, if the e-stop is reset quickly, it's possible the output will re-energize. Granted I'm being a bit anal with this, this timer only needs to be a few seconds, and the chance of an e-stop being cleared that quickly is very small...if it really was an emergency situation, I doubt they're going to be ready to go before this TOF finishes anyway, but I want the code to be as safe as possible...accidental restarts are bad.
My solution was to use the E-stop (interlock in my code) to set the ACC equal to the PRE so the timer stops right away. Just wondering if there is a more elegant way to do this using DN, EN, TT bits. Or if this is a solution others have used.
Can anyone see any download/first scan issues that might come up with this code?
So curious if anyone has a better solution than what I found. It's one of those things that feels like it shouldn't be this hard, but I haven't been able to crack it.
Functionality I'm looking for is pretty simple. Have a hydraulic system which needs to keep some valves open for a few seconds after the command is removed to depressurize the cylinder (there is a separate build pressure valve which closes right away). So I have a TOF timer after the command is removed, I hold the output for a few seconds. The issue is when the e-stop is pressed, the TOF goes, if the e-stop is reset quickly, it's possible the output will re-energize. Granted I'm being a bit anal with this, this timer only needs to be a few seconds, and the chance of an e-stop being cleared that quickly is very small...if it really was an emergency situation, I doubt they're going to be ready to go before this TOF finishes anyway, but I want the code to be as safe as possible...accidental restarts are bad.
My solution was to use the E-stop (interlock in my code) to set the ACC equal to the PRE so the timer stops right away. Just wondering if there is a more elegant way to do this using DN, EN, TT bits. Or if this is a solution others have used.
Can anyone see any download/first scan issues that might come up with this code?