CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Mach Mill



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-06-2011, 03:18 PM
 
Join Date: Mar 2010
Location: Netherlands
Posts: 5
hobbybob1 is on a distinguished road
Limit/home switches on converted machine

Hello,

I am rather new to CNC'ing.
I just converted a 3 axis engraving machine to CNC, using a chinese 3 axis stepper driver board. Before fitting the board, the machine was using a serial interface and after turning on the machine , the machine homed itself.

Now after the conversion i want to do that in mach 3.
The machine has 3 limit switches on all axis (X, Y and Z).

When i jog the machine to hit the limit it shuts off and i cannot jog it off the limit switch (i have now made a bridge button, which temporarily disconnects the limit switches GND), then hit reset holding the button and i can jog it off.
After that the machine works just fine.

Now my questions:
1. How can i let the machine "find" the switches and then automatically move a bit off to some sort of home position and call that 0,0,0 ?

2. And how can i set the limits the machine may travel measured from the limit switch, since i only have a limit switch on 1 end of all the axis, when i move it all the way to the other side i want it to stop before hitting the end of the axis. Is there some way telling Mach3 that it has to stop after 12 inches ? Even if there is no switch on the other end ?
Reply With Quote

  #2  
Old 02-06-2011, 03:25 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,456
ger21 is on a distinguished road
Buy me a Beer?

When i jog the machine to hit the limit it shuts off and i cannot jog it off the limit switch (i have now made a bridge button, which temporarily disconnects the limit switches GND), then hit reset holding the button and i can jog it off.
Check Auto Limit Override on the Settings screen. Then you'll just need to click reset, and you can jog off the switches.

1. How can i let the machine "find" the switches and then automatically move a bit off to some sort of home position and call that 0,0,0 ?
In Ports and Pins, set up the switches as home switches (Just assign the same pins the limits are using). You can use a switch as both a home and limit.
Then just click the "Ref All" button to home the machine.

2. And how can i set the limits the machine may travel measured from the limit switch, since i only have a limit switch on 1 end of all the axis, when i move it all the way to the other side i want it to stop before hitting the end of the axis. Is there some way telling Mach3 that it has to stop after 12 inches ? Even if there is no switch on the other end ?
Config >Homing/Limits, Enter the Softlimit Min and Max, and then turn on Softlimits on the program run screen.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 02-06-2011, 04:39 PM
 
Join Date: Mar 2010
Location: Netherlands
Posts: 5
hobbybob1 is on a distinguished road

Hi Gerry,

Thanks for your answers.
I had the auto limit override on (i think). When it hits the limit, i can press the fix this for me now, reset and then i can jog of very shortly, sometimes the machine moves a bit and immediately stops again (it would help if it could last for 1 second or so, so i have enough time to jog of the switches...)
When i hit reset and press OK again i can reset again, most of the time that is enough to jog of, but will check the setting.

for question 1, i had them configured as limit++ limit -- and home switches.
But i didn't know i had to press the ref all, will check this tomorrow right away. Suppose the machine runs in the wrong direction when homing (away from the home/limit switches, how can i fix that ?
Cool, i was close but your answers help me tremendously !

For question 2 about the soft limits will check this also and let you know.
Thanks so much for helping me out.

What a knowledge is gathered on this forum.

One more question:
I have caculated that in the motor tuning config i had to fill in 533,33 for the Step per setting.
200 steps per revolution motors
1/8 steps on the driver card, making for 1600 steps per revolution
10x3mm thread, so 1600 steps is 3mm movement
So 533,33 steps per unit (in my case mm).

However i have the idea that for instance when i put in g-code G20 G90 and then drill a hole at current position and then do G1 X4.5 and drill another hole, i measure 11,51cm instead of 4.5x2,54 which is 11,43.
How to adjust to have the machine really at size ?

What did i do wrong ?
Reply With Quote

  #4  
Old 02-06-2011, 05:22 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,456
ger21 is on a distinguished road
Buy me a Beer?

