I have to make a circuit to prevent dividing a number by zero. I tried to put a condition in front of the division block but it did not work. What could I do to solve that? Bellow is the non-functioning circuit that I tried. I am using the RSLogix Micro emulator 500 on my computer to simulate the Allen-Bradley PLCs.

How to prevent division by zero in ladder (PLC)?
1.4k Views Asked by Vinícius A. L. Souza At
4
There are 4 best solutions below
0
On
Your original logic looks good. Just change the EQU comparison instruction, in rung #2 to a NEQ instruction. Should work like a champ.
Another preventative rung I add into all my RS Logix 500 programs, at the very last rung to be evaluated, is an OTU s:5/0. This will prevent Math Overflows from Faulting your PLC.



It appears you are testing N7:2 for EQUal to 0? Hence, it will only execute the DIV if N7:2 EQUals 0? Should it be a "NOT EQUAL" box?