Turret Automation

UP    HOME

 

The next step was to automate the turret....

 

Turret Drive   Turret Stepper

With the cover removed the turret stepper motor, lock pin solenoid and connector header are all visible. 

 

 

Turret Optical Sensor   Turret Optical Sensor II

Here is a shot of the original optical sensor setup, there are three optical shutter slots.

 

 

Original Shutters   Turret Sensors Scoped

First order of business was to dig out the lab scope and see what was happening when the turret revolved.  The sensor in the turret is a TTL Optical setup, 3 bit output.   Signal pulls low when the shutter wheel passes through the sensor.  The timing of the slots was problematic, the Acorn controller was too fast and  mis-interpreted the #1, 3 & 5 positions, mostly position #1.  Changing the timing of the outside shutter was problematic and I abandoned the three sensor setup.

 

 

Single Slot Shuuter Wheel   Optical Sensor Bracket

I laser cut a new shutter wheel with only one slot (tool #1) to accommodate the Acorn Timed Turret system.  A mounting bracket and plate was then fabricated.  Once again the laser came into play in the manufacture of the sensor mounting plate.  All plastic parts are cut from 1/8" acrylic sheet.

 

 

Installed SIngle Sensor Board  

Installed sensor board with Omron EE SX674A optical sensor installed

 

Shaft Spacers   Completed Encoder Shaft

The laser was used to cut a stack of spacers to replace the original shutter wheel.

 

 

Turret drive is next...

Turret Drive Wiring

 

The Gecko G216 Stepper Driver module diagram.  This driver can be set to make the stepper act like a motor.  Spin of the motor is controlled by an output pins on the Acorn instead of Step/Direction pins.  By setting the mode type to VCO mode, the Step and Direction pins will then act as a Forward or Reverse input.  There are two potentiometers on the driver that allow the speed of the motor to be set, each direction independently if desired.  DIP switch settings are documented in the drawing along with the isolation relay module.

 

 

Motor Controller & Relay Board   Drive/Relay Module Installed

 

A bracket was fabricated to hold the Gecko drive and the required relay board.  This assembly bolts to the ceiling of the cabinet as I have run out of "wall space".  After a final check of the wiring I put the controller into diagnostic mode and monitored the inputs as the turret revolved.   Ultimately in the end, only one relay was required but I elected to not change out the board.

 

I have a video here showing the diagnostic mode from the point where I was planning on using a three rotor encoder setup:   https://www.youtube.com/watch?v=kHPMAhqw3sQ 

 

The Acorn Timed Turret system uses only one optical sensor to set the sync pulse for tool #1.  Subsequent tools are located by turning the turret a prescribed amount of time.  There is no positional information for anything other than toll #1.  The mechanical design of the turret required that the turret be backed up against the hard stop.  As the turret is rotated in the forward direction, the hard stop is spring loaded and lifts when the turret passes a tool position.  Once past the position the turret is backed up until it is locked on the hard stop ensuring precise positioning of the tool.  

The Acorn controller will first need to be synced to tool position #1.  This only needs to occur when the system is started up and not again as long as the system is kept running.  In case of an E-Stop event the position is retained.  However a missed tool position where it stops anywhere in between tools will require a re-initialization. For other tools, the controller runs the turret forward for a predetermined amount of time.  Due to the design of the turret mechanicals the turret then needs to back up against the stop.

 

Time Delay Relay Board 

To accomplish this,  a time delay relay board is added to briefly back the turret up until it hits the hard stop once the controller stops the forward movement.  The relay is driven by the normally closed contact of the turret motor relay.   Acorn turns on the turret motor relay by closing the NO contacts and the motor turns in the CW direction until the controller turns off.  The amount of time the relay is energized is based on how much time the controller decides the turret needs to rotate.  This is about 2 seconds per tool position. When the relay de-energizes, CW rotation stops (actually a little past the hard stop location) and the NC contacts close and this turns on the time delay relay, reversing the rotation.  The turret rotates CCW for 1.3 seconds to back up on the hard stop..

 

Next step, Software!

 

As mentioned above I am using the Timed Turret system in the Acorn controller.  The setup and programming instructions are linked here.   Setup is pretty straight forward and simple.  The additional software components need to be loaded into the Centroid Lathe directory on the machine's PC.  Version 4.50 or later is required to accommodate the turret controls.    Looking at the document you will need to set up the following settings (which can change at any time in the future):

 

Once these are set, tuning was required to get the correct balance between the time in forward motion and reverse motion to get accurate positioning of the turret.  A little bit of stepper buzz when reversing to the stop needs to be tolerated due to slight differences in movement of the turret.  If I were to go back into the turret and move the sensor location I could likely get this reduced quite a bit or even eliminated.  Given the amount of time I have into the project, this will have to be delayed until my ambition returns.  The turret positions just fine as set.

 

 

Turret drive video can be found here...