2 PLC Program To Implement Various Boolean Functions
2 PLC Program To Implement Various Boolean Functions
Functions
This is a PLC program to implement various boolean functions.
Problem Description
Implement following Boolean Functions in PLC Ladder Diagram programming
language,
F(w,x,y)=∑(1,3,5,7)
F(a,b,c,d)=∑(0,1,2,3,5,7,9,11)
Problem Solution
Here in these 2 equations, inputs for equation (1) are w, x, and y while for equation
(2) are a, b, c, and d.
To solve this problem, we must first minimize the expression by using Karnaugh-
Map method.
Program Description
As you can see the output of equation (1) is F(w,x,y)=y which shows that O:2/0 will
go high when Y or I:1/2 is set to 1 and this is obtained by simplifying the equation
by Karnaugh Map method.
Output remains high until input Y is set irrespective of inputs W and X, that is I:1/0
and I:1/1 respectively.
Program Description
Output F(a,b,c,d)/O:2/0 here will go high in 3 conditions. As we can see from the
ladder diagram and in the Boolean function which was solved using Karnaugh
Map.
There are 3 pairs of inputs connected in parallel to each other which represent OR
function and connecting each of them pair of two inputs in AND function.
Output goes high in following three conditions.
Whenever A (I:1/0) and B (I:1/1) are Low irrespective of other input states.
Whenever A (I:1/0) is Low AND D (I:1/3) is High irrespective of other input states.
And whenever B (I:1/1) is Low and D (I:1/3) is High irrespective of other input
states.
Equation(2)
Inputs Output
A B C D O:2/0
0 0 0 0 HIGH
0 0 0 1 HIGH
0 0 1 0 HIGH
0 0 1 1 HIGH
0 1 0 0 LOW
0 1 0 1 HIGH
0 1 1 0 LOW
0 1 1 1 HIGH
1 0 0 0 LOW
1 0 0 1 HIGH
1 0 1 0 LOW
1 0 1 1 HIGH
1 1 0 0 LOW
1 1 0 1 LOW
1 1 1 0 LOW
1 1 1 1 LOW