Example of PLC Programming based on Logic Circuit

 Example of PLC programming based on the logic circuit using Schneider Electric EcoStruxure Machine Expert Basic.

PLC Programming based on Logic Circuit

Design a PLC ladder logic for the following Logic Circuit.

We are using toggle Inputs to control the output.

Logic circuit PLC programming tutorial

PLC Learning Videos for Beginners

In this video, we explained this PLC programming example with details for beginners.

Program I/O Details

Digital Inputs:

  • A: I0.0
  • B: I0.1
  • C: I0.2
  • D: I0.3
  • E: I0.4
  • F: I0.5

Digital Outputs:

  • Y: Q0.0

Ladder Logic

Here is the answer to the given PLC problem.

Example of PLC Programming based on Logic Circuit

PLC Program Description

  • For this application, we have used EcoStruxure Machine Expert Basic software for programming.
  • In the above program, Normally Open Contacts are used for inputs A, C, and E and Normally Closed Contacts are used for inputs B, D, F.
  • Input A and Input B are connected in series, thus implementing AND Logic Gate.
  • AND Logic Gate is implemented with Input C and Input D as these Inputs are connected in series.
  • Input E and Input F are connected in series, thus implementing AND Logic Gate.
  • AB, CD, and EF are connected in parallel, thus implementing OR Logic Gate.
  • For the output Y (Q0.0) to be ON, either Input A should be ON and Input B should be OFF or Input C should be ON and Input D should be OFF or Input E should be ON and Input F should be OFF.
  • If Input B, Input D, and Input F are turned ON, output Y (Q0.0) will not turn ON as Normally Closed Contacts used for these Inputs will be in True state and does not allow the signal to flow and pass to the output.

Program Simulation Analysis

When Input A is ON and Input B is OFF

PLC logic circuit design examples

The signal flow through Input A and Input B  as Normally Open Contact used for Input A is in True state and Normally Closed Contact used for Input B is in the false state will pass the signal to output and the output Y (Q0.0) will turn ON. If Input B is turned ON, the signal does not flow through Input B. In True state Normally Closed Contacts break the circuit.

When Input B is ON and Input D is OFF

How to program PLC with logic circuits

The output Y (Q0.0) will turn ON when Input B is turned ON and Input D is turned OFF because Input B is in the true state as Normally Open Contact is used for this Input and Normally Closed Contact used for Input D is in the false state. If Input D is turned ON, the signal does not flow through Input D. In True state Normally Closed Contacts break the circuit.

When Input E is ON and Input F is OFF

PLC logic circuit programming techniques

When Input E is turned ON and Input F is turned OFF, the output Y (Q0.0) will turn ON as Normally Open Contact used for Input E will allow signal to pass and also Input F will pass signal to output because Normally Closed Contact used for Input F is in false state.

When Input A, Input C, Input E are ON and Input B, Input D, Input F are OFF

PLC programming based on logic circuit example

When Input A, Input C, Input E are turned ON and Input B, Input D, Input F are turned OFF, the output Y (Q0.0) will turn OFF because all Normally Open Contacts will be in true state and all Normally Closed Contacts will be in false state. So, signal will flow through these Inputs and Y(Q0.0) will turn ON.

Read Next:

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

Leave a Comment

Share via
Follow us and never miss an update!