1
00:00:12,120 --> 00:00:14,550
You know, in this tutorial, we will learn.

2
00:00:15,370 --> 00:00:17,820
Basics of beat logic.

3
00:00:17,960 --> 00:00:24,700
OK, in the places you can see it everywhere, Vitalogy and how it is working.

4
00:00:25,100 --> 00:00:28,690
Imagine you have a button on the button is.

5
00:00:29,390 --> 00:00:36,260
The symbol of the button is like that, but imagine this is your button, OK, when you press it, OK?

6
00:00:36,280 --> 00:00:37,280
This is the push button.

7
00:00:38,940 --> 00:00:45,420
When you press the push button, this will be normal, normally close contact and then you release your

8
00:00:45,420 --> 00:00:45,760
hand.

9
00:00:45,910 --> 00:00:49,530
OK, this will be normally open contact, that's all.

10
00:00:49,720 --> 00:00:53,930
Or you can say, OK, I hit a stop button.

11
00:00:55,810 --> 00:01:00,390
For stockpot, the symbol is like that.

12
00:01:00,440 --> 00:01:09,220
OK, so this is normally closed, so when you use stock but button, if we have a power from here,

13
00:01:09,220 --> 00:01:17,080
OK, imagine you have a for what is connected to stop button, then it will go to the next of the line

14
00:01:17,320 --> 00:01:25,090
when you press the stock button and it will be turned to normally open contact or you can say, OK,

15
00:01:25,810 --> 00:01:27,910
I have to button one button.

16
00:01:28,030 --> 00:01:30,400
OK, and one more button.

17
00:01:30,730 --> 00:01:36,600
If I press two one button, uh, for example, this is the first one and this is the second one.

18
00:01:36,880 --> 00:01:41,590
If I press one or two, I want to activate my motor.

19
00:01:41,620 --> 00:01:42,800
OK, this is your call.

20
00:01:42,800 --> 00:01:43,030
You.

21
00:01:43,820 --> 00:01:48,070
And what you hear, this is now all contact.

22
00:01:48,350 --> 00:01:53,150
OK, so you have an output if you.

23
00:01:54,780 --> 00:02:03,740
See, OK, so imagine this is your policy, you have inputs, OK, x1 x zero and explore and like that

24
00:02:03,860 --> 00:02:11,000
and you hit and all of flight zero one and like that inside of to see what we hear.

25
00:02:11,240 --> 00:02:13,500
We have a microcontroller.

26
00:02:13,650 --> 00:02:19,650
OK, so when the input is activated by a push button by sensor.

27
00:02:19,670 --> 00:02:21,540
OK, what is happening.

28
00:02:21,800 --> 00:02:27,500
OK, plus what is coming to input or this is up to.

29
00:02:29,250 --> 00:02:30,390
I think that's right.

30
00:02:30,430 --> 00:02:32,740
You think or connection?

31
00:02:32,790 --> 00:02:37,200
OK, but now I'm talking about it if you give.

32
00:02:38,260 --> 00:02:42,130
Two minus two is OK, this is uncommon.

33
00:02:42,340 --> 00:02:48,340
OK, this is mine, so you need to and four to zero to your digital inputs.

34
00:02:48,360 --> 00:02:48,680
OK.

35
00:02:48,940 --> 00:02:57,940
It goes to the inside of the PC plus five, four and five comes to microcontroller and then it takes

36
00:02:57,940 --> 00:02:59,710
the input and output.

37
00:02:59,710 --> 00:03:08,680
Five-fold goes and then from Pfeifle with the optic coupler, ok, it goes to transferal or it turns

38
00:03:08,680 --> 00:03:09,350
to 24.

39
00:03:09,350 --> 00:03:15,430
OK, and that your wife zero or one and your output becomes active.

40
00:03:15,460 --> 00:03:18,850
OK, big logic is just the control circuit.

41
00:03:19,060 --> 00:03:21,140
That's all for the.

42
00:03:22,530 --> 00:03:23,100
Designer.

