0:08
hello everyone myself badas in this
0:11
video I will discuss about mathematic
0:17
Block in the previous video we already
0:20
discussed about mathematic instruction
0:24
block and this is about error detection
0:28
block open your PLC software on the left
0:32
side scroll down and select this one
0:36
mathematic instruction
0:49
instruction error block okay this is
0:57
detection if you see there are two two
1:00
inputs one is enable the second one is
1:03
reset and one output so take digital
1:52
enable and I2 is my reset
2:18
detects zero divion or wflow
2:23
errors in a mathematic instruction
2:27
block so in order to test this block we
2:31
need one mathematic instruction
2:34
block so take one mathematic instruction
2:39
block and uh we need one input and one
2:54
connect and we need one input
3:01
connect so this is my main
3:07
mathematic block instruction block this
3:11
block will do the calculations your
3:16
calculations so I3 is
3:25
input enable input this is our
3:31
output you can use any output analog
3:34
output I'm just using simple block so
3:37
now I test the logic go to tools and
3:43
simulation in mathematic block we can do
3:47
addition subtraction multiplication and
3:51
division right plus minus multiplication
3:57
division Whenever there is a zero
4:00
division error that means 1 divided by 0
4:06
this is the zero division error if this
4:09
occurs then if we want to detect this
4:15
error then we can use this mathematic
4:18
instruction error block so I will enter
4:26
okay what is the block name of this
4:28
mathematic block if you see B 002 this
4:32
block name we have to enter in this
4:35
mathematic instruction error block so go
4:39
properties because in your program there
4:42
may be five 10 number of mathematic
4:47
blocks and you want to
4:52
identify this or you want to identify
4:55
this zero division or overflow errors in
4:59
a specific block you have to mention the
5:01
block number so in this case it is B 002
5:07
b002 and I want to deter zero division
5:10
so select the first one and click
5:14
okay now I will turn on input
5:18
I3 and I will enable the mathematic
5:24
see Zero Division and output is on q1 is
5:29
on that means this block is detecting a
5:33
zero division error from the b0 0 to
5:37
mathematic block let's suppose we will
5:40
remove this zero division go to
5:42
properties and I will divide 1 / 1 I'll
5:52
okay but the output is still on because
5:56
we have to give the reset one time and
6:00
see no there is no error
6:03
now again I'll give the error 1 /
6:13
division reset error is zero again clear
6:16
the reset again error will come because
6:18
still the division is 1 divid by 0 it is
6:21
not changed that is why again it is
6:26
activating okay this is zero division
6:30
and second one is Overflow I will select
6:34
overflow and click okay what is Overflow
6:40
case just place your mouse here on the
6:43
first one you can see one number -
6:52
32,767 this is the range the block will
7:00
the number must be in between this range
7:04
if there is any overflow that means more
7:07
than this range then it is considered as
7:10
wflow then the wflow error will activate
7:14
I will enter the maximum value so what
7:18
32,767 I will enter this value
7:24
32,767 this PLC will only work in this
7:27
range only remember that what I will do
7:30
I will do+ one I will just increase the
7:32
number only by one and okay this is
7:37
consider as wflow see the WF flow error
7:41
is activated and q1 is
7:45
on output is Overflow plus 100 what
7:53
overflow the value number must be within
7:56
this range okay I add zero and okay and
8:01
I'll give one reset now there is no
8:06
Overflow your values must be within the
8:09
specified range either individual values
8:14
result it will not take more value also
8:17
see I'm entering mine it is not taking
8:21
seven only taken okay this is called as
8:26
wflow like this if you want to detect
8:30
zero division or wflow in your
8:33
mathematic block then we can use this
8:36
mathematic instruction error
8:39
block if you have any experience in the
8:42
industry share with us how you use this
8:46
type of mathematic error detection Block
8:49
in your application share share with us
8:52
through the comment section thank you I
8:55
will meet you in the next video