Help - Search - Members - Calendar
Full Version: Timer help
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
The Turkey Slayer
Right now I'm writing some logic for a cycle complete message display. I have a main cycle timer and a message display timer.

I currently have it set up so the message display timer is triggered by the done bit of the main cycle timer. The message display timer will then time out, then will reset itself and the main cycle timer by its done bit.

The problem is, the done bit of the message display timer never engages, and the timer just keeps cycling. Any suggestions?
Ken Moore
QUOTE(The Turkey Slayer @ Nov 28 2006, 01:42 PM) [snapback]44613[/snapback]
Right now I'm writing some logic for a cycle complete message display. I have a main cycle timer and a message display timer.

I currently have it set up so the message display timer is triggered by the done bit of the main cycle timer. The message display timer will then time out, then will reset itself and the main cycle timer by its done bit.

The problem is, the done bit of the message display timer never engages, and the timer just keeps cycling. Any suggestions?


Are you sure the done bit isn't being reset so fast you can't see it on your PC?
Use the message timer done bit as the input to a counter, see if the counter goes up.
Exactly how are you resetting the timers?
Can you post a code snippet or snap shot?


Perhaps something like this, might solve your timing issue, the done bit from the cycle timer, starts the message timer, the done bit from the message timer resets the cycle timer, thus clearing it's done bit, and resetting the message timer.



The Turkey Slayer
QUOTE(Ken Moore @ Nov 28 2006, 02:22 PM) [snapback]44619[/snapback]

QUOTE(The Turkey Slayer @ Nov 28 2006, 01:42 PM) [snapback]44613[/snapback]
Right now I'm writing some logic for a cycle complete message display. I have a main cycle timer and a message display timer.

I currently have it set up so the message display timer is triggered by the done bit of the main cycle timer. The message display timer will then time out, then will reset itself and the main cycle timer by its done bit.

The problem is, the done bit of the message display timer never engages, and the timer just keeps cycling. Any suggestions?


Are you sure the done bit isn't being reset so fast you can't see it on your PC?
Use the message timer done bit as the input to a counter, see if the counter goes up.
Exactly how are you resetting the timers?
Can you post a code snippet or snap shot?


Perhaps something like this, might solve your timing issue, the done bit from the cycle timer, starts the message timer, the done bit from the message timer resets the cycle timer, thus clearing it's done bit, and resetting the message timer.


It worked! My problem was that the main cycle timer is retentative and I'm using an (RES) bit. I also put a reset bit on the message display timer which was not retentative. As soon as I got rid of the reset bit and placed an XIO of its done bit ahead of it, the timer reset itself (and the main cycle timer) properly.

Ken Moore
Glad to help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.