0% found this document useful (0 votes)
6 views

PLC Program to Implement 1_8 Demultiplexer - Sanfoundry

The document provides a PLC program for implementing a 1:8 demultiplexer using Ladder Diagram programming. It includes a problem description, solution, truth table, and program details with input and output specifications. The program allows for the selection of one of eight outputs based on three select inputs, demonstrating the functionality of the demultiplexer.

Uploaded by

Dr. Swati Madhe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

PLC Program to Implement 1_8 Demultiplexer - Sanfoundry

The document provides a PLC program for implementing a 1:8 demultiplexer using Ladder Diagram programming. It includes a problem description, solution, truth table, and program details with input and output specifications. The program allows for the selection of one of eight outputs based on three select inputs, demonstrating the functionality of the demultiplexer.

Uploaded by

Dr. Swati Madhe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

4/5/2017 PLC Program to Implement 1:8 Demultiplexer - Sanfoundry

PLC Program to Implement 1:8 Demultiplexer

This is a PLC Program to Implement 1:8 Demultiplexer.

Problem Description
Implementing 1:8 De-multiplexer in PLC using Ladder Diagram programming language.

Problem Solution
It has one data input Di, three select input S0, S1 and S3 and 8 outputs Y0 to Y7.
To select n outputs, we need m select lines such that 2^m = n. Depending on the output. The
selection of one of the n outputs is done by the select pins.
It does not need K-map and simplification so one step is eliminated to create Ladder Logic Diagram.
Realize the de-multiplexer using Logic Gates.
Truth Table can be written as given below.

Truth Table relating 1:8 De-Multiplexer

Data Select Inputs Output


Inputs S2 S1 S0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
Di 0 0 0 0 0 0 0 0 0 0 Di
Di 0 0 1 0 0 0 0 0 0 Di 0
Di 0 1 0 0 0 0 0 0 Di 0 0
Di 0 1 1 0 0 0 0 Di 0 0 0
Di 1 0 0 0 0 0 Di 0 0 0 0
Di 1 0 1 0 0 Di 0 0 0 0 0
Di 1 1 0 0 Di 0 0 0 0 0 0
Di 1 1 1 Di 0 0 0 0 0 0 0

Realizing 1:8 De-Mux using Logic Gates

http://www.sanfoundry.com/plc-program-implement-1-8-demultiplexer/ 1/4
4/5/2017 PLC Program to Implement 1:8 Demultiplexer - Sanfoundry

PLC Program
Here is PLC program to Implement 1:8 Demultiplexer, along with program explanation and run time test
cases.

List of Inputs and Outputs


S0= I:1/0 (Select Line Input)
S1= I:1/1 (Select Line Input)
S2= I:1/2 (Select Line Input)
Din= I:1/3 (Data Input)
Y0= O:2/0 (Output)
Y1= O:2/1 (Output)
Y2= O:2/2 (Output)
http://www.sanfoundry.com/plc-program-implement-1-8-demultiplexer/ 2/4
4/5/2017 PLC Program to Implement 1:8 Demultiplexer - Sanfoundry

Y3= O:2/3 (Output)


Y4= O:2/4 (Output)
Y5= O:2/5 (Output)
Y6= O:2/6 (Output)
Y7= O:2/7 (Output)

Ladder Diagram to obtain output

Program Description
In all the rungs, S2 (I:1/0), S1 (I:1/1) and S0 (I:1/2) are used as a selector line input as shown in Logic
Circuit.
Y0 to Y7, O:2/7 are Onputs respectively.
When S2 (I:1/0), S1 (I:1/1) and S0 (I:1/2) are low, Y0 output will have whatever state Data Input bit
I:1/3 holds, either 1 or 0.
When S2 (I:1/0) and S1 (I:1/1) are low and S0 (I:1/1) is high, Y1 output will have whatever state Data
http://www.sanfoundry.com/plc-program-implement-1-8-demultiplexer/ 3/4
Input bit I:1/3 holds.
4/5/2017 PLC Program to Implement 1:8 Demultiplexer - Sanfoundry

Similarly remaining six different outputs are obtained.


In other words, according to bit pattern of S2, S1 and S0, Data Input bit Din is passed to outputs Y0-
Y7.
Here, instead of outputs Y0 to Y7, any final control element can be operated depending upon the
application.

Runtime Test Cases

Data Select Inputs Output


Inputs S2 S1 S0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
Di 0 0 0 0 0 0 0 0 0 0 Di
Di 0 0 1 0 0 0 0 0 0 Di 0
Di 0 1 0 0 0 0 0 0 Di 0 0
Di 0 1 1 0 0 0 0 Di 0 0 0
Di 1 0 0 0 0 0 Di 0 0 0 0
Di 1 0 1 0 0 Di 0 0 0 0 0
Di 1 1 0 0 Di 0 0 0 0 0 0
Di 1 1 1 Di 0 0 0 0 0 0 0

http://www.sanfoundry.com/plc-program-implement-1-8-demultiplexer/ 4/4

You might also like