defcon.klaxon
Lifetime Supporting Member
Hi guys,
So I'm working on getting a user adjustable time delay implemented in Logix, but it seems like there isn't a built in instruction for this. Basically I want to create a time delay for alarm bits, so that if an alarm condition goes true, it has to remain true for a time delay before the alarm bit is set high and sent to the HMI. The closest thing I can find is a TON, but that's not exactly what I want. The TON enable bit immediately goes true when its rung is energized; I want the enable bit to stay low until the timer reaches a setpoint. Now I could still do that with a TON by using the .DN bit that goes true once the timer delay "preset" has been reached, but the problem is that the TON preset is actually an "immediate" value, and can't be linked to a tag (or so it seems, at least). I need the ability to let the operator on the HMI change the delay setpoint (preset), so without being able to link the preset to a tag this seems impossible.
My workaround so far is to use a TON with a ridiculously high preset, and then use an EQU to compare the TON accumulated counter value to a tag that is adjustable; it works, but I wouldn't exactly call it graceful. I was wondering if there was a better way.
Thanks!
So I'm working on getting a user adjustable time delay implemented in Logix, but it seems like there isn't a built in instruction for this. Basically I want to create a time delay for alarm bits, so that if an alarm condition goes true, it has to remain true for a time delay before the alarm bit is set high and sent to the HMI. The closest thing I can find is a TON, but that's not exactly what I want. The TON enable bit immediately goes true when its rung is energized; I want the enable bit to stay low until the timer reaches a setpoint. Now I could still do that with a TON by using the .DN bit that goes true once the timer delay "preset" has been reached, but the problem is that the TON preset is actually an "immediate" value, and can't be linked to a tag (or so it seems, at least). I need the ability to let the operator on the HMI change the delay setpoint (preset), so without being able to link the preset to a tag this seems impossible.
My workaround so far is to use a TON with a ridiculously high preset, and then use an EQU to compare the TON accumulated counter value to a tag that is adjustable; it works, but I wouldn't exactly call it graceful. I was wondering if there was a better way.
Thanks!