Suppose the machine runs in the wrong direction when homing (away from the home/limit switches, how can i fix that ?
In Config > Homing/Limits, there's a column labeled Home Neg. that will reverse the homing direction.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5   Ban this user!
Old 02-06-2011, 06:18 PM
 
Join Date: Mar 2010
Location: Netherlands
Posts: 5
hobbybob1 is on a distinguished road

wow, thanks again Gerry for your great directions !
Will try all those settings out tomorrow....

If someone knows the answer to my second question about making the machine be precise i would be very delighted.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-07-2011, 08:10 PM
 
Join Date: Mar 2010
Location: Netherlands
Posts: 5
hobbybob1 is on a distinguished road

Thanks Gerry !
Worked like a charm, when i now press ref all, the machine first zeroes the z-axis, then y- and the the X-axis. Really cool.

When i jog to the end of the tables y i find 278mm x=330mm z=70mm
So i set the soft limits MAX on 275 , 325 and -65.
That works and the machine won't pass that point.
But what to set for minimum ? If i fill in 0, sometimes the machine immediately hit softlimit when i start a g-code and the machines moves an axis ?
I have now -100 , -100 for X and Y and +1 (or -1 now i am lost) for Z.

Is there a way of when starting Mach3 that machine automatically homes to 0,0,0 ? And is there a way to set it after homing to 5,5,5 for instance and then make that zero (to have more margin to stay of the limit switches) ?

Furthermore my motors are now serial driven (5.1V 1A), would switching them Parallel give them more power (at higher speeds? or more power at same speed ?)

And would the TB6560 board be able to drive that ?
At first i was driving the motors with 36V (since that was the max of the board as i understand ?) But someone warned me that driving them at 36V was a bit too high for this TB6560 card (although it says 35V often this breaks the card) So today switched to 24 volt and turned it up to 26V.
Works ok, but that's why i am wondering wheter running parallel would work better ?

Lots of new questions hope someone can fill me in ?
So far this forum has really helped me getting started with the machine, it's amazing to see your own machine doing stuff.
Reply With Quote

  #7  
Old 02-07-2011, 08:27 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,456
ger21 is on a distinguished road
Buy me a Beer?

Z+ should be up, and Z- down, so your Z softlimits seem to be backwards.

And is there a way to set it after homing to 5,5,5 for instance and then make that zero (to have more margin to stay of the limit switches) ?
In Config > Homing Limits, set the Home Offsets for X and Y to -5, and the Z to +5. Then edit the homing script, using Operator > Edit button Script, and clicking the button. When the VB Editor opens, change the code to this.

DoButton( 24 )
Code "G53 G0 Z0"
While IsMoving()
Wend
DoButton( 23 )
Code "G53 G0 Y0"
While IsMoving()
Wend
DoButton(22)
Code "G53 G0 X0"
While IsMoving()
Wend


Is there a way of when starting Mach3 that machine automatically homes to 0,0,0 ?
Yes, but it's a little more complicated. You need to create an M Code macro.
With the code open in the VB editor, Save As with the filename Mxxx.m1s (xxx will be your M code, 555 for instance.)

Then, in General Config, in the initialization string, add M555. When you first hit reset after starting Mach3, it'll home automatically. You probably want to uncheck "Use with all resets", so it doesn't home every time you hit reset.

With the Home Offsets set to -5, you'll be able to set softlimits to 0, or even -4.

Parallel is faster, provided you can supply double the current.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 02-08-2011, 07:30 AM
 
Join Date: Mar 2010
Location: Netherlands
Posts: 5
hobbybob1 is on a distinguished road

Hi Gerry, thanks another time !
Will first connect the steppers parallel and try the other suggestions.
Thanks, cool that it's so customizable !
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit and home switches Manuks General Electronics Discussion 5 04-20-2007 02:13 PM
How to for home and limit switches Hack DIY-CNC Router Table Machines 5 03-28-2005 09:20 AM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 01:28 PM
Limit switches and home switches viktorcnc TurboCNC 2 08-03-2004 06:11 AM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 05:32 PM




All times are GMT -5. The time now is 12:23 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361