Logic Gates in PLC Ladder Logic: A Beginner’s Guide

Tutorials

Logic gates are an electronics circuit which makes logical decisions based on the combination of digital signals present on its inputs. clickhere to read Introduction to PLCs.

OR gate

Y=A + B

An OR gates produces a HIGH on the outputs when any of the inputs is HIGH. The outputs is LOW when all the inputs are LOW.

In this ladder program, the output Y1 is HIGH when either X1 or X2 is HIGH, and vice versa.

AND gate

Y=A.B

An AND gate produces a HIGH output only when all the inputs are HIGH. The output is LOW when any one input is LOW.

In this ladder program, the output Y1 is HIGH when both inputs X1 and X2 are HIGH; otherwise, output Y1 is LOW

NOT gate

The inverter (NOT circuit) performs the operation called inversion or complementation. The inverter changes one logic level to the opposite level

The Y1 is on when power is supplied to it, and Y1 will turn off if X1 is triggered.

XOR gate

An XOR gate produces a HIGH output only when one of its inputs X1 OR X2 IS HIGH. The output is LOW in any other condition.

The output Y1 is only set to HIGH in two specific conditions: when X1 is ON and X2 is OFF, or when X1 is OFF and X2 is ON. In all other scenarios, Y1 remains at a LOW state.

NAND gate

The NAND gate is like a digital detective that reveals falsehood. It takes multiple inputs and declares ‘false’ only when every input is ‘true.’ In this sense, it’s the mirror image of an AND gate, constantly seeking out the truth in a sea of possibilities.

Y1 shines its light in every scenario, except when both X1 and X2 join forces to dim its glow.

The video showcases the design of all the Previously mentioned logic gates within the Mitsubishi GXWorks 2 software

logic gates ladder diagram in gxworks2.

Denesh Neupane

Denesh is a tech enthusiast who enjoys sharing ideas and creative digital solutions. With a passion for turning concepts into real projects, he loves exploring new technologies.

Read More from Denesh Neupane →

Discussion (3)

토닥이외모
August 20, 2025
That was exactly what I needed — thanks, 토닥이!
토닥이
August 4, 2025
When life feels overwhelming, 토닥이 offers balance in the simplest way.
강남여성전용마사지
July 29, 2025
My stiff shoulders softened after a session at 강남여성전용마사지. I was genuinely impressed.

Share Your Thoughts

Your email address will not be published. Required fields are marked *