0:07
hello everyone myself
0:09
badas in this video I will discuss one
0:16
example which is digital
0:20
comparator in this example we have two
0:24
digital inputs A and B we have to create
0:35
Gates we have to do the comparison which
0:39
is a greater than b a less than b a
0:45
B these things we have to
0:48
perform so first open the PLC
0:52
software and take two digital
0:58
inputs and give the name this is input
1:23
B okay now I will take
1:38
Gates and give the name comment
1:47
my endgate one this is my endgate
2:15
now I will take three
2:21
outputs and the Q3 is greater
2:38
is equal to a is = to
2:51
b these are the three
2:55
outputs the status will be on whenever
3:14
Gates go to basic functions and take two
3:28
Gates if you see there are four inputs
3:31
for each end gate right I will connect
3:35
input a to the first input of all the
3:40
three end Gates next I will connect
3:43
input B to the fourth input of all the
3:48
Gates so first input a I will Conn this
3:55
gate before that I will give the comment
4:05
get and this is my not
4:25
okay I will connect input a to the
4:28
endgate one one to the first input via a
4:32
not gate similarly input B I will con to
4:36
this not gate and then I'll connect
4:39
output of not gate to the endgate fourth
4:43
input now cannot input a to the
4:50
endgate second endgate to the first
4:53
input similarly connect input a to the
4:57
third end gate to the first input
5:23
how I'll connect input B to the fourth
5:27
input of first end gate
5:30
again I will connect input B with fourth
5:36
endgate now I will connect andate one to
5:40
q1 andate 2 with Q2 andate 3 with
5:49
okay now I go to the simulation tools
5:57
simulation now I will turn on input
6:01
a so input a is 1 B is zero it is
6:06
greater than input a is greater than b
6:09
right now that is why the Q3 is on
6:13
see greater than bit is on output is on
6:17
now I will turn on input a and input
6:21
B what happens both are one one that is
6:26
why equal to Q2 is on see Q2 is on now I
6:34
a what happens a is zero B is one it is
6:41
on so this is how we can do the digital
6:48
comparator if you see I considered total
6:53
cases 0 1 1 0 and 1 1
7:00
right one case is missing here which is
7:10
program it is only designed to consider
7:15
state okay when input a is zero input B
7:19
is zero both are equal I want you to do
7:23
the program I mean I just want you to to
7:27
do the modification of to this existing
7:30
program using basic Gates only such that
7:36
Q2 must be turn on when input a is zero
7:41
input B is zero similarly Q2 must also
7:45
turn on when both are
7:48
on so your task is to modify this
7:53
program Q2 must be on when both inputs
7:57
are off or both inputs are on this is
8:02
task share with us how you design this
8:06
completed this task via comment section
8:10
thank you I will meet you in the next