0:07
hello everyone myself
0:10
badas in this video I will discuss one
0:15
simple example which is multi-point
0:21
switching in this example we have one
0:25
light okay and this light can be
0:31
locations and we have three toggle
0:36
switches and one push button okay if You
0:41
observe here we have different switches
0:45
one is push button and three are toggle
0:48
switches we have four inputs and one
0:54
output okay try to solve this
0:58
problem we already disc discussed some
1:01
parts of the program in the previous
1:03
videos so you can definitely try it
1:08
okay now I will go to the
1:13
software we have three toggle switches
1:17
right so I will take those toggle
1:25
first so I will take I3 I4 and I
1:35
okay and I'll will give the
1:56
one now I4 is my top toggle switch
2:02
two similarly I5 is my toggle switch
2:14
three now what I will
2:18
do I will go to basic functions and
2:28
XR and go to the commands and give the
2:31
block name XR this is my first XR block
2:36
and I will connect toggle switch one and
2:43
two okay now I will take one more XR
2:50
block and I'll connect the first output
2:53
of first XR block to the second XR block
2:57
first input this is my
3:04
XR this is my XR first XR this is my
3:08
second XR block okay and I will connect
3:11
toggle switch 3 to the second input of
3:17
block okay now three toggle switches are
3:20
completed now what I will do this is my
3:23
i1 is my what push button so I'll go to
3:27
comment and I'll give the comment and
3:33
button I will take one pulse
3:39
relay and I'll connect the push button
3:42
to the trigger input of this pulse
3:47
relay so I will give the comment
3:52
relay now what I will
3:55
do I will take one XR block third XR
4:01
block this is the third
4:07
one so number three connect the output
4:12
of second XR block to the first input of
4:15
third XR block and I'll con pulse relay
4:19
output to the third XR
4:22
block now I will take one one output and
4:32
okay go to comments and write
4:56
adjust okay that's it program is
5:05
hardware and I will give the download go
5:15
logo if you don't have the hardware with
5:17
you no problem just go to the simulation
5:22
and test the logic remember when you're
5:28
simulation you you have to go to the
5:30
properties of this push button and go to
5:34
simulation Tab and select push button
5:38
contct okay then only you will know the
5:41
difference between the toggle switch and
5:44
push button related to the programming
5:48
okay the program will change depends on
5:51
the type of switch remember
6:00
even I'll go if it is
6:03
okay now we will test
6:10
it now I will press input one which is
6:14
push button to turn on the light
6:21
happens push button is pressed the
6:24
output is on the light is on now I will
6:30
already three is on four is on I'll turn
6:33
it off okay now I will turn on input
6:38
I3 that means toggle switch one output
6:41
is off now I will turn on toggle switch
6:46
I4 output is on the light is on you can
6:49
see in the hardware and in the
6:52
software now I will turn on input I5
6:57
three light is off like this this
7:02
program works if you remember we already
7:06
discussed some parts of this program in
7:09
the previous videos if you remember we
7:13
discussed three-way light switch control
7:20
okay this is the same example we are
7:23
using XR blocks with toggle switch as
7:26
inputs and we added one push button with
7:33
okay now what happens how this works is
7:37
the XR block if the both inputs are same
7:41
output is off if the both inputs are
7:44
different then output is on okay let's
7:48
see what happens if you see the third XR
7:51
block the last one right now output is
7:54
off because the two inputs are on okay
7:58
one one if any one of the input is off
8:02
then output will be on light will be on
8:05
We will check that now what I will do I
8:08
will press push button then what happens
8:11
then the trigger will go to the pulse
8:13
relay whenever the trigger is received
8:16
at the pulse relay the pulse relay
8:19
output will change if it is in on state
8:22
it will go to off if it is in off State
8:25
it will go to on right now the output is
8:27
on so when we press the push button
8:30
right now what happens the trigger will
8:32
be received and the output will be off
8:36
once this output will be off means the
8:39
third XR block second input will be off
8:43
that means both inputs of this XR block
8:46
will be different one will be in on
8:48
state second one will be in off State
8:50
when inputs are different the output is
8:53
on that means light will be on We will I
8:55
will do that you observe again I will
9:04
happens push button is pressed pulse
9:09
off XR block both inputs are different
9:13
that is why output is on that is why
9:17
on now in this state what I will do next
9:21
next I will turn off the toggle switch
9:25
3 right now toggle switch 3 is an on
9:28
State that means the second XR block
9:33
inputs are different state that is why
9:35
output is on that is why the third XR
9:40
block first input is in on state second
9:43
input is in off state if I turn off
9:46
toggle switch three then what
9:49
happens second XR block both inputs are
9:53
off that means both inputs are same then
9:57
the XR block output will be off that
10:00
means the first third XR block first
10:03
input will be off that means third XR
10:08
block both inputs will be off that means
10:12
same inputs that means output will be
10:14
off that means light will be off now I
10:20
observe I will turn off input I5 tole
10:24
switch three observe what
10:27
happens XR second XR both inputs off
10:31
that is why second XR output is off and
10:36
the third XR both inputs off that is why
10:40
output is off that is why light is
10:52
simulation test all the different input
10:56
combinations and observe the logic
10:58
Behavior here I will go to the
11:03
once you have to go to the properties of
11:07
button and in the simulation tab you
11:11
must select momentary push button make
11:16
that the program will change depends on
11:20
the type of switch okay but if it is
11:23
toggle switch then program will be
11:25
different if it is push button then the
11:28
program will be different that is why
11:31
the type of switch is very
11:34
important okay thank you I will meet you