Hello In this video. 1
We are going to continue to delta plc pulse commands so they will learn today PLSV/DPLSV 2
command 3
So this command produces continuous pulses. 4
First important point and the desired frequency. 5
The second important point and in the desired direction. 6
Third important point in here you can see command usage DPLSV D80 Y0 Y1, D80 pulse 7
frequency value is written in this register y0 pulse output port it is assigned our dedicated pulse 8
output port and y1 is the output selected as the direction output port not it is the command that 9
outputs y 0 with the frequency value written in the 80 register with PLSV command here if the value 10
written in D80s positive step and servo motors returns or turns counter clockwise and if d80 11
negative value Y1 helps to turn these motors in the opposite direction helps is not a correct verb 12
y1 turns in the opposite direction exactly this command is used to control both programs and the 13
direction with the produced pulse and other one important point. 14
For example if k 1000 value is written in the 80 step and servo turns to one direction at 1 kilohertz 15
frequency and if k -1000 is written it generates negative pulses it is now 16
opposite direction at 1 khz frequency this application. 17
Let's take a look. 18
It's a program application that generates continuous pulse at 1 khz D80 and this frequency if 19
condition. 20
Let's imagine in here we have a contact m0 if m 0 condition is provided from Channel 0 output for Channel 21
0 direction input of servo connected to output y1 frequency value written in D80 22
k1000 and the servo rotates and in y1 I mean it's positive so it's counter not a 23
counter, clockwise direction so according to these values is plus or minus we can detect 24
or assign a direction in second example you can see it's a program application that generates one to 25
20 kilohertz so twenty thousand hertz but in D80 you will see this is not a positive this 26
is negative or minus value so this frequency. 27
Imagine in here so we have a contact. 28
Activate this command let us give a name it m 0 condition is provided from Channel 0 output for Channel 29
0 direction input of servo connected or step motor is connected to output y 1 the frequency value is 30
written it equals to negative twenty thousand because of now all motors step or servo motors turns 31
counterclockwise not clockwise in here we are turning this direction in here we are turning this direction 32
opposite direction so PLSV 33
Command is works like this in here we will take a look to one example when X0 input is active the 34
stepper motors needs to rotate clockwise direction at a rate of 10 kilohertz and then it's one input 35
is active it needs to rotate at the rate of 20 kilohertz in the counter opposite direction its two 36
needs to stop system so write plc program according to these conditions. 37
Let's take a look to our project 1 x 0 is active Stepper Motors needs to turn clockwise 10 kilohertz 38
because of this we need plus ten thousand to D0, D0 is that is data register so we 39
we defined it we selected it and if X one is activated so 20kHz an opposite direction so twenty 40
thousand but negative twenty thousand value is going to be written in D0 in here if x 0 or x1 41
is active but x2 is not active. 42
So the condition is okay X0 or x 1 is coming D0 will be assigned to a situation of X0 or x 1 43
so x0 or x1 active or not X2,, DPLSV 44
Command is going to generate a pulses continuously at the desired frequency at the desired direction 45
so if X0 is coming at 1000 kilohertz from the y0 our stepper motor will turn forward direction or 46
clockwise direction if X1 is coming. 47
So that moment minus twenty thousand times or 20 kilohertz. 48
This is the frequency rate or frequency so it will be assigned to y0 to d1 and y1 will change the 49
direction and we will turn another counterclockwise direction that moment. 50
But if somebody is pressed it's too button or x 2 is activated by somebody else or something else. 51
This contact will be high because of this. 52
There is no flow to this instruction and system will be stopped immediately. 53
So you can't use PLSV/DPLSV command like this. 54
So I'm finished in this video. 55
See you in the next video.