QUOTE(mad1 @ Jun 12 2007, 08:13 AM) [snapback]55445[/snapback]
What is the function to reset the value of a timer,
I want to reset this to zero after the timer has reached a specified value? Is this accomplished by loading a value into the timer accumulated value?
That depends if it's a regular timer (TMR) or an accumulating timer (TMRA). For a regular timer (TMR) all you have to do to reset (back to zero) is make the conditions in the rung not true. If it's a (TMRA) or accumulating timer, then any true condition in the second rung leading into the timer block will reset it. One note of caution for any one who is new to to automation direct plcs is to be sure to set aside two Vmem locations for a TMRA. So if your using TMRA 3 then you cannot use TMR 4 or TMRA 4. A TMR uses only one Vmem location. As with most plcs you can also load a value into the accumulator register for the timer.
QUOTE(mad1 @ Jun 12 2007, 08:13 AM) [snapback]55445[/snapback]
I changed the instruction to a "TMRA",k30.On the reset line I inserted a equal to relational contact set to TA30. The issue here is that the reset line is active at the start of the program, thus the timer will not start timing?
I'm not exactly sure what your saying here, but I'm going to guess. Are you saying that you have a timer TMRAxxx ( put the address numbers where the lowercase xxx) and the preset is 30 (K30)? Or are you saying you have TMRA30 and you put a equal relational contact(---Ta30=Kxxx--) on the reset line? Remember that an accumulating timer uses two Vmems, two for the timer and two for the accumulator. So you can't use a regular relational contact for an accumulating timer.
Vaughn