0
1
00:00:21,480 --> 00:00:22,160
Hello.
1

2
00:00:22,200 --> 00:00:27,760
Today we are going to learn contact types and start up to basic commands.
2

3
00:00:27,810 --> 00:00:36,630
So in this page you can see AND contact and ANDI contact and OR contact types and also rising EDGE and
3

4
00:00:36,630 --> 00:00:41,130
the falling edge and set output and the reset output.
4

5
00:00:41,130 --> 00:00:50,490
So for these contacts to learn them all it's open ISPsoft and let's create the project and the simulator
5

6
00:00:50,520 --> 00:00:52,190
with the simulator help.
6

7
00:00:52,320 --> 00:00:55,460
We are going to learn them all effectively.
7

8
00:00:55,560 --> 00:01:05,970
So in the ISPSoft software come here and click new and I will type it test application and our
8

9
00:01:05,970 --> 00:01:11,660
controller type is going to be DVP and plc type is going to be ss2
9

10
00:01:11,850 --> 00:01:13,060
And let's press.
10

11
00:01:13,080 --> 00:01:14,380
OK.
11

12
00:01:14,430 --> 00:01:15,400
And this now.
12

13
00:01:15,420 --> 00:01:24,140
And now let's open a program a new program that's created a name POU means program organization unit
13

14
00:01:24,540 --> 00:01:35,460
so we can say it just the program program name is going to be test application and our programming language
14

15
00:01:35,490 --> 00:01:45,210
is going to be a ladder diagram and its type in here as common test application for udemy.
15

16
00:01:45,560 --> 00:01:47,290
And OK.
16

17
00:01:47,520 --> 00:01:55,650
This is our programming page and it's opened  and in here we will serial contact.
17

18
00:01:55,680 --> 00:02:02,220
We will put in here will serial contacts we can add a contact to click in here just the contact and
18

19
00:02:02,220 --> 00:02:09,990
we can come here and just click left mouse twice and it will add contacts like these.
19

20
00:02:09,990 --> 00:02:19,650
And if you want to just to write a plc programs easily you can come here to red and black dots
20

21
00:02:19,740 --> 00:02:30,690
in here in this area you can click twice to left side LD M0 and LD M1 and let's put in here one
21

22
00:02:30,720 --> 00:02:43,380
output and out Y0 so M1 and M0 and Y1 is serial contacts and also insert one extra network
22

23
00:02:43,810 --> 00:02:50,690
and LD M3 or M3
23

24
00:02:50,840 --> 00:02:55,460
So this is our parallel contact or OR contact.
24

25
00:02:55,730 --> 00:03:01,180
So that's put in here or contacts.
25

26
00:03:01,240 --> 00:03:07,960
So lets add here one more output , OUT Y1 and insert one more network.
26

27
00:03:08,500 --> 00:03:15,740
LD M4 and let's put in here inverse contact or not contact LDI M5
27

28
00:03:15,790 --> 00:03:31,770
put here an output, out Y2 and insert one more network put in here not contact.
28

29
00:03:31,770 --> 00:03:39,660
We can type like this not contact and in here we can add to.
29

30
00:03:39,660 --> 00:03:43,700
We can learn in this network to set.
30

31
00:03:43,690 --> 00:03:44,160
command
31

32
00:03:46,520 --> 00:03:54,170
And also we are going to learn now how to add rising edge Contract type so LDP
32

33
00:03:54,250 --> 00:03:54,860
ldp
33

34
00:03:55,040 --> 00:03:57,170
This is our rising edge contact.
34

35
00:03:57,170 --> 00:03:58,020
command.
35

36
00:03:58,460 --> 00:04:07,050
And we can add a contact as the auxiliary contact M6 and output SET Y3
36

37
00:04:07,200 --> 00:04:08,100
Y3
37

38
00:04:08,130 --> 00:04:11,030
And one more network.
38

39
00:04:11,040 --> 00:04:19,830
Now let's insert in this network to following edge contact LDF, F means falling edge.
39

40
00:04:19,930 --> 00:04:32,350
So not an output just an auxiliary relay M7 and reset Y3
40

