PLC Archive:Motion Control - Single Axis
From ControlWiki
Motion Control - Single Axis
contributed by: Allen Smith
Link to File
Click here to view program file.
Abstract
An X-Axis motion control program for automating paint spraying.
This program controls a motor mounted to a plate which slides along a rail.
To reverse the direction of the motor, we used two pair of PLC relay outputs to swap the polarity of the voltage to the motor.
The speed of the motor is set by a potentiometer and viewed on a digital display.
A motor controller is used to send the motor 0-30VDC from a 30VDC power supply controlled by a 0-10VDC PLC analog output signal.
Two limit switches(left and right) are used to stop the plate and then send it back the other direction.
Disclaimer
For all material in the PLC Archive, our site disclaimer applies. You take full responsibility for the application of any code appearing on this site, as we have made no engineering evaluation of the code nor are we, or the author, familiar with the details and risks inherent in your application.