0
1
00:00:21,410 --> 00:00:22,330
Hello.
1

2
00:00:22,350 --> 00:00:29,730
In this video we are going to take a look to Delta PLC pulse commands and the first pulse commands is
2

3
00:00:29,980 --> 00:00:40,980
PLSY/DPLSY.Important note that in the beginning of the pulse commands PLC outputs to be used
3

4
00:00:40,980 --> 00:00:48,690
for stepping motor etc. must be transistor output.We can say if you need to create a pulse
4

5
00:00:48,690 --> 00:00:58,290
from plc outputs you need transistor output not a relay in Delta plc as example we can use y0 is
5

6
00:00:58,320 --> 00:01:06,120
as pulse output and y1 is direction change output to drive a stepper motor the commands to
6

7
00:01:06,120 --> 00:01:13,210
be explained may not be used in all models of Delta plc but this is just an example Y0 is use
7

8
00:01:13,380 --> 00:01:21,210
pulse output and Y1 is direction change and etc. but we will take a look to all of
8

9
00:01:21,210 --> 00:01:31,080
them and whole commands.First of all PLSY command this command generates the desired number of
9

10
00:01:31,080 --> 00:01:33,350
pulses at the desired frequency.
10

11
00:01:33,360 --> 00:01:36,290
This is the important point okay.
11

12
00:01:36,310 --> 00:01:42,360
You want to the pulses and this is your decision number of pulses and also frequency.
12

13
00:01:42,370 --> 00:01:51,890
And this is also your decision and plsy command is generating desired number of pulse and frequency
13

14
00:01:51,940 --> 00:02:02,970
common command usage PLSY  d56 then y0 like this as one pulse output frequency as two pulse output
14

15
00:02:02,980 --> 00:02:13,060
number D is external output only y0 and Y1 can be specified for this command then D50 pulse
15

16
00:02:13,080 --> 00:02:19,450
frequency value is written in this register for example in the command usage D60 number of
16

17
00:02:19,450 --> 00:02:26,150
pulses to be produced is written in this register it only accepts positive value.
17

18
00:02:26,230 --> 00:02:35,760
This is another one important point for this command if you want to create a pulses that's okay.
18

19
00:02:35,760 --> 00:02:38,150
The number of pulses to be produced.
19

20
00:02:38,220 --> 00:02:47,380
That's okay but you cannot produce negative numbers for this or with command.
20

21
00:02:47,520 --> 00:02:57,840
Just a positive values or pulses can be produced and y0 is pulse output port.Not PLSY command
21

22
00:02:57,870 --> 00:03:06,510
should be used as DPLSY 32 bits if the value in the 50 and D60 registers is more than 16Bit this
22

23
00:03:06,510 --> 00:03:14,040
is also another one important point the direction of the step or servo motors cannot be controlled with
23

24
00:03:14,040 --> 00:03:21,060
this command because of we were writing just the positive values for the direction we need positive
24

25
00:03:21,060 --> 00:03:25,220
and negative pulses for just one positive pulses.
25

26
00:03:25,230 --> 00:03:31,950
You can not control a direction also that the direction output Y1 must be set with the separate input
26

27
00:03:32,310 --> 00:03:41,500
for the direction control but in here we can see an example if M0 is activated D50 & D60.
27

28
00:03:41,580 --> 00:03:46,480
These are what was the d50 frequency value and d60.
28

29
00:03:46,480 --> 00:03:55,050
What was it the number of the pulses to be produced will be produced to y0 will activate an M0
29

30
00:03:55,080 --> 00:04:03,600
y1 is for the direction but the direction how we are controlling we are selecting to another one
30

31
00:04:03,630 --> 00:04:11,940
output and we can say to our stepper or servo motor okay Y1 is coming turn forward it is not activated
31

32
00:04:12,270 --> 00:04:14,650
turn another direction.
32

33
00:04:14,790 --> 00:04:23,670
This is not about the PLSY command, this is an external another one command or decision or
33

