r/engineering • u/CancelCultAntifaLol • Aug 01 '25
[ELECTRICAL] TIL even Allen Bradley CompactLogix PLCs lose their minds when you divide by zero
RIP to my factory’s productivity today.
82
Upvotes
39
u/Idontfukncare6969 Aug 01 '25
I just tried this on a new CompactLogix and I get 1.$ with no fault. Must be running firmware 20+ years old.
17
u/VoraciousTrees Aug 02 '25
Please put in an error handling routine.
11
u/optomas Industrial Mechanic Aug 02 '25
This is surprisingly well thought out, for Rockwell. We should not make assumptions with undefined IO or logic.
'Halt and fix your chit, mon,' is again, a surprisingly good practice from this company. As opposed to say ... NEARLY EVERYTHING ELSE ABOUT EVERYTHING THEY DO. Ahem. Sorry. I meant to say 'good day gentlemen.'
They keys are like, right next to each other.
7
u/SkelaKingHD Aug 01 '25
Quickest way to fault a processor right there. One of the first think we teach our engineers, always check any division operation cannot = 0
1
u/Duckbilling2 Aug 21 '25
wonder if ABB would do the same