0
1
00:00:21,580 --> 00:00:22,290
Hello.
1

2
00:00:22,290 --> 00:00:27,180
In this video we are going to learn cycle scan time.
2

3
00:00:27,210 --> 00:00:35,790
This is really important for the plcs scan time and it is affecting outputs and inputs than readings
3

4
00:00:35,820 --> 00:00:41,710
and the writings if scan tme value very short time or a little bit longer.
4

5
00:00:41,730 --> 00:00:47,630
How can we know what is our plc scan time and where can we read it.
5

6
00:00:47,790 --> 00:00:52,770
So let's take a look and let's do a little bit example and practice about it.
6

7
00:00:53,520 --> 00:01:00,480
I will create a new project and I will give a scantime name  and  ss2 will be.
7

8
00:01:00,690 --> 00:01:04,310
our cpu and I am saying okay.
8

9
00:01:04,410 --> 00:01:06,240
New project is created.
9

10
00:01:06,240 --> 00:01:17,170
Then come here then programs and scantime will be pou name and I will say okay we were connected to a
10

11
00:01:17,170 --> 00:01:21,250
simulator and it still DVP simulator is selected.
11

12
00:01:21,250 --> 00:01:29,290
I will stop our simulator and I will use serial communication to my real plc , see existing one plc
12

13
00:01:29,650 --> 00:01:32,860
and in here tools and communication settings.
13

14
00:01:32,860 --> 00:01:35,380
I will select serial communication also.
14

15
00:01:35,380 --> 00:01:45,160
Before we start to check scan time and then I will go online to my plc.
15

16
00:01:45,670 --> 00:01:48,550
But this is an empty project.
16

17
00:01:48,670 --> 00:01:49,870
So let's check first.
17

18
00:01:50,000 --> 00:01:50,930
Empty project.
18

19
00:01:50,950 --> 00:02:02,910
Scan time. I'm transferring this empty project to my plc , it is transferring now and do you
19

20
00:02:02,910 --> 00:02:04,840
want to go back to running state.
20

21
00:02:04,890 --> 00:02:09,450
Say yes now we are at the run situation in here.
21

22
00:02:09,540 --> 00:02:18,000
You can see our scan time is 0,1 - 0,2 ms so this is our scan time.
22

23
00:02:18,000 --> 00:02:24,130
So plc is reading inputs then writing output and the complete project is in one loop.
23

24
00:02:24,240 --> 00:02:32,040
It is turning back to end and to start position and end position is completed 0,2 milliseconds.
24

25
00:02:32,040 --> 00:02:43,710
It is finishing so let's go offline and let's do write a little bit program LD M0 and let's say
25

26
00:02:43,710 --> 00:02:58,020
out y0 and in here for example ld m1 and out y2 and in here for example LD M1000
26

27
00:02:58,530 --> 00:03:13,900
timer T0 and 50 and in here for example LD M11 and  in here counter as one thousand,
27

28
00:03:15,370 --> 00:03:25,390
this is just a unimportant project just to check once to our cycle time and I will
28

29
00:03:25,390 --> 00:03:36,450
send these things to this project to my plc and now it's transferring and I will say to yes okay remember
29

30
00:03:37,350 --> 00:03:44,110
our scan time was between 0.1 millisecond and 0.2 milliseconds.
30

31
00:03:44,190 --> 00:03:50,290
Now let's take a look once what we have is it changed or not.
31

32
00:03:50,310 --> 00:03:53,130
So in here we are at the run situation.
32

33
00:03:53,160 --> 00:04:01,580
Our scan time is still 0.2 milliseconds but 0.1 and 0.2 milliseconds.
33

34
00:04:01,710 --> 00:04:08,860
And these programs is not affected to our scan time but what effects to our scan time.
34

35
00:04:09,030 --> 00:04:12,860
If we write a lot of codes in here.
35

36
00:04:12,870 --> 00:04:23,340
If we put for example 1000 or 2000 lines or 5000 lines or if we are reading analog inputs and if writing
36

37
00:04:23,340 --> 00:04:24,950
analog outputs.
37

38
00:04:24,960 --> 00:04:30,820
Or if we are working with the load cell modules and encoders and with the pulses and etc.
38

39
00:04:30,960 --> 00:04:34,450
This scan time can increase a little bit more.
39

40
00:04:34,590 --> 00:04:39,160
And this is really important to us .
40

41
00:04:39,330 --> 00:04:47,640
If we are lose if we are working with very sensitive applications like an encoder like a cutting and
41

42
00:04:47,640 --> 00:04:52,020
stopping of the materials and etc. this is really important.
42

43
00:04:52,140 --> 00:04:59,010
And you can check your scan time in here than you can give a decision according to this time of your
43

44
00:04:59,640 --> 00:05:01,490
about your projects.
44

45
00:05:01,530 --> 00:05:04,280
So I am finished for this video.
45

46
00:05:04,290 --> 00:05:05,690
See you in the next video.