34
00:04:23,670 --> 00:04:24,620
program.
34

35
00:04:24,780 --> 00:04:33,120
For example in here we can see it in this picture this program application that generates 
35

36
00:04:33,360 --> 00:04:42,960
in here you can see it 5000 pulses at 20 Khz or 20000 herthz and a frequency
36

37
00:04:43,140 --> 00:04:50,510
if the M0 condition is provided and from Y0 output for Channel 0.
37

38
00:04:50,670 --> 00:04:55,840
So five thousand pulses will be produced.
38

39
00:04:56,140 --> 00:04:59,940
at 20Khz from Y0.
39

40
00:05:00,000 --> 00:05:09,140
Example; sensor connected to the X0 input and we want to rotate stepper motor two point five turns
40

41
00:05:09,150 --> 00:05:14,430
clockwise at a speed of 1000 Herthz in here.
41

42
00:05:14,460 --> 00:05:22,320
Let's say that the stepper motors the steps used in is one point eight degrees in the sample solution
42

43
00:05:22,320 --> 00:05:24,260
given above or here.
43

44
00:05:24,340 --> 00:05:31,950
Five hundred decimal numbers were entered for two point five turns, Why?
44

45
00:05:31,970 --> 00:05:41,270
Because 360 is one turn is divided by because steps of the stepper motors is 
45

46
00:05:41,360 --> 00:05:50,810
1,8 degrees and 360 divided by 1,8 is equals two hundred pulses are required
46

47
00:05:50,810 --> 00:05:55,610
for one turn.One turn two hundred required.
47

48
00:05:55,820 --> 00:06:02,860
So we want to turn our stepper motors 2.5 turns multiply by two point five.
48

49
00:06:02,870 --> 00:06:13,950
So we because of this result if we multiplied two hundred multiply by 2.5 it will be five hundred.
49

50
00:06:13,980 --> 00:06:15,190
We write here.
50

51
00:06:15,190 --> 00:06:16,630
Five hundred.
51

52
00:06:16,630 --> 00:06:22,760
So these pulses must be produced or generates in output.
52

53
00:06:22,910 --> 00:06:24,370
2.
53

54
00:06:24,430 --> 00:06:32,800
And if we move from this point five hundred pulses are required for 2.5 turns M1029
54

55
00:06:32,800 --> 00:06:38,810
bit is the flag sets when the specified number of pulses is completed.
55

56
00:06:38,920 --> 00:06:49,480
So when when we reach that pulses 500 pulses and M1029 auxiliary relay bit will be high
56

57
00:06:49,870 --> 00:06:52,260
with the input of X0
57

58
00:06:52,270 --> 00:06:56,530
This flag was reset and the new loop was initiated.
58

59
00:06:56,530 --> 00:07:04,710
So in here M1000 always on contact and we are started suddenly because M1029 is not high.
59

60
00:07:04,780 --> 00:07:14,340
We are producing five hundred pulses at one thousand herthz or at 1 kilohertz.
60

61
00:07:14,350 --> 00:07:16,130
So from the Y0.
61

62
00:07:16,150 --> 00:07:18,510
This is our output the motor is turning.
62

63
00:07:18,520 --> 00:07:22,280
When we get five hundred.
63

64
00:07:22,450 --> 00:07:32,170
we are activating M1029 auxiliary relay. sensor is what sensor is doing because each
64

65
00:07:32,170 --> 00:07:37,290
time we need to reset M1029 after 500 pulse.
65

66
00:07:37,420 --> 00:07:42,020
So X0 when this sensor comes becomes high.
66

67
00:07:42,130 --> 00:07:46,650
That moment we are resetting M1029 auxiliary relay.
67

68
00:07:46,720 --> 00:07:52,420
This was the example of PLSY command for this video I am finished here.
68

69
00:07:52,420 --> 00:07:53,950
See you in the next video.
