Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Maxtownshend on December 04, 2006, 12:01:18 PM

Title: Mach ? to control Starturn 5
Post by: Maxtownshend on December 04, 2006, 12:01:18 PM
Is it anyway possible to control the 8 way toolpost with Mach 4 on a Denford Starturn 5 Lathe or do you still have to stop the lathe and do it yourself as mentioned in the manual?
Title: Re: Mach ? to control Starturn 5
Post by: Chaoticone on December 04, 2006, 12:08:28 PM
Max, where you been? Haven't you heard? All things are possible...................with Mach. ;D No really, I'm not familiar with this machine. Could you post some pics. on the show and tell? I'm sure some of the guys already know but I like to figure stuff out. How is it operated manually? Is it push a button and hydraulics actually do the changing or what?
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 04, 2006, 01:47:42 PM
(http://) How do I post images?
Title: Re: Mach ? to control Starturn 5
Post by: Chaoticone on December 04, 2006, 02:02:29 PM
Click on reply at the top of this post. On the reply page, lower left corner, click on additional options. Browse to your image. JPEG files no wider than 600 pixels. You can post up to four by clicking more attachments.
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 04, 2006, 03:33:29 PM
Hi Chaoticone,
Thanks for that. Here are some pictures and circuits. The actuating motor is 24V and there are three IR sensors outputting grey code 0-7 for the tool positions. I guess I need a PLC or similar to interface.

The spindle motor is 150V max 4A. Suitable driver KWBWS-15.
Stepper motors are 2,5A 4 wire

By the way, I have just purchased this machine and have not had it working because there is very little information available from the manufacturer, but they are eager to help. I am working out my options. Original control or Mach 4.

regards,

Max
Title: Re: Mach ? to control Starturn 5
Post by: Hood on December 04, 2006, 03:39:44 PM
About to do a 6 station rear turret and 4 station front  toolpost on my Computurn lathe with a PLC, I know nothing about programming  PLCs yet but lots of nice people here to help idiots like me out.
 I think Brian is about to do a plugin for toolchangers which should be very handy, not sure when this will happen as I dont know how Brian and Art find the time to do all they do already.
Hood
Title: Re: Mach ? to control Starturn 5
Post by: Chaoticone on December 04, 2006, 04:45:08 PM
Your welcome Max,
     I don't see where you will have any trouble getting Mach to do what you want. I just breezed over the pics. Mach is so versatile it's not even funny. It will most likely be a learning curve for you but not so sharp you won't get straightened out. If you get a little sideways, lots of people here to help get you straight. I do not understand all of the particulars of the Modbuss or PLCs in conjunction with Mach but I do understand you can have more IO than you can shake a stick at. One simple way to get 56 more inputs is with an IPac keystroke emulator. A lot of bang for the buck. http://www.ultimarc.com/ipac1.html Mach will work with all sorts of hardware. From cheaper (in price, not quality) hobby type hardware to PLCs and such. You just have to figure out which way you are going to go and head that way. I would choose Mach any day of the week.
Title: Re: Mach ? to control Starturn 5
Post by: Chaoticone on December 04, 2006, 06:05:02 PM
Max, I forgot to mention, Mach 4 has been replaced by Mach 3 and the g100 plugin.
Title: Re: Mach ? to control Starturn 5
Post by: JDolecki on December 04, 2006, 09:25:28 PM
I think you would need at least 1 input and 1 output from Mach3 to control a tool changer. If you were to design your tool changer around a PLC then that would be the minimun. The output would tell the Tool changer(PLC) to change tools, and the plc would communicate back saying I'm done changing tools by turning on the input saying "OK to continue running the program".

The PLC then would have the required amount of I/O for the tool changer for relays, solenoids, encoders, etc. The only problem that way is Mach would not know what tool is in position it would only know that the plc says that everything is alright with the tool change process. So for that system to work, i think you would have to load your tools in sequence. like drill chuck, roughing mill, finishing mill, you get the idea. And mach would increment the tool change one position at a time.

Its easy to get the Tool changer/PLC  to identify what tool is in each location the hard part is getting that information back into Mach with the limited amount of I/O available.

I a very capable plc programmer. AB, Mitsubishi, keyence, Automation direct. so if someone need help i can easly write the program providing they have the correct software or use a AB, Mitsubishi, Keyence or Automation direct PLC.

JOHN

Title: Re: Mach ? to control Starturn 5
Post by: Hood on December 05, 2006, 02:32:41 AM
From what I understand (which is not much ;) ) Mach can talk with a PLC over modbus and so should see if the tool position is correct, maybe I misunderstood though.
Hood
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 05, 2006, 05:23:22 AM
Hi John and Hood,

Thank you for your input.
I am not happy with the one pulse solution, as if there is a power glitch or when the system is powered up, there is no feedback or handshake to tell Mach where the tools are. This could lead to some interesting adrenalin rush bending and mangeling. Would it be possible for Mach to output one pule for tool 1 and two pulses for tool 2 etc. The toolpost logic could then send a pulse back to Mach to verify.

Even further, could the transmission be an eight bit serial word both ways to ensure no mistakes?

regards,

