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
plc-program-implement-1-8-demultiplexer-01

PLC Program

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

advertisement
advertisement
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)
 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 outputplc-program-implement-1-8-demultiplexer-02

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 Input bit I:1/3 holds.
  • 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

Sanfoundry Global Education & Learning Series – PLC Algorithms.
To practice all PLC programs, here is complete set of 100+ PLC Problems and Solutions.

If you find any mistake above, kindly email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.