0
1
00:00:21,590 --> 00:00:22,350
Hello.
1

2
00:00:22,350 --> 00:00:23,250
Let's continue.
2

3
00:00:23,250 --> 00:00:25,970
to questions and answers.
3

4
00:00:26,070 --> 00:00:27,630
Part 3.
4

5
00:00:27,630 --> 00:00:28,920
So let's take a look.
5

6
00:00:28,920 --> 00:00:30,180
Question 1
6

7
00:00:30,270 --> 00:00:39,620
I tried to capacitors solution but I didn't get the result I'm using  DVPAD04-S2
7

8
00:00:39,620 --> 00:00:40,500
module
8

9
00:00:40,590 --> 00:00:47,970
So I have already used the average value recorder or register but in order to soften the value a
9

10
00:00:47,970 --> 00:00:56,550
little bit more can I read the value every 10 seconds from the data that I wrote the value of and collect
10

11
00:00:56,550 --> 00:00:57,370
the values.
11

12
00:00:57,510 --> 00:01:06,130
And is there such command so let's take a look once to our answer you can increase the number of averages
12

13
00:01:06,460 --> 00:01:14,050
of related channels and read from the average value register so you can reach the average by summing
13

14
00:01:14,290 --> 00:01:15,340
as follows.
14

15
00:01:15,340 --> 00:01:20,800
This is an example not to according to 10 seconds but let's take a look.
15

16
00:01:20,860 --> 00:01:24,610
Each one hundred millisecond clock pulse.
16

17
00:01:24,760 --> 00:01:34,480
We are adding analog reading value so this is coming from the analog inputs and with the D200.
17

18
00:01:34,780 --> 00:01:39,410
And we are writing to this addiction to D200.
18

19
00:01:39,730 --> 00:01:47,410
So for example we are getting 10 and 10 to zero and we are writing it to directly to here ten and we
19

20
00:01:47,410 --> 00:01:55,890
are reading 20 , 20 plus ten again to D200 becomes 30.
20

21
00:01:55,900 --> 00:02:02,470
It will goes like this and we are adding and adding and overwriting always to D200 but
21

22
00:02:02,980 --> 00:02:10,810
each one hundred millisecond clock pulse and also each one hundred millisecond clock pulse we are increasing
22

23
00:02:10,960 --> 00:02:19,480
our pointer number as D0 data registers so we assign D0 data registers to our pointer
23

24
00:02:19,480 --> 00:02:31,360
number and if our pointer number is it equals or greater than K 5 we are dividing D200 analog
24

25
00:02:31,720 --> 00:02:41,200
additions result data registers then we can say like this we are division this value to the K5 or just
25

26
00:02:41,200 --> 00:02:48,070
5 and we are writing this divided value to D300.
26

27
00:02:48,070 --> 00:02:50,540
So what happens now.
27

28
00:02:50,690 --> 00:02:55,920
D300 becomes average analog input value.
28

29
00:02:56,200 --> 00:03:04,010
And that moment after this condition okay we are sending 0 to D200.
29

30
00:03:04,120 --> 00:03:08,350
And we are sending 0 to d0 pointer.
30

31
00:03:08,470 --> 00:03:18,430
So this loop is starting and finishing each half second five hundred milliseconds.
31

32
00:03:18,530 --> 00:03:27,110
We are reading five analog input value and we are adding these values to completely and we are adding
32

33
00:03:27,110 --> 00:03:28,410
them all in D200
33

34
00:03:28,430 --> 00:03:36,860
after half second in D212 is dividing by K 5 and we are getting the
34

35
00:03:36,860 --> 00:03:40,220
result in D300
35

36
00:03:40,610 --> 00:03:42,520
So let's take a look.
36

37
00:03:42,510 --> 00:03:53,240
to question two we need 20ms on and one hundred ninety nine millisecond off contact.
37

38
00:03:53,240 --> 00:04:03,660
How can we achieve and we want to output 20 microseconds and five times per second.
38

39
00:04:04,010 --> 00:04:08,750
And which command -- 20ms and
39

40
00:04:12,170 --> 00:04:13,680
five times per second.
40

41
00:04:13,700 --> 00:04:20,830
Which command is required to do this nanosecond process with Pwm.
41

42
00:04:20,960 --> 00:04:24,590
This is our question and let's take a look.
42

43
00:04:24,740 --> 00:04:27,420
To answer.
43

44
00:04:27,520 --> 00:04:38,540
So first of all we need to know that reference table for the output cycle and output width range of
44

45
00:04:38,540 --> 00:04:41,380
pulse outputs width and cycle.
45

46
00:04:41,480 --> 00:04:49,000
In here you can see for y0 y1 or 2 and Y3 , y0.
46

47
00:04:49,130 --> 00:05:00,880
width and cycle can be adopt between zero to ten thousand or one to ten thousand and in here we have
47

48
00:05:00,880 --> 00:05:03,020
flags  for switching unit.
48

49
00:05:03,110 --> 00:05:14,450
For example when M1112 is on this one the unit of y 0 output pulse is becomes
49