43
00:03:23,270 --> 00:03:31,890
OK, um, let's come to here and let's write to some sample code and then you will be understanding

44
00:03:32,310 --> 00:03:36,320
effectively how can you fit logic in the Delta p.l.c.?

45
00:03:36,600 --> 00:03:38,010
OK, for the code.

46
00:03:38,280 --> 00:03:39,090
This is Elvie.

47
00:03:39,240 --> 00:03:40,880
Elvie means a lot.

48
00:03:40,930 --> 00:03:45,990
OK, Aldy, for example, I will use an Internet at this moment.

49
00:03:45,990 --> 00:03:50,160
For example, the M0 then this is imagine X zero.

50
00:03:50,170 --> 00:03:56,380
This is your input, OK, and when the engine is active, OK or the button is pressed.

51
00:03:56,790 --> 00:04:01,890
OK, and I want to give one output outweight zero point zero.

52
00:04:01,920 --> 00:04:11,940
OK, so this is a contact and the normal open contact and this is all good if I put it if m zero and

53
00:04:11,940 --> 00:04:21,360
OK, the keyword at this moment and if M0 and uh for example LDA and one OK and zero and one is active.

54
00:04:21,570 --> 00:04:26,130
So in here this must be one, this must be one.

55
00:04:26,220 --> 00:04:34,320
So we have an output or I can come to here now I click this one I am writing or ok or M two.

56
00:04:34,440 --> 00:04:40,980
Now I put here or contact M zero or two and one then we have an output.

57
00:04:41,190 --> 00:04:43,560
That's all I can come to here.

58
00:04:44,820 --> 00:04:51,430
LDI OK, so for example M three if M3 is not activated.

59
00:04:51,450 --> 00:04:59,520
OK, so I can come to here, you can write to M0 normally open or if you can select normally closed

60
00:04:59,520 --> 00:05:02,250
like that or you can write Kurgan normally open that.

61
00:05:02,300 --> 00:05:05,030
So uh let's start a simulator.

62
00:05:05,310 --> 00:05:06,360
I will go on line.

63
00:05:06,540 --> 00:05:09,580
OK device is not compile and download.

64
00:05:09,600 --> 00:05:10,140
OK.

65
00:05:10,500 --> 00:05:11,520
Um.

66
00:05:12,480 --> 00:05:14,790
Component, I will select it, OK?

67
00:05:16,510 --> 00:05:18,880
Um, stop mission.

68
00:05:25,060 --> 00:05:35,180
OK, so you can see M3 three is normally closed, so this is allowing to pass current or the it is allowing

69
00:05:35,200 --> 00:05:42,850
to, uh, let to go to right side to coil because of y because this is normally closed and you will

70
00:05:42,850 --> 00:05:47,860
see, for example, M0 or M2 imageries active end and one is active.

71
00:05:47,890 --> 00:05:54,060
OK, so we will get the output, but it is stopped p.l.c. so we need to make it run.

72
00:05:54,430 --> 00:05:54,860
OK.

73
00:05:55,210 --> 00:06:00,660
And then again, M0 is active and then and one is active.

74
00:06:00,880 --> 00:06:03,400
We have an output or M2.

75
00:06:03,430 --> 00:06:04,930
OK, let's make it false.

76
00:06:05,500 --> 00:06:06,700
Let's make it M2.

77
00:06:07,000 --> 00:06:08,590
OK, this is also active.

78
00:06:08,860 --> 00:06:17,410
If uh and one is not activated because of the end uh structure there is no output or I can say and M

79
00:06:17,410 --> 00:06:27,190
three is not is must be of but now I will make it on so there is no output or we can say just come to

80
00:06:27,190 --> 00:06:27,520
hear.

81
00:06:28,450 --> 00:06:29,650
The set conditions, OK?

82
00:06:30,650 --> 00:06:30,940
Right.

83
00:06:31,670 --> 00:06:39,470
We can say set like that or I will delete this one I have right here set, for example, why zero point