41
00:04:32,450 --> 00:04:38,960
So let's simulate these things all click in here and compile our project.
41

42
00:04:38,960 --> 00:04:47,030
There is no error and download our project to the simulator and press transfer button and say yes and
42

43
00:04:47,030 --> 00:04:50,540
now object is transferring to the running state ,Yes.
43

44
00:04:50,570 --> 00:04:52,130
I want to go back to running state.
44

45
00:04:52,160 --> 00:04:53,780
If you do it ...
45

46
00:04:53,810 --> 00:04:58,850
If you do it first time so it can be like this.
46

47
00:04:58,880 --> 00:05:03,690
So plc or simulator can be stopped or could be stopped.
47

48
00:05:03,710 --> 00:05:05,870
So look what will happen.
48

49
00:05:05,890 --> 00:05:09,610
M0 and M1 is active but there is no output.
49

50
00:05:09,620 --> 00:05:13,210
Why because our PLC or simulator is stopped.
50

51
00:05:13,310 --> 00:05:14,930
So you need to come here.
51

52
00:05:14,930 --> 00:05:19,540
You need to select run, run situation now activated.
52

53
00:05:19,610 --> 00:05:23,090
Then we can see our output is activated.
53

54
00:05:23,150 --> 00:05:24,680
So this is our serial contact.
54

55
00:05:24,680 --> 00:05:27,740
What happens for the serial contact.
55

56
00:05:27,740 --> 00:05:28,970
serial contacts.
56

57
00:05:28,970 --> 00:05:31,280
All of them must be on for the output.
57

58
00:05:31,280 --> 00:05:38,560
So M0 is active but it is not enough to activate our output.
58

59
00:05:38,810 --> 00:05:43,030
M1 must be active also for OR contact two.
59

60
00:05:43,030 --> 00:05:47,480
Or there can be a lot of contacts as parallel.
60

61
00:05:47,480 --> 00:05:49,810
One of them must be active.
61

62
00:05:49,820 --> 00:05:51,080
So we have an output.
62

63
00:05:51,350 --> 00:05:55,650
So M3 is active also still we have an output M2 is off.
63

64
00:05:55,670 --> 00:06:00,830
We have still active output ,M3 is of our output.
64

65
00:06:00,830 --> 00:06:03,750
this activated for the not contact.
65

66
00:06:03,980 --> 00:06:05,200
M4 for example.
66

67
00:06:05,210 --> 00:06:12,170
This is just a normally open contact and M5 is normally close contact and these conditions
67

68
00:06:12,170 --> 00:06:12,620
are okay.
68

69
00:06:12,620 --> 00:06:21,490
We have an output but what happens M5 goes on set on our output is off M5 set off.
69

70
00:06:21,530 --> 00:06:28,720
We have an output M4 is off our output is gone for the M6 for a set command.
70

71
00:06:28,820 --> 00:06:31,150
This is just the rising edge.
71

72
00:06:31,190 --> 00:06:40,110
If somebody pressed a button then that moment suddenly after the button is activated it is just a square
72

73
00:06:40,230 --> 00:06:41,290
wave.
73

74
00:06:42,170 --> 00:06:44,270
Beginning of the square wave
74

75
00:06:44,300 --> 00:06:48,790
It will give an output so suddenly Y3 set.
75

76
00:06:49,070 --> 00:06:51,080
So we have a set output.
76

77
00:06:51,080 --> 00:06:54,580
What happens if M6  released set off.
77

78
00:06:54,590 --> 00:07:02,960
So we have still output M7 is active but we have still output y3 still set.
78

79
00:07:02,960 --> 00:07:03,600
Why.
79

80
00:07:03,650 --> 00:07:06,820
Because M7 is falling edge contact.
80

81
00:07:07,070 --> 00:07:13,180
So after on to off suddenly our output is gone.
81

82
00:07:13,190 --> 00:07:15,940
So what happens for the plc programming.
82

83
00:07:15,970 --> 00:07:24,230
when you want to latch some circuits or let's say you need latched circuits or latched programming
83

