Hello Guest it is April 28, 2024, 10:15:50 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dan13

411
General Mach Discussion / Re: Mach3 turn atc
« on: September 09, 2012, 10:26:00 AM »
Here is a real quick one I made. Seems to work here in simulation.

numtools = 99                                              'The number of valid tools
newtool = GetSelectedTool( )                                         'read the new requested tool

currenttool = GetOEMDRO(1000)                                     'user DRO 1000 is used to store the current tool. In this line assign whatever is in this DRO to the variable
While(currenttool< 1 Or currenttool > numtools)                'Check that currenttool contains a legal tool number.
currenttool = question("Please enter the current tool")       ' If not ask to enter the current tool in position.
Wend
SetOEMDRO 1000,newtool                                               ' Set user DRO 1000 to the new tool number

dist = (newtool Mod 8 ) - (currenttool Mod 8 )                    ' the number of turret positions to move to the requested tool.

If (dist < 0) Then                                                            'Check if rollover needed
dist = 8 - Abs(dist)
End If

Code " G91 G0 A" & dist                                                  ' Move to the new turret position.
While IsMoving()
Wend
Code " G91 G0 A" & (-dist/5)                                           ' Reverse move to lock - set to 1/5th of one position and can be changed
While IsMoving()
Wend

Code "G90"                                                                  ' Set back to absolute mode.  

SetCurrentTool(newtool)


Set the A axis as above and although not mandatory check the rotational axis rollover in general config.

You can then use the proximity switch to home the A axis and set reset OEMDRO 1000.

Dan

412
General Mach Discussion / Re: Mach3 turn atc
« on: September 09, 2012, 05:49:06 AM »
Ok. Then you can use the switch for homing the turret. Since it's a stepper you will have to treat it as an axis and set it up in ports and pins and define the steps/per in motor tuning. For instance you could assign the A axis for the turret. Then you need to figure how many steps per one index of the turret the stepper has to make and enter this in the motor tuning. Once you know this you can write a simple macro to control the turret.

I suggest you doing a search on the forum for a macro and changing it to work for you. There are many here and I think you should be able to find something close to what you need. Anyway, see if you can find someting.

Dan

413
General Mach Discussion / Re: Mach3 turn atc
« on: September 09, 2012, 03:25:52 AM »
Are you sure it's a stepper and not an ordinary DC motor? Having a proximity sensor I would assume it's a DC motor.

A macro is needed, but first you need to figure the exact setup you have.

Dan

414
Show"N"Tell ( Your Machines) / Re: Conect 121 lathe retro
« on: September 07, 2012, 03:58:57 PM »
then just used an oldham coupling to connect screw to motor.

Does it not introduce backlash?

Dan

415
Show"N"Tell ( Your Machines) / Re: Conect 121 lathe retro
« on: September 06, 2012, 11:01:15 AM »
Yes Dan, got an angle grinder  that makes short work of it :-D

Hood

Ah.. OK. It just looked so good that I thought you acquired a Plasma CNC and didn't tell us ;)

Dan

416
Show"N"Tell ( Your Machines) / Re: Conect 121 lathe retro
« on: September 06, 2012, 09:35:41 AM »
Very nice, Hood! Do you cut your sheet metal parts yourself?

Dan

417
Looks very good, Steve!

Dan

418
Show"N"Tell ( Your Machines) / Re: Just got a lathe to retrofit
« on: August 30, 2012, 11:43:35 AM »
Looks you're having great time, Hood :) Only drawback is setting up the jaws for each diameter is a PITA on a hydraulic chuck :(

Dan

419
The disadvantage of Geneva type ATCs is them being rather slow. It drivers one crazy watching the turret stopping at each position when setting up tools.

Dan

420
Tangent Corner / Re: F1gur471v3ly 5p34k1ng?
« on: August 29, 2012, 09:36:47 AM »
Amazing, Tweakie! Must admit it took me a while and at first I even tried to figure what went wrong with that Gcode ;D

Dan