Welcome, Guest. Please login or register.
Did you miss your activation email?
October 01, 2016, 10:28:42 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 »
361  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 12:38:58 PM
M6 is not required in Mach Turn. The correct way to call a tool change in Mach Turn is T0202. This will automatically call the M6Start macro.

You do not need the VB script editor be open in the background. Save it and close the window. Make sure you are saving the M6Start for the correct profile as I mentioned earlier. Also could be Mach is already at tool #2 when you issue T0202 so nothing happens. Check the Tool DRO in Mach.

Dan
362  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 12:11:58 PM
You set it manually to the current tool and then you can check Persistent Tool Selection in General Config and Mach will remember the last tool on a restart. You can add a second switch for homing when you power up the machine.

Of course 4 switches on an 8 position turret would be better as Mach would always know the tool in position, but it's more complex too and requires 4 inputs, although you could even do it with only 3 switches.

Dan
363  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 10:52:06 AM
Yes. Copy and paste it in the M6Start.m1s macro file.

Dan
364  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 10:46:36 AM
Yes. The macro tells it to move the A axis. Go to General Config and under Tool Change select Automatic Tool Change.

Dan
365  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 10:41:25 AM
You have to enable the A axis in Ports and Pins and then in Motor Tuning set the number of steps per one turret index. Actually just a bit more than one index so that it overshoots a bit and then reverses to lock.

Dan
366  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 10:35:52 AM
Hi Jasminder,

You could still use a DC motor and only need one switch running on a cam or an optical switch with a slotted disk.

Dan
367  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 10, 2012, 02:47:10 AM
You have to put the code into the M6Start.m1s file located under Mach3\macros and the name of your turn profile (if you haven't changed it, it would be Mach3Turn).

Oh.. just noted there was a small mistake in the code. On the reverse move line it should be:

Code " G91 G0 A" & (-1/5)

Dan
368  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 09, 2012, 09: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
369  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 09, 2012, 04: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
370  Mach Discussion / General Mach Discussion / Re: Mach3 turn atc on: September 09, 2012, 02: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
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!