84
00:07:24,230 --> 00:07:33,650
concepts so also you need online edit to control your plc to because of 
84

85
00:07:33,650 --> 00:07:39,160
Machine can be running and you maybe you don't want to stop your machine.
85

86
00:07:39,230 --> 00:07:42,570
So what can you do so you can come here.
86

87
00:07:42,680 --> 00:07:50,930
You can activate online edit mode, now online edit mode is active but for  online edit you cannot add
87

88
00:07:50,990 --> 00:07:53,540
any variable to in here.
88

89
00:07:53,540 --> 00:08:00,980
I will also while you are online you cannot do this but I will add some variables to understand our
89

90
00:08:00,980 --> 00:08:05,810
concepts or our lesson so I will stop our plc.
90

91
00:08:05,810 --> 00:08:10,340
I will come here to left click twice identifier.
91

92
00:08:10,520 --> 00:08:16,470
Let's give it a name , start name given it, to start button.
92

93
00:08:16,490 --> 00:08:19,080
This type will be bool okay.
93

94
00:08:19,190 --> 00:08:29,450
This is just a variable and stop button should be bool and we want to turn our motor forward.
94

95
00:08:29,810 --> 00:08:37,300
So let's give a name motor forward and type should be bool okay.
95

96
00:08:37,760 --> 00:08:42,060
And go on line.
96

97
00:08:42,200 --> 00:08:43,570
Now we are on line.
97

98
00:08:43,610 --> 00:08:53,690
Our Plc in run situation and I will open our online edit mode and insert network and write
98

99
00:08:53,960 --> 00:09:05,340
plc programs for the latching circuit and also I will put a note here latching circuit okay.
99

100
00:09:07,800 --> 00:09:20,610
LDP so when somebody pressed the start button start button and if there is no stop button is active
100

101
00:09:20,820 --> 00:09:23,520
or never pressed stop button.
101

102
00:09:23,520 --> 00:09:25,460
Imagine like this.
102

103
00:09:25,510 --> 00:09:35,490
LDI stop button motor is going to turn forward 
103

104
00:09:35,740 --> 00:09:38,890
OUT Motorforward also in here.
104

105
00:09:39,180 --> 00:09:50,320
I will add one OR contact like this and this will be motor forward.
105

106
00:09:50,340 --> 00:09:51,940
This will latch our circuit.
106

107
00:09:52,310 --> 00:09:56,040
Okay send changes to our plc.
107

108
00:09:56,170 --> 00:09:56,550
Okay.
108

109
00:09:56,560 --> 00:09:59,700
There is no error an update program online.
109

110
00:09:59,920 --> 00:10:01,690
Update is completed.
110

111
00:10:01,690 --> 00:10:03,880
Somebody press that button.
111

112
00:10:03,880 --> 00:10:08,020
Now our motor is turning forward pressed and released.
112

113
00:10:08,080 --> 00:10:09,180
Start button.
113

114
00:10:09,400 --> 00:10:17,410
So if you want to stop your motor you need to press stop button press once and release and motor forward.
114

115
00:10:18,390 --> 00:10:19,980
Is disactivated now.
115

116
00:10:20,310 --> 00:10:25,160
So this latched circuit is disactivated also.
116

117
00:10:25,170 --> 00:10:32,520
And suddenly somebody pressed against start button and released Motor is  still turning forward again 
117

118
00:10:32,540 --> 00:10:38,550
and stop button is pressed and motor forward finished or stopped.
118

119
00:10:38,910 --> 00:10:43,270
So this is the example of the latching circuits in this video.
119

120
00:10:43,500 --> 00:10:50,550
We learned how to do online it it how to create a new plc project how to insert the networks and
120

121
00:10:50,550 --> 00:10:56,670
the serial contacts and the parallel contacts and how to set and reset and the falling edge and the
121

122
00:10:56,670 --> 00:11:05,470
rising edge and latching circuits and how to create variables for the basic programming concepts.
122

123
00:11:05,610 --> 00:11:08,800
So we are finished for this video.
123

124
00:11:08,880 --> 00:11:10,200
See you in the next video.
