Hello. 1
Let's continue. 2
to questions and answers. 3
Part 3. 4
So let's take a look. 5
Question 1 6
I tried to capacitors solution but I didn't get the result I'm using DVPAD04-S2 7
module 8
So I have already used the average value recorder or register but in order to soften the value a 9
little bit more can I read the value every 10 seconds from the data that I wrote the value of and collect 10
the values. 11
And is there such command so let's take a look once to our answer you can increase the number of averages 12
of related channels and read from the average value register so you can reach the average by summing 13
as follows. 14
This is an example not to according to 10 seconds but let's take a look. 15
Each one hundred millisecond clock pulse. 16
We are adding analog reading value so this is coming from the analog inputs and with the D200. 17
And we are writing to this addiction to D200. 18
So for example we are getting 10 and 10 to zero and we are writing it to directly to here ten and we 19
are reading 20 , 20 plus ten again to D200 becomes 30. 20
It will goes like this and we are adding and adding and overwriting always to D200 but 21
each one hundred millisecond clock pulse and also each one hundred millisecond clock pulse we are increasing 22
our pointer number as D0 data registers so we assign D0 data registers to our pointer 23
number and if our pointer number is it equals or greater than K 5 we are dividing D200 analog 24
additions result data registers then we can say like this we are division this value to the K5 or just 25
5 and we are writing this divided value to D300. 26
So what happens now. 27
D300 becomes average analog input value. 28
And that moment after this condition okay we are sending 0 to D200. 29
And we are sending 0 to d0 pointer. 30
So this loop is starting and finishing each half second five hundred milliseconds. 31
We are reading five analog input value and we are adding these values to completely and we are adding 32
them all in D200 33
after half second in D212 is dividing by K 5 and we are getting the 34
result in D300 35
So let's take a look. 36
to question two we need 20ms on and one hundred ninety nine millisecond off contact. 37
How can we achieve and we want to output 20 microseconds and five times per second. 38
And which command -- 20ms and 39
five times per second. 40
Which command is required to do this nanosecond process with Pwm. 41
This is our question and let's take a look. 42
To answer. 43
So first of all we need to know that reference table for the output cycle and output width range of 44
pulse outputs width and cycle. 45
In here you can see for y0 y1 or 2 and Y3 , y0. 46
width and cycle can be adopt between zero to ten thousand or one to ten thousand and in here we have 47
flags for switching unit. 48
For example when M1112 is on this one the unit of y 0 output pulse is becomes 49
10 microseconds and when M1112 is of the unit is becomes one hundred microsecond 50
when M1070 on. 51
For example in here the unit of y one output pulse is becomes one hundred microseconds but when and 52
1070 is on the unit is y1 becomes 1 Ms. 53
So in here you can check the table and you can see the complete changes of these output cycles and output 54
widths. 55
So according to this table you can see and you can use these values in your projects. 56
So Q3 I want to control 5 or 6 stepper motor. 57
I can drive 4 stepper motor with DVP28SV , 58
What kind of suggestion would you have for the other one. 59
Answer is that AS228 plcs 200Khz pulse to as output 60
up to twelve axis. 61
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
run in your projects you can use AS228 plcs in your projects. 63
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
and I want to see these value after 350 on the screen. 65
So how can I do it so the user is wants to see the data on the HMI above 66
If the data is bigger than or greater than 350 67
So if you add the following comparison line below the value in D100. 68
The value will reset the D100 for d350 and below what here in here. 69
This is always on contact. 70
It is global contact M1000 always. 71
Or it is moving d200 value to D100. 72
Always if D100 value is lower than K350 73
350 74
We are moving zero to D100 always so in here we are getting a data from inside of 75
the D200 and we are sending it to D100 but now we are looking to compare value. 76
If this data is lower than K350 okay. 77
We are writing 0 to D100 so inside of the HMI or on the HMI or anywhere else you cannot see a 78
value or anything else. 79
If the value is greater than 350 you are going to see the value in D200 on your HMI 80
or on your or in your plc 81
So let's take a look to question 5, is the register D1030 82
is the register D 1030 32-bit for the indicator register for SS2 plc Channel1 83
-- 84
I wonder if I move k 0 to D1030. 85
Command is correct. 86
And if we want to reset this registers or do I need to use like DMOV or double move k0 to D 1030 87
D1030 88
So what is the meaning of this question. 89
D1030 for example is it 32 bit registered for the indicator registers. 90
Or we want to send 0 to these registers or we want to clear a registers but the registers can be sixteen 91
bit or two a 32 bit so all position indicator registers for Delta plcs are 32 bit addresses so these 92
registers or indicator registers have or has a 32 bit addresses so since these addresses are writable 93
you can move the number 0 with the DMOV command. 94
If you're working with the 32 bit register you need to use double or dmov in your plc projects. 95
So in this video I'm finished here. 96
See you in the next video.