Activate Bit every time there is a power outage

PLC_n00b_1018

Member
Join Date
Apr 2017
Location
Texas
Posts
23
Hello all!

We have a plant in an area that is relatively prone to power outages. I am using RS Logix 5000 and there is no backup UPS that keeps the PLC running in the event of a power outage. I would like to know how to activate a bit every time there is a power outage and the PLC loses power so we can ensure that they are able to start up the plant safely every time.

Any thoughts would be greatly appreciated!

Thanks
 
You can store the status/phase of the equipment in some tag.
When the plc starts up, check if it was in a safe state (like standby/off) or if it was in production.
 
Copy that. Speaking more generally is there any way I could create a tag that latches every time the PLC loses power? Then make the operators have to manually unlatch it on the HMI. Thanks
 
Speaking more generally is there any way I could create a tag that latches every time the PLC loses power?

how should the plc "know" that it was an intentional power cut or not? The plc will no know, so the tag would always be latched. So, you can just show the message every time the plc boots up.
edit: gclshortt was faster.
 
probably more than you wanted to think about ...

I would like to know how to activate a bit every time there is a power outage and the PLC loses power

are you sure that you phrased that request correctly? ... maybe (just maybe) you meant to say this instead:

I would like to know how to activate a bit every time the power goes off – or even just "flickers" off - even if only for just a fraction of a second or so ...

here's the tricky part that many (most?) programmers don't consider in attacking the potential problems involved in a power "flicker" event ...

the ControlLogix system has a "hold up time" – which basically means that its chassis power supply will keep the processor scanning happily along for about a second or two even AFTER the 120VAC supply feeding the chassis power supply fails ... during that short (but important) period of time, the processor goes right on its merry way – doing its regularly assigned scan stuff ...

so ...

where this MIGHT become critically important is when the plant's power supply happens to drop out just for a fraction of a second or so (at least for anything LESS THAN the processor's "hold up" time) ... in that case, then the PLC processor does NOT see that particular event as a "power failure" ...

in simple terms, the processor might not even really "notice" that the plant's power service "flickered" off ...

in that sort of case, relying on some of the RSLogix/Studio 5000 built-in "start up" features might not provide quite the operation that you MIGHT be expecting ... the simple rung shown below might be more in line with what you need ...

just to nail down the idea I'm describing - in some "flicker" events, neither the First Scan bit - nor the Power-Up Handler - will come into play - since the ControlLogix processor never really "stops" - and so therefore it doesn't experience a "start up" event ... oops! ...

so ...

whatever scheme you finally come up with – I highly recommend that you test the results of its operation by trying several events where the power supply merely "flickers" – and doesn't really go "off" for several seconds or more ...

for some types of systems the unexpected response to a power "flicker" – as opposed to a power "failure" – can be quite surprising – and may fall squarely into the "bad" column of life's experiences ...

NOTE: if you're considering monitoring the voltage from a 24VDC power supply – instead of from a 120VAC supply line – then post again and mention that fact ... hint: the DC power supply invariably has capacitors to filter/smooth its output – and the effect of the capacitors can lead to more complexity than I've covered here ...

be safe ...
.

power_failed_flag.PNG
 
Last edited:

Similar Topics

hi friends can i get a simple way to activate my rslogix 5000 with windows 7 ? as i have the ability to activate it with windows xp
Replies
1
Views
4,558
Hi, i don´t get why my coil doesn't activate when the contact it´s true. I'm new to PLC programming, this is my first project. I'm attaching...
Replies
3
Views
1,497
Hello Friends; I re-host the activation some days before successfully. Now i installed the software to another computer when we start Factory...
Replies
1
Views
1,325
https://i.imgur.com/DxEkaxK.png (HMI IP is set at the device itself) This is my setup, i have a 315 CPU that controls 17 devices in total. In my...
Replies
9
Views
1,809
Good Morning , I'm merging another RS Logix 5000 PLC program ( CompactLogix ) into another . Everything is working great except this one...
Replies
9
Views
3,711
Back
Top Bottom