Max
Title: Re: Mach ? to control Starturn 5
Post by: Chaoticone on December 05, 2006, 09:15:53 AM
Hi Max
   I would think you could do this a number of ways. Encoders, prox switches, etc. As for not feeling safe about the one pulse, that wouldn't worry me so much. I know what you are talking about with power glitches and such. I would wire in an e-stop contactor that is normally open, if the power flickers, it will kill everything. The plant I work at has a lot of huge, high end machines. They all wok this way. Most of the time it saves the day, every once in a while, bang, boom, run  ;D. No matter how you prepare, a power glitch is never good on a CNC machine weather you are running Mach or a multi thousand dollar Fanuc controller. As far as trusting the PLC, I would have no problem with that either. They are very reliable. In fact, the machines we count on the most are custom made manual machines that are all PLC controlled. They are tied into a cell which also has some large CNC lathes. They are loaded and unloaded by large 6 axis robots, feed by automated conveyors, also PLC controll. I'm in maint. Guess where I spend the most of my time? It's not on the PLCs. I like the thought of one pulse. I'm no programer but I know you can put in timers and such to help eliminate false signals. I look at it like this. We use 8 bit encoders to verify positioning of our turrets. Now the controller does look to see that all bits are right. But in the end in still only sends one signal. Yes, we are where we need to be, go to the next work coord. I have seen false readings on encoders as well. This makes a mess. Another note, on our newest lathes, Fanuc controllers, they actually use PLCs for a lot of the IO. ;D Just food for thought.
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 05, 2006, 10:32:47 AM
Hi Chaoticone,

Thanks for your thorough reply. And yes, PLCs are incredibly reliable and only fail due to faulty components which is extremely rare. not like computers (which go wrong minute by minute when on Windows!)

What I can't understand is how you identify the correct tool in the first place. If Mach assumes tool 1 and you were on, say, tool 5 from the last programme, how do you get back to tool one?

Max
Title: Re: Mach ? to control Starturn 5
Post by: Graham Waterworth on December 05, 2006, 11:54:04 AM
Call tool 1 at the start of your program, if the PLC software is written right it will know where tool 1 is by the opto sensors.

Graham.
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 05, 2006, 12:12:45 PM
Hi Graham,

Thanks for that.
But, how do you tell the PLC that it is the start of a program for it to set tool one?

Is it possible to send one pulse for tool 1, two pulses for tool 2 and so on? By, say, calling for one or more than one "change tool" pulses within a defined time window and then the PLC would definitely know which tool to select.

Max
Title: Re: Mach ? to control Starturn 5
Post by: Graham Waterworth on December 05, 2006, 01:37:57 PM
Using 2 outputs you can select 1 of 4 tools, then pulse a third output to activate the PLC.

Using more outputs you can select many more.

If you use a RS232 to 8 bit TTL convertor you could select 1 of 255 tools. Then swap the outputs to inputs and see what tool is in the cutting position.

Graham.
 
Title: Re: Mach ? to control Starturn 5
Post by: Maxtownshend on December 05, 2006, 02:09:26 PM
Hi Graham,

So, there is more than one output possibility. I need only three 0-7 and a pulse, making four lines. Is that possible? Are the outputs parallel or is it a one wire serial? I am getting confused.

Max
Title: Re: Mach ? to control Starturn 5
Post by: Graham Waterworth on December 05, 2006, 02:49:47 PM
You could use a second parallel port or a Mod IO card form Peter Homann,  then its just a case of writing a bit of code to set the outputs and pulse the PLC.

This can be done in the M6Start macro.

The PLC software first reads the inputs and changes the tool. When its finished it can set the output.

Then Machs M6end macro waits for the finish command.

Graham.


Title: Re: Mach ? to control Starturn 5
Post by: davidimurray on December 05, 2006, 03:24:23 PM
Hi Max

So you're the guy with the Starturn 5 - we've just been discussing your lathe over on the denford forum (www.denfordata.com/bb). I've got a Starturn 4 converted to Mach at home, a mate of mine is converting an Orac, and I also use an Orac and Triac at work.

The basic working of the toolpost is quite simple. The toolpost should only rotate in one direction, and there is a ratchet that prevents it being pushed back. Basically the three optosensors shine light onto a BCD coded disc. So what you will get back is 3 lines giving you the tool number. When the correct tool number is detected, the toolpost motor is switched into reverse and the toolpost drives back against the ratchet.

So in theory only 4 wires are required. You will need to find the circuit that controls the toolpost motor and see how this is turned on and off. With regard to the signal lines these run at 12V which is a bit more inconvenient and will require you to make up some optoisolators. I started a project to do the electronics for my mates toolchanger - unfortunately a year later he still hasn't go his lathe going so i've only tested the electronics on the bench.

Basically I used an AVR microcontroller - I then wrote a program that read the an RS232 string - converted this to the toolnumber - activated the toolpost motor and then rotated the tool until the correct one was detected. It then sent an RS232 string back to Mach to tell it that the toolchange was complete. John Pearson has done something similar - see the VB code to drive the RS232 comms here -http://www.machsupport.com/forum/index.php?topic=1658.0

Hope thats some help

Cheers

Dave
Title: Re: Mach ? to control Starturn 5
Post by: Len-Tikular on September 13, 2010, 05:55:21 AM
Hi Max,

Did you complete the conversion on the Starturn5 using Mach3.

I need some help to do the same job.

Any actual details on wiring the steppers and encoders would be helpful.
I already built a 3 axis CNC flatbed router, and want to use the same electronics package to control the Starturn5.

Many thanks

George
Title: Re: Mach ? to control Starturn 5
Post by: Len-Tikular on September 17, 2010, 08:08:10 AM
Has anyone actually got the Starturn tool turret working with MAch3 yet?

I would like detailed info on how to do this if its available.

Denford forums are great and they have answered some of my questions but no one has actually said 'this is how it's done'.

I would be very grateful for any help.

Thanks

George