0:16
hello everyone welcome to automation
0:18
community in this session we are going
0:20
to see about one more increment and
0:23
decrement type that is BCD increment and
0:26
BCD decrement so what is the difference
0:30
between the previous increment
0:31
instruction that we have seen in the
0:33
previous session and now this session so
0:36
it will be depends upon the range okay
0:40
in the previous session if you have seen
0:43
when you are giving the continuous
0:44
signal there was a limit of 64,000
0:47
nearby 64,000 was the range okay but
0:51
here the range is very less that is 999
0:54
so triple 9 9 till that only it can able
0:57
to increment after that again it will
0:59
start from zero that is the difference
1:01
between that increment and BCD increment
1:06
so I'll show you in the program I'll
1:09
take both for your uh you know
1:12
comparison first I'll explain this later
1:15
we'll take the normal uh increment okay
1:19
increment so I'll give BCD increment
1:22
instruction is plus B And you have to
1:24
give some address i'll give about
1:32
200 all right and this should be a pulse
1:38
correct for every pulse it will
1:43
value so I'll make this to up and I'll
1:48
take one more as a continuous pulse for
1:53
Same instruction but with a different
1:56
address plus B and I'll give 300 no yeah
2:07
300 yes we cannot give because it will
2:11
be in this range so what I'll
2:27
yeah it will be in this range so you
2:30
cannot make use of this 200 again 300 in
2:33
between 100 is the difference but
2:34
whenever you are incrementing the word
2:36
address will be 200 2.1 22 like that it
2:42
go so let's turn on the
2:55
simulation so I'll give some value here
2:58
i'll give two here and I'll give same
3:01
two here both are different address okay
3:06
this it's one incremented and I'm going
3:10
to turn on this it will continuously run
3:14
okay again it will start from zero so
3:17
the value the highest value is triple 9
3:22
9 but whereas in the binary increment we
3:27
64,000 okay since it is a BCD increment
3:30
we have a less range that is triple 999
3:33
so this is for every increment it will
3:37
the by one increment by one but here it
3:41
is continuous because the signal is
3:45
continuous if you turn off it will stop
3:48
where it is currently running look at
3:51
that that's it 2 3 95 if you change this
3:59
to we'll change this to pulse now see it
4:10
one okay now see if I increment 1 2 3 95
4:17
96 so like this it will be working so
4:22
I'll take let's make this to none i'll
4:27
add one more instruction for normal uh
4:29
you know binary increment
4:31
so that you can see the
4:34
difference I have a same input t
4:38
condition for that I'm using same so
5:03
simulation so both I'm going to turn on
5:05
at the same time so let's make this is
5:08
also zero so this is zero this is zero
5:15
see it's going back to zero but it it is
5:19
reaching 64,000 after that only it will
5:22
come to zero that's the difference
5:23
between BCD increment and binary
5:31
again all right so same like that we
5:37
also so what this BCD decreement will do
5:45
that so BCD decrement will
6:09
this there is a error in
6:16
so let's try to change the
6:42
okay so this is 9,000
6:49
right so the limit is 9,000 for this and
6:54
9,999 and here also it is
6:56
9,999 for both increment and decrement
6:59
the BCD higher limit isle 999 only so
7:03
this is incrementing I'm turning on so
7:07
it is incrementing from zero towards
7:21
starting okay it's very fast if you give
7:27
here you can see the difference it will
7:30
reduce from 900 9,000 i mean the higher
7:33
limit to lower limit it will come but
7:35
here it will start from zero in a
7:37
positive way increment way this is
7:40
decrementing that's the difference
7:42
between BCD increment and BCD decrement
7:45
if you want to decrement one by one you
7:48
can give the pulse that also we will
7:54
give so I'll make this to pulse
8:12
pulse one value got reduced
8:25
can decrement the BCD value and the
8:34
9 okay so this is how BCD increment and
8:37
decrement instruction will be working i
8:40
hope you have understood this concept
8:41
kindly like and subscribe our channel
8:43
for more updates and videos i'll meet
8:45
you in the next session thank you