https://www.AutomationDirect.com/servos?utm_source=n791C2HcWNo&utm_medium=VideoTeamDescription
(VID-SV-0057)
Pulse Train mode is for when you want to send the servo drive pulses to control motion. That's typically pulse and direction, but can also be other forms. In this video we'll walk through how to set the drive up for pulse control and do a live demo so you can see how it works. We'll also cover some things you need to know before attempting this on your own system!
Link to PLC Code Example: https://cdn.automationdirect.com/static/video-resources/Servos/VID-SV-0005%20BRX%20Code.zip
Online Support Page: https://community.automationdirect.com/s/?utm_source=n791C2HcWNo&utm_medium=VideoTeamDescription
**Please check our website for our most up-to-date product pricing and availability.
?With the SureServo2’s Pulse Train mode you can send pulses to the servo drive to control the servo motor's movement. This is most common in CNC type applications. And it couldn’t be easier. We just reset the drive to Factory Default, wire it up, enable the servo motor, and send it some pulses. Let’s do it. I’ll go to parameter group 2 parameter 8 and set it to a 10 to reset the drive to Factory Default. And it’s always a good idea to power cycle the drive after a factory reset to make sure everything got cleared out. In my little demo station, I have an AutomationDirect BRX PLC sending pulses to the SureServo drive, which controls the servo motor which is connected to this IGUS linear slide. I wired the PLC to the drive using this 24-volt NPN setup because it’s what the default SureServo drive expects. There are diagrams for PNP wiring in the user manual. And you can also use line driver inputs which give you up to 4Mhz signaling vs the 200KHz of the single-ended wiring and much better noise immunity. So definitely use Line Driver inputs when you can. What if you don’t have a 24-volt controller? Maybe you’re using a microcontroller with 5-volt outputs. Well, that’s one of the cool things about the Sure Servo 2 system. We wired it like this because the current limiting resistor we need for the 24 volts is built in. That saves us the time and trouble of adding that ourselves. But look at this: the drive brings this signal out, so you can add your own current limiting resistor, which means you can use any voltage you want, within reason of course. You are just powering the LED in an opto-isolator, so to do 5 volts for example, you would delete this wire, and wire this pin through a 220-ohm resistor to the 5-volt rail to create the roughly 15 milliamps the opto-isolator needs to turn the LED on. How about that? The only caution is, whatever you do, don’t run a voltage in with NO limiting resistor, you will probably burn out that opto-isolator making the drive useless for Pulse Train mode. So please be careful with that. Ok, let’s get back on track. I chose the Do-more BRX PLC because it has high-speed I/O built-in – I don’t need to buy an extra high-speed output module. And, it happens to be compatible with the max pulse rate of the Sure Servo drive. - and I happened to have one laying around. You can use any controller you want. We have a bunch of videos showing you how to set up and program high-speed I/O in a Do-more PLC so I’m not going to spend time on coding a PLC here. Just know that if I enable this contact the BRX PLC will send 100,000 pulses in one direction at a rate of 100,000 pulses per second, and if I enable this contact it sends the same 100,000 pulses in the other direction. I’ll include the PLCs ladder code in the comments below the video if you want to take a look at it. Well, that’s it! We reset the drive, wired up a PLC, added a couple rungs of ladder code and we are ready to go. So, I’ll enable the servo motor and display the servo motors encoder count. I’ll enable this contact to send 100,000 pulses. Hmm .. that wasn’t very impressive? I’ll click on this guy to go back a hundred thousand pulses. Hmm … Same Thing. We sent 100,000 pulses and that’ all we got? What happened? Remember, the Sure Servo 2 motor has over 16 million pulses per revolution, that by default gets scaled by the electronic gearing to 100,000 pulses per revolution. And since the PLC sent 100,000 pulses, the motor turned exactly 1 revolution - which is 5 millimeters or roughly two-tenths of an inch of travel for the carriage, and stopped. And since we sent the 100,000 pulses at a rate of 100,000 pulses per second, it took 1 second to do it. So if we want the carriage to travel farther we could send ten times the pulses to go 10 times as far, but it will take 10 seconds to do it – that’s way too slow. We could send the pulses faster, but processors are limited in how fast they can send pulses. I could tell this BRX PLC to go twice as fast, but not much more and that would just take us down to 5 seconds for a longer move – that’s still too long. So when you run into limitations like this on the controller side, it’s time to modify the servo side. And that’s where electronic gearing comes in handy – it changes the pulses per revolution of the servo motor. We’ll explain exactly how electronic gearing works in a separate video, but for now, just know that in a factory default drive, whatever you put in parameter 1.045 is how many pulses per revolution the motor will react to. Right now, we see the lower half of this number is zero, and the upper half is a 1 so that’s 100,000 pulses that are required to rotate the motor shaft once. Do we really need 100,000 pulses per revolution? No. If I disable the servo motor and then change that to 10,000 pulses per revolution, then the 100,000 pulses the PLC is sending should make the carriage go 10 times as far. And since the pulse rate hasn’t changed, the carriage will get there in the same amount of time, which means it will be moving 10 times as fast! I’ll re-enable the servo motor, bring up the encoder count display, and send the 100,000 pulses and yep, the carriage moved 10 times as far in the same amount of time. Send 100,000 pulses in the other direction and the carriage returns just as fast. Perfect. So, it’s really important that you balance your processor's output rate versus the resolution of the servo motor. You can get incredible resolution with this servo system, but if you have a slow processor, it will take forever to make the move. You need to choose a servo motor resolution that is good enough to get your job done, but that will also work well with your processor. And be sure to use drive’s built-in line driver signaling whenever possible to get the fastest and most reliable control. We used Pulse and Direction in this video. What if you wanted to use clockwise counterclockwise signaling instead? Easy! Just change the pulse type in parameter 1.0 and change it in the PLC and you are ready to go. Same thing with quadrature pulses. Just select the quadrature option in both places and you are ready to go. But, there are a number of things you can do to improve the performance of the system. You can enable speed and torque limits to protect your system, You can monitor the encoder pulse rate as a voltage on an analog output pin, You can set up multiple torque limits so depending on the application you can quickly switch how much torque the motor can generate, You can have multiple electronic gear ratios that can be applied to the motor without having to reconfigure the drive. You can modify the encoder pulse outputs from the drive, you can limit the max speed of the drive, and you can modify the acceleration and deceleration times. Meanwhile, click here to learn more about the SureServo2 system including where to find more videos. Click here to subscribe to our YouTube channel so you will be notified when we publish more videos like this and click here to learn about AutomationDirect’s free award-winning support options.
Voted #1 mid-sized employer in Atlanta
Check out our
job openings