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) > Machines running Mach Software


Machines running Mach Software Discuss your set-up and experiences running your machine using Mach software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-23-2009, 01:08 PM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road
Mach3 axis not returning to home

Hi all, I'm sitting here completely perplexed at this point and wonder if anyone here can help with an idea.

I have a 3 axis machine I custom built to drill. X/Z control a table and the A index controls rotation of the spindle. Using PMDX120 board with mach3, gecko 320 drives on servo motors, us digital e2-500 encoders.

One axis-X after running a machine cycle (typical program consists of x/z position, x move positive, x negative, positive, negative, cancel offset/home, new tool offset, x/z position, x negative, x positive, x negative, cancel offset/return to home)

Machine adds an error in the positive direction every time the cycle is finished. I know this because I setup a pointer this morning on the motor pulley and marked the pully. Each time I cycle it increments this error more and more. Seems linear each time...ie .005, .010, .015 etc.

I've spoken with pmdx about this today and he thinks I may have a noise issue. I'm scratching my head...it's only this one axis, the step/direction lines from the board to the gecko drive are shielded, the encoder lines run through stock shielded us digital cables (one large circular plastic connector controls each motor/encoder so everything can be swapped if necessary), I've swapped encoders/motors, gecko drives, everything I can think of.

The error problem has always been on this machine but it seems like it's gotten worse lately which is what leads me to dig into this. The last run of parts we did I had about 30 bad pieces out of about 700 which is alot.

Anyone got any ideas?
Reply With Quote

  #2   Ban this user!
Old 11-23-2009, 01:44 PM
jalessi's Avatar  
Join Date: Feb 2007
Location: U.S.A.
Posts: 3,155
jalessi is on a distinguished road
Question

Saltybugger,

I am curious to hear what is causing the problem.

How big is the error compared to the step?

We have a machine that will add a step to the 4th axis every time it is referenced home.

The movement is repeatable and linear, it only happens when the machine is homed.

Jeff...
__________________
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
Reply With Quote

  #3   Ban this user!
Old 11-23-2009, 02:05 PM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road

jeff I haven't measured the error so I can't answer that, I'm basing my observation on the pointer I put in the machine today with a mark on the pulley.

In this case the error disappears when the machine is homed. I haven't figured out when/where in the it starts happening because it runs so quickly it's hard to judge but I'm going to re-write the code and slow it way down to see if it comes into play in a certain run of code.
Reply With Quote

  #4   Ban this user!
Old 11-24-2009, 11:56 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Question homed?

By homed do mean just G0 X0 Y0 Z0 or is the machine being referenced.
How many times is the machine reference cycle run?
What sort of homing switches are used?
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #5   Ban this user!
Old 11-24-2009, 12:55 PM
jalessi's Avatar  
Join Date: Feb 2007
Location: U.S.A.
Posts: 3,155
jalessi is on a distinguished road
Post

Neil,

The machine has Cherry brand micro switches on the X, Y, and Z axis.

The Rotary axis has no limit switch.

After clicking the "REF ALL HOME" button the A axis always moves one step.
Attached Thumbnails
Click image for larger version

Name:	Ref.JPG‎
Views:	77
Size:	152.1 KB
ID:	93982  
__________________
Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-24-2009, 02:52 PM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road

g92 offset then g92.1 cancel offset and return to original position.

I am seeing the error after the first cycle then it's cumulatively worse, each cycle adds additional error. When it gets bad enough I hit home and start all over again-usually in 4-6 program cycles.

These are small .25" lug two hole mount microswitches with roller and machine has an aluminum ramp on the axis where it contacts the roller of the switch.

Not sure the current manufacturer but it's a standard size microswitch. Switch has been changed in the past also.

Originally Posted by neilw20 View Post
By homed do mean just G0 X0 Y0 Z0 or is the machine being referenced.
How many times is the machine reference cycle run?
What sort of homing switches are used?
Reply With Quote

  #7   Ban this user!
Old 11-24-2009, 11:15 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Clock edge wrong.

On the step and direction setting where the pins are set up I suspect that you need to reverse the logic. Make active low/high the opposite to what it is. Only the positive or negative edge will clock, and it must be correct so it can return to the initial state.
Close investigation of the break out board specs and driver specs will be needed to identify whether a positive or negative edge is correct.
It may be easier for you just to change the it and try it.
Investigate and fix one axis at a time. It is most likely the step phase that is wrong. If you change the direction phase, then the axis will run the other way. Don't touch the direction settings.
Only make one change at a time before testing as multiple changes will just hide and confuse the problem.
It would appear that when you reset, the transition to the initial state is being used a step pulse, so at reset all is out by one step, depending on which state the direction pin was in.
The driver spec should show clearly the transition timing and setup times (how long the direction pin has to be stable before a step transition) required.
Read The Friendly (F=!%&@**) Manual
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #8   Ban this user!
Old 11-25-2009, 03:25 AM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road

Problem is only on the x axis. not ever the z axis. I'll try changing the step today.
Reply With Quote

  #9   Ban this user!
Old 11-25-2009, 06:16 AM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road

did not change the error issue. I have tried flip flopping both the direction and step individually while reversing the motor if needed and no change.

After homing the machine I setup a program this morning to cycle the table x-1 x+1 about 100 times then return to 0 and it returns exactly to the home position without the home error...so it's got something to do with the software telling it to go home or the g92 command
Reply With Quote

  #10   Ban this user!
Old 11-26-2009, 01:03 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Imperial issues.

I assume you are running imperial, and some rounding errors are likely.
Try dry running the machine in metric with a converted program.

If you are referencing the machine multiple times this is a very likely cause.
Because referencing is not accurate, due to contact bounce on switches it is quite possible that the stepper motor(s) start on a different step.

If this id the problem, reference ONCE at power up and no more.
I only ever reference at power up, then run soft limits. Never missed a step yet.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-26-2009, 10:58 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

whats the reason for a G92, You don't want the machine going to home after every operation try G90G0 Z---X---
__________________
Mactec54
Reply With Quote

  #12   Ban this user!
Old 11-26-2009, 11:05 AM
 
Join Date: Jan 2008
Location: usa
Posts: 13
saltybugger is on a distinguished road

I'm not a g code guru this software was written by one, but it's my understanding that the g92 is used to reference a new start point for the x axis which has a tool on each side of the part. The tools are not in the same position on each side of the part and one side is positive while the other is negative so I think this is where the machine goes back to each time to run it's cycle on each side-there is an offset for the left tool and one for the right then a g92.1/g28 after each cycle command per side.

Does that make sense?
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
Set Home on Mach3 Turn scot1972 Mach Lathe 1 03-12-2008 01:46 AM
Returning a new machine. SIG General Metal Working Machines 2 02-20-2008 01:27 PM
Reset mach 3 after stoping pogram and returning home Prboz Mach Mill 0 12-12-2007 05:05 AM
Returning to 0,0,0 planekrazie Mach Mill 7 07-19-2007 05:28 PM
Setting Up Mach3 with home switches jonblack Mach Mill 0 07-29-2006 10:12 PM




All times are GMT -5. The time now is 07:38 AM.





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