AB 1794-L34 PLC execution time

nqn827

Member
Join Date
Aug 2007
Location
Livermore, CA
Posts
15
Hi All.

I have a AB 1794-L34 PLC running a program with many routines. Is there any "quick-and-dirty" way that I can measure how long it takes to go through the entire program?

TIA
 
Sure. The Logix family provides scantime monitoring for each Task and for each Program.

Select a Task or Program, right-click and select Properties, then select the Monitor tab.

You can use GSV instructions to get this data into the controller program itself for viewing by an HMI, or just view it yourself inside RSLogix 5000.

For a more detailed look at controller resources, use the Logix 5000 Task Monitor tool, which is generally installed along with RSLogix 5000.
 
Another question

Thank a lots, Ken.

I'd like to ask another question about the 1794-L34 PLC: is there any instruction that would tell me that the PLC has just been powered on? The reason is that I need to run an initialize routine only when the PLC is first powered on. BTW, the S:FS doesn't really do what I need.
 
Thank you, gmferg.

BTW, are you still in Modesto? If yes, would you be available for some consulting work? I'm working on a project and would like to be able to have someone to call up for the questions that I have from time to time. Please send me an email at [email protected] if you're interested.

thanks.
 
Thanks nqn827.
I appreciate the offer but my schedule is full and I'm traveling a lot until end of January.

This forum is an excellent resource with very knowledgeable people online practically 24/7. You'll get quicker responses here.

If you're still interested in an controls guy when I free up, I'm always open for projects closer to home.

May I ask what industry you're in?

Thanks,
gmferg
 
Greetings nqn827 ...

this is probably nothing to worry about – but since you're asking about things like "Power-Up Handlers" there is a possible issue that you might want to think about ...

consider that there can be a significant difference in how the processor responds to a full "power FAILURE" – when compared to its response to a brief "power FLICKER" ...

the point is that in most PLC systems the processor can continue to scan its ladder program for an additional second or two AFTER the line power feeding the processor dies ... (the buzzword here is "power supply holdup time") ... a potential problem arises IF (that's a big IF) a field input device to the processor reacts to the power failure by incorrectly responding as an OPEN circuit ...

an example: suppose that an input switch is being fed by a 120VAC power line ... suppose that the switch is presently CLOSED ... suppose that an XIO instruction in the PLC processor's program regards the input signal as a FALSE condition ... let's assume that this situation is the "normal" running condition for the system ...

so - the sun is shining - the birds are singing - life is lovely ...

now suppose that a plant-wide power FAILURE occurs ... in most systems, the 120VAC power source to the input switch will drop to ZERO instantly – but (and here's the tricky part) the PLC processor may continue to scan its program for an additional second or two ... it does this because its own power supply "holds up" the backplane power for a brief period ... now then, during those "extra" scans, the processor will erroneously see the input from our sample switch as a TRUE condition – not as the "normal" FALSE condition that we described above ...

so ... what effect will this have on your system? ... if the answer is "nothing" then you don't really need to worry about any of this ... party on ... on the other hand, in SOME systems, this erroneous input signal could be catastrophic ... specifically, consider that the switch did NOT really get actuated – but the PLC processor (bless its little heart) sure THINKS that it did ...

now then ...

a properly implemented "Power-Up Handler" can indeed come in useful in situations like this – by having the system respond in a graceful manner to a sudden "LOSS of POWER" which occurs while the processor is in the Run mode ...

BUT ... (and now to my major point) ...

suppose that instead of a full "power FAILURE" we only have a brief "power FLICKER" ... specifically, suppose that the power goes off just long enough for the processor to erroneously see our "closed" circuit as an "open" circuit instead ... BUT (and here comes trouble) the power was NOT off long enough to trigger the "Power-Up Handler" into operation ...

specifically, it's quite possible to program a Power-Up Handler which will work flawlessly in cases where the power FAILS and is off for more than a few seconds ... BUT ... that very same Power-Up Handler might not work at all in cases where the line power only FLICKERS off for something less than a few seconds ... oops! ...

many (most?) programmers never even consider situations like this ... and honestly in many (most?) applications the potential for a problem doesn't amount to a hill of beans ... but in other applications, there could certainly be some serious ramifications to the effect that I've just described ... (your mileage may vary) ...

I've attached a screen shot of a quick two-rung "test program" below that might help demonstrate what I'm talking about ... the conditions shown are the result of just "flickering" the power off for one or two seconds ...

notice that the test rung in the top window saw the field input as an OFF signal for 691 scans through the program during the brief "flicker" ...

but also notice that the test rung in the bottom window shows that the Power-Up Handler was NOT triggered into operation ...

so now the big question:

in YOUR particular system would an erroneous signal from a field device be possible in a "power FLICKER" situation? ... and more to the point – would that erroneous signal be something to worry about? ... depending on your answer, you might need to go further than just programming in a Power-Up Handler ...

finally ... if you're interested in this topic, you can find a few more examples in Email Quiz #121 – linked from the "Sample Lessons" page of my website ...

I hope this was helpful – or at least mildly entertaining ...

powerup_test.JPG
 
Last edited:

Similar Topics

Good morning. I'm looking at switching out an older 1794-L34 FlexLogix PLC. My plan was to take out the FlexLogix PLC and add a 1794-AENT then add...
Replies
4
Views
527
I have a customer that has a 1794-L34 and they can not communicate to it using a CP3 cable, they said that the port maybe configured to DH485 I...
Replies
2
Views
1,498
Hi all, I am trying to get an 1794-IRT8 module working with my 1794-L34 Flex Logix R16.22 controller. When I add the module it faults and gives...
Replies
0
Views
2,548
Does anyone know the limitation of the Flexlogic L34 Processor I have been asked how high I can flash this processor forward from my research I...
Replies
1
Views
1,237
having a issue and just wondering if anyone else has run into something like this. have a l34 with 2 local busses. anytime we power down the unit...
Replies
9
Views
3,561
Back
Top Bottom