84
00:06:39,560 --> 00:06:40,120
zero?

85
00:06:40,580 --> 00:06:46,800
Um, but I'm right or wrong, said y zero point zero.

86
00:06:46,820 --> 00:06:48,100
That's not OK.

87
00:06:48,380 --> 00:06:50,720
Then let's do a download this project.

88
00:06:54,350 --> 00:06:58,300
But, uh, we need to compile once it's finished.

89
00:06:59,920 --> 00:07:04,170
Let's go to class, um, compiled once.

90
00:07:06,200 --> 00:07:10,370
OK, I will start again, start transmission.

91
00:07:15,060 --> 00:07:23,680
OK, successfully extended, and then I will go on line again and you will see now am zero active and

92
00:07:23,730 --> 00:07:25,990
and one is now active.

93
00:07:26,220 --> 00:07:27,450
So this is settled.

94
00:07:27,450 --> 00:07:35,110
OK, so let's make a false and one you can see why zero point zero is remained.

95
00:07:35,140 --> 00:07:38,640
OK, now then we need to reset it.

96
00:07:38,640 --> 00:07:41,160
For example, in here I will say just.

97
00:07:41,990 --> 00:07:45,070
Come to hear the and five, OK?

98
00:07:45,260 --> 00:07:52,400
And we said, OK, why zero point zero like that or you can come to here just right, click on set or

99
00:07:52,400 --> 00:08:02,930
reset or dayjob, and I will make a pile this project again and I will send it to my simulator and start

100
00:08:02,930 --> 00:08:03,710
transmission.

101
00:08:08,610 --> 00:08:18,690
OK, and I will go on line, so let's take a look once and this is true and this is true and this is

102
00:08:18,690 --> 00:08:19,080
settled.

103
00:08:19,230 --> 00:08:22,500
Let's make and five active than you will see.

104
00:08:22,500 --> 00:08:27,480
This is recent, OK, let's make it false and let's make it on again.

105
00:08:27,570 --> 00:08:29,580
OK, because of.

106
00:08:31,060 --> 00:08:41,200
Structure of the palaces, then it relates to inputs and activist outputs and policy comes from the

107
00:08:41,200 --> 00:08:43,630
left to right and from top to bottom.

108
00:08:43,870 --> 00:08:48,120
Because of this, it is resetting now and I will make it false.

109
00:08:48,320 --> 00:08:55,060
OK, then you can see it is set that so and then it is reset it and it's to make it false and let's

110
00:08:55,060 --> 00:08:55,530
make it fall.

111
00:08:55,550 --> 00:09:03,850
So for a moment, what we can say, this is set and reset for the ledge, for the outputs, OK, for

112
00:09:03,850 --> 00:09:11,980
the keep output high until Rousset is active and for the normally open and normal close contacts according

113
00:09:11,980 --> 00:09:13,870
to our end or gaits.

114
00:09:13,870 --> 00:09:15,490
OK, you can use them all.

115
00:09:15,490 --> 00:09:22,330
But the binary logic, I'm not going to talk about it because you can say, OK, if this button is pressed

116
00:09:22,510 --> 00:09:25,060
and this button is press, there is an output.

117
00:09:25,300 --> 00:09:28,010
And this is, for example, for the stop contact.

118
00:09:28,030 --> 00:09:29,720
This is just start contact.

119
00:09:30,010 --> 00:09:35,320
This is also another star contact or another condition.

120
00:09:35,500 --> 00:09:44,950
But I'm not going to talk about one or one equals one and one equals one and not one equals one.

121
00:09:44,950 --> 00:09:46,950
And there's an output now, not like that.

122
00:09:47,110 --> 00:09:48,550
It is really basic logic.

123
00:09:48,550 --> 00:09:54,730
You can do a test yourself and you can do a small applications like that for this tutorial.

124
00:09:54,730 --> 00:09:55,620
I finished here.

125
00:09:55,840 --> 00:09:57,580
See you in the next tutorial.
