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.3k Views Asked by Vinícius A. L. Souza At
4
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.