50
00:05:14,780 --> 00:05:25,670
10 microseconds and when M1112 is of the unit is becomes one hundred microsecond
50

51
00:05:25,990 --> 00:05:29,750
when M1070 on.
51

52
00:05:29,750 --> 00:05:38,480
For example in here the unit of y one output pulse is becomes one hundred microseconds but when and
52

53
00:05:38,480 --> 00:05:47,610
1070 is on the unit is y1 becomes 1 Ms.
53

54
00:05:47,630 --> 00:05:58,250
So in here you can check the table and you can see the complete changes of these output cycles and output
54

55
00:05:58,360 --> 00:05:59,190
widths.
55

56
00:05:59,240 --> 00:06:07,770
So according to this table you can see and you can use these values in your projects.
56

57
00:06:08,480 --> 00:06:16,350
So Q3 I  want to control 5 or 6 stepper motor.
57

58
00:06:16,430 --> 00:06:24,440
I can drive 4 stepper motor with DVP28SV , 
58

59
00:06:24,510 --> 00:06:28,580
What kind of suggestion would you have for the other one.
59

60
00:06:28,590 --> 00:06:38,310
Answer is that AS228 plcs 200Khz pulse to as output
60

61
00:06:38,490 --> 00:06:40,810
up to twelve axis.
61

62
00:06:40,950 --> 00:06:51,240
So if you want to run or use 5 or 6 or 7 stepper motors or the pulse output devices that you need to
62

63
00:06:51,300 --> 00:06:58,820
run in your projects you can use AS228 plcs in your projects.
63

64
00:06:58,860 --> 00:07:10,170
Let's take a look to question 4 and I do not want to see the content of the D100 data up to 350
64

65
00:07:10,560 --> 00:07:18,320
and I want to see these value after 350 on the screen.
65

66
00:07:18,420 --> 00:07:29,490
So how can I do it so the user is wants to see the data on the HMI above
66

67
00:07:29,500 --> 00:07:34,570
If the data is bigger than or greater than 350
67

68
00:07:34,570 --> 00:07:40,330
So if you add the following comparison line below the value in D100.
68

69
00:07:40,330 --> 00:07:48,700
The value will reset the D100 for d350 and below what here in here.
69

70
00:07:48,700 --> 00:07:50,760
This is always on contact.
70

71
00:07:50,800 --> 00:07:55,240
It is global contact M1000 always.
71

72
00:07:55,260 --> 00:08:02,270
Or it is moving d200 value to D100.
72

73
00:08:02,350 --> 00:08:09,990
Always if D100 value is lower than K350
73

74
00:08:10,000 --> 00:08:13,900
350
74

75
00:08:14,020 --> 00:08:25,570
We are moving zero to D100 always so in here we are getting a data from inside of
75

76
00:08:25,570 --> 00:08:33,770
the D200 and we are sending it to D100 but now we are looking to compare value.
76

77
00:08:33,940 --> 00:08:38,990
If this data is lower than K350 okay.
77

78
00:08:39,130 --> 00:08:48,280
We are writing 0 to D100 so inside of the HMI or on the HMI  or anywhere else you cannot see a
78

79
00:08:48,280 --> 00:08:51,400
value or anything else.
79

80
00:08:51,700 --> 00:09:01,250
If the value is greater than 350 you are going to see the value in D200 on your HMI
80

81
00:09:01,270 --> 00:09:03,750
or on your or in your plc
81

82
00:09:04,180 --> 00:09:16,040
So let's take a look to question 5, is the register D1030
82

83
00:09:16,290 --> 00:09:25,470
is the register D 1030 32-bit for the indicator register for SS2 plc Channel1
83

84
00:09:25,560 --> 00:09:25,950
--
84

85
00:09:26,400 --> 00:09:31,760
I wonder if I move k 0 to D1030.
85

86
00:09:31,800 --> 00:09:33,840
Command is correct.
86

87
00:09:34,140 --> 00:09:43,890
And if we want to reset this registers or do I need to use like
DMOV or double move k0 to D 1030
87

88
00:09:43,900 --> 00:09:46,090
D1030
88

89
00:09:46,140 --> 00:09:50,430
So what is the meaning of this question.
89

90
00:09:50,430 --> 00:09:59,310
D1030 for example is it 32 bit registered for the indicator registers.
90

91
00:09:59,440 --> 00:10:07,240
Or we want to send 0 to these registers or we want to clear a registers but the registers can be sixteen
91

92
00:10:07,240 --> 00:10:17,230
bit or two a 32 bit so all position indicator registers for Delta plcs are 32 bit addresses so these
92

93
00:10:17,230 --> 00:10:26,730
registers or indicator registers have or has a 32 bit addresses so since these addresses are writable
93

94
00:10:27,310 --> 00:10:33,220
you can move the number 0 with the DMOV command.
94

95
00:10:33,280 --> 00:10:46,310
If you're working with the 32 bit register you need to use double or dmov in your plc projects.
95

96
00:10:46,410 --> 00:10:49,830
So in this video I'm finished here.
96

97
00:10:49,830 --> 00:10:51,420
See you in the next video.
