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

I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
528
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
91
Hello. Why is my RSLogix 5000 start in grace period mode, even though I have a valid license? I also think I have a decently recent FT Activation...
Replies
3
Views
174
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
194
Back
Top Bottom