0
1
00:00:22,000 --> 00:00:23,620
Hello In this video.
1

2
00:00:23,620 --> 00:00:32,290
We are going to continue to delta  plc pulse commands so they will learn today  PLSV/DPLSV
2

3
00:00:32,350 --> 00:00:35,210
command 
3

4
00:00:35,230 --> 00:00:38,740
So this command produces continuous pulses.
4

5
00:00:38,830 --> 00:00:43,180
First important point and the desired frequency.
5

6
00:00:43,180 --> 00:00:47,900
The second important point and in the desired direction.
6

7
00:00:47,920 --> 00:00:58,960
Third important point in here you can see command usage DPLSV D80 Y0 Y1, D80 pulse
7

8
00:00:58,960 --> 00:01:08,060
frequency value is written in this register y0 pulse output port it is assigned our dedicated pulse
8

9
00:01:08,060 --> 00:01:15,860
output port and y1 is the output selected as the direction output port not it is the command that
9

10
00:01:16,040 --> 00:01:23,420
outputs y 0 with the frequency value written in the 80 register with PLSV command here if the value
10

11
00:01:23,420 --> 00:01:32,690
written in D80s positive step and servo motors returns or turns counter clockwise and if d80
11

12
00:01:32,690 --> 00:01:42,920
negative value Y1 helps to turn these motors in the opposite direction helps is not a correct verb
12

13
00:01:43,510 --> 00:01:50,270
y1 turns in the opposite direction exactly this command is used to control both programs and the
13

14
00:01:50,270 --> 00:01:54,550
direction with the produced pulse and other one important point.
14

15
00:01:54,680 --> 00:02:03,500
For example if k 1000 value is written in the 80 step and servo turns to one direction at 1 kilohertz
15

16
00:02:03,710 --> 00:02:13,430
frequency and if k -1000 is written it generates negative pulses it is now
16

17
00:02:13,940 --> 00:02:18,320
opposite direction at 1 khz frequency this application.
17

18
00:02:18,350 --> 00:02:19,490
Let's take a look.
18

19
00:02:19,700 --> 00:02:26,930
It's a program application that generates continuous pulse at 1 khz D80 and this frequency if
19

20
00:02:26,980 --> 00:02:27,990
condition.
20

21
00:02:28,040 --> 00:02:39,140
Let's imagine in here we have a contact m0 if m 0 condition is provided from Channel 0 output for Channel
21

22
00:02:39,140 --> 00:02:49,520
0 direction input of servo connected to output y1 frequency value  written in D80
22

23
00:02:49,520 --> 00:03:01,280
k1000 and the servo rotates and in y1 I mean it's positive so it's counter not a
23

24
00:03:01,280 --> 00:03:13,110
counter, clockwise direction so according to these values is plus or minus we can detect
24

25
00:03:13,140 --> 00:03:21,710
or assign a direction in second example you can see it's a program application that generates one to
25

26
00:03:21,780 --> 00:03:31,170
20 kilohertz so twenty thousand hertz but in D80 you will see this is not a positive this
26

27
00:03:31,170 --> 00:03:38,430
is negative or minus value so this frequency.
27

28
00:03:38,430 --> 00:03:41,480
Imagine in here so we have a contact.
28

29
00:03:41,700 --> 00:03:50,460
Activate this command let us give a name it m 0 condition is provided from Channel 0 output for Channel
29

30
00:03:50,460 --> 00:03:59,580
0 direction input of servo connected or step motor is connected to output y 1 the frequency value is
30

31
00:03:59,580 --> 00:04:11,130
written it equals to negative twenty thousand because of now all motors step or servo motors turns
31

32
00:04:11,310 --> 00:04:20,040
counterclockwise not clockwise in here we are turning this direction in here we are turning this direction
32

33
00:04:20,220 --> 00:04:23,050
opposite direction so PLSV
33

34
00:04:23,050 --> 00:04:32,420
Command is works like this in here we will take a look to one example when X0 input is active the
34

35
00:04:32,430 --> 00:04:41,880
stepper motors needs to rotate clockwise direction at a rate of 10 kilohertz and then it's one input
35

36
00:04:41,880 --> 00:04:50,250
is active it needs to rotate at the rate of 20 kilohertz in the counter opposite direction its two
36

37
00:04:50,370 --> 00:04:56,760
needs to stop system so write plc  program according to these conditions.
37

38
00:04:56,820 --> 00:05:05,520
Let's take a look to our project 1 x 0 is active Stepper Motors needs to turn clockwise 10 kilohertz
38

39
00:05:05,550 --> 00:05:15,370
because of this we need plus ten thousand to D0, D0 is  that is data register so we
39

40
00:05:15,660 --> 00:05:25,590
we defined it we selected it and if X one is activated so 20kHz an opposite direction so twenty
40

41
00:05:25,590 --> 00:05:35,970
thousand but negative twenty thousand value is going to be written in D0 in here if x 0 or x1
41

42
00:05:35,970 --> 00:05:39,930
is active but x2 is not active.
42

43
00:05:39,930 --> 00:05:48,340
So the condition is okay X0 or x 1 is coming D0 will be assigned to a situation of X0 or x 1
43

44
00:05:48,750 --> 00:05:55,670
so x0 or x1 active or not X2,,  DPLSV
44

45
00:05:55,690 --> 00:06:03,770
Command is going to generate a pulses continuously at the desired frequency at the desired direction
45

46
00:06:04,040 --> 00:06:15,260
so if X0 is coming at 1000 kilohertz from the y0 our stepper motor will turn forward direction or
46

47
00:06:15,260 --> 00:06:18,450
clockwise direction if X1 is coming.
47

48
00:06:18,560 --> 00:06:25,960
So that moment minus twenty thousand times or 20 kilohertz.
48

49
00:06:25,970 --> 00:06:36,170
This is the frequency rate or frequency so it will be assigned to y0 to d1 and y1 will change the
49

50
00:06:36,170 --> 00:06:41,260
direction and we will turn another counterclockwise direction that moment.
50

51
00:06:41,390 --> 00:06:49,060
But if somebody is pressed it's too button or x 2 is activated by somebody else or something else.
51

52
00:06:49,190 --> 00:06:53,180
This contact will be high because of this.
52

53
00:06:53,180 --> 00:06:59,030
There is no flow to this instruction and system will be stopped immediately.
53

54
00:06:59,150 --> 00:07:05,330
So you can't use PLSV/DPLSV command like this.
54

55
00:07:05,330 --> 00:07:07,600
So I'm finished in this video.
55

56
00:07:07,670 --> 00:07:09,080
See you in the next video.
