rs-logix 5000

RY_Guthrie

Member
Join Date
Nov 2011
Location
Las vegas, NV
Posts
263
I was wanting to program a timer in that would start timing when the the plc powered up, if i put a timer in a rung with no conditional contacts on the first pass will it start timing? and every time the plc is powered down will it reset and repeat the process when the plc comes back up? I am talking a ton timer not a re-tentative timer. Thanks for any help!
 
Just curious,

If you put a first scan bit (XIC) as a conditional instruction in front of a timer.....

Would the timer actually keep timing after the first scan?

Or would it only time for 1 scan? (the first scan)

Seems that a first scan instruction would be just that.....only first scan.

Or am I thinking all wrong on this. o_O

Just thinking out loud, but seems like you would need to latch the timer with at .TT bit in parallel with the FS bit to keep the timer, timing.


BCS
 
Last edited:
Or the enable bit .EN if desired.

Hi widelto,

So the first scan bit would only allow the one scan, as I thought then.

At first read of this thread I started thinking " I have been going at this first scan thing all wrong" since it seemed the below was being suggested.

***FS***
----] [----------------------------Timer


Had to check for my own benefit.

Thanks,
BCS
 
Just curious,

If you put a first scan bit (XIC) as a conditional instruction in front of a timer.....

Would the timer actually keep timing after the first scan?

Or would it only time for 1 scan? (the first scan)

Seems that a first scan instruction would be just that.....only first scan.

Or am I thinking all wrong on this. o_O

Just thinking out loud, but seems like you would need to latch the timer with at .TT bit in parallel with the FS bit to keep the timer, timing.


BCS

Either use NOT the FS bit to enable the timer, or use the FS bit to Reset the timer while enabling it unconditionally.
 
This rung in Logix-500 does exactly what you want using the logic you described. Why would it not work on CLX?

power on timer.PNG
 
This rung in Logix-500 does exactly what you want using the logic you described. Why would it not work on CLX?

I think that it probably would. I've never tried it. My only concern is whether the accumulator register would be reset by cycling run mode. All outputs are reset to zero when the processor is stopped and restarted, aren't they?
 
All outputs are reset to zero when the processor is stopped and restarted, aren't they?
I cycled in and out of Run/Program a couple of times. The .acc value remains when going to program but clears and timing begins anew when going back to RUN
 
That's correct. Before a Logix PLC begins executing the code, it runs a pre-scan operation. During this prescan operation, all non-retentive timers are reset (ACC reset to zero, and .DN, .EN and .TT bits turned off).

So yes, just put a TON on a rung and it will reset and start timing every time your PLC goes to run mode, be that following a power up, a majjor fault, or a key switch from program to run.
 
A Timer On (TON) instruction is "non-retentive".

That means that during the pre-scan it will be reset.

So if you had an unconditional rung driving a TON, it will get enabled and start timing on the first scan, and continue timing until the .ACC is greater than or equal to the .PRE.

Restarting the processor, either by going to run from program mode, or from a power-cycle, will trigger the "pre-scan" and a TON timer will be reset.

EDIT : ASF is a faster typist....
 
All AB PLC's have a Per-Scan that scans all logic outputs as being false. The exception is for routines that do not have a hot branched JSR like a subroutine. Also latches will remain in the last state.

So your timer will be scanned false and thus reset in the Pre-Scan phase.
 

Similar Topics

Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
154
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
574
Is there a way to use the FAL instruction to do +=2 instead of +=1? I have an array that is organized with alternating "data" and "flag" values...
Replies
5
Views
126
I have an AOI with revision notes. Someone entered the last note into the description instead of the notes. I cannot just click into the revision...
Replies
4
Views
152
Back
Top Bottom