16
Technical support / TIMER Contact Behavior
« on: September 13, 2017, 04:41:50 PM »
I have run into a ladder logic behavior that I can't quite figure out.
I have attached a screen shot of the entire program.
The middle rung of logic is a simple oscillator that uses a TIMER and it's inverted contact in a bit of a loop. I am an old hardware guy and I'd describe this as either a relaxation oscillator or a ring oscillator.
My expectations are that once the TIMER runs out that it's contact would go active for 1 entire scan of the ladder logic and then go inactive for the SV period of the TIMER.
This contact behavior is consistent with both the simulator and my Nano-10 test hardware.
What I observe:
Why can't I come up with a good story as to why the RELAY contact is not visible below the line of code with the TIMER, but is visible on the next scan to ladder rungs that come before the TIMER.
I am just getting too senile to work with this stuff???
Best regards,
Gary D*ckinson
I have attached a screen shot of the entire program.
The middle rung of logic is a simple oscillator that uses a TIMER and it's inverted contact in a bit of a loop. I am an old hardware guy and I'd describe this as either a relaxation oscillator or a ring oscillator.
My expectations are that once the TIMER runs out that it's contact would go active for 1 entire scan of the ladder logic and then go inactive for the SV period of the TIMER.
This contact behavior is consistent with both the simulator and my Nano-10 test hardware.
What I observe:
- The TIMER counts down and reloads with a period determined by it's SV. It oscillates as expected!
- The TIMER's contact goes active and inactive and can be "seen" on ladder rungs before the TIMER. As expected!
- The contact appears to only be inactive after the rung with the TIMER.
Why can't I come up with a good story as to why the RELAY contact is not visible below the line of code with the TIMER, but is visible on the next scan to ladder rungs that come before the TIMER.
I am just getting too senile to work with this stuff???
Best regards,
Gary D*ckinson