Servo Motor Control – How to control DC Servo Motors

In this example, we’ll be controlling a brushless DC servo motors.

Here is what we’ll end up with :

 

Wirring PLC to ClearPath Motor

Wiring-Clearpath-To-PLC

Wiring

PLC-to-Motor connections using Teknic’s 8 wire control cable:
  • Tie Blue, Green, White and Black to the same +5V used to power the PLC.
  • Yellow is Step
  • Brown is Direction
  • Orange is Enable
  • Red is a signal from the motor, telling you when a movement is complete

Programming

Files used in this example :

Clearpath.zip

Faster Example

Let’s turn things up a bit:  This example goes 200,000 steps per second for 10 rotations in each direction

Use the following files for the Faster Example :

ClearPath_Fast.zip