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