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 Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-30-2010, 03:34 PM
 
Join Date: Aug 2010
Location: Canada
Posts: 28
lilimike is on a distinguished road
Z axis is mysterious

I don't know where to look anymore, here is my problem:

First off I am at my first steps in generating something with my home made CNC. I was able to test with engraving a picture using Microcarve V4 and the results were almost fair to good, enough to know it is 98% accurate.

Now using Lazycam I generated text and posted G-Code and started to engrave on Plexiglas at a deepness of 1/16" but at or near the third letter the Z axis starts going down to the point where it goes through the Plexiglas 3/16"

This is my code up to where I start having a problem:
Code:
N10 (Default Mill Post)
N15  G91.1
N20 G0  Z0.2000 
N25 M3 
N30  X0.1407  Y0.3134 
N35  Z0.1000 
N40 G1  Z-0.1000  F8.00 
N45  X0.1400  Y0.2650   
N50  X0.1393  Y0.1890   
N55  Y0.1329   
N60  X0.1407  Y0.0149   
N65  X0.1563  Y0.0142   
N70  X0.2544  Y0.0163   
N75  X0.2721   
N80  X0.2750   
N85  X0.2778   
N90  X0.2800  Y0.0156   
N95  X0.2821  Y0.0142   
N100  X0.2835  Y0.0135   
N105  X0.2842  Y0.0121   
N110  X0.2849  Y0.0099   
N115  X0.2856  Y0.0078   
N120  X0.2849  Y0.0064   
N125  Y0.0050   
N130  X0.2842  Y0.0036   
N135  X0.2835  Y0.0028   
N140  X0.2828  Y0.0021   
N145  X0.2814  Y0.0014   
N150  X0.2800  Y0.0007   
N155  X0.2785  Y0.0000   
N160  X0.2778   
N165  X0.2771   
N170  X0.2757   
N175  X0.2750   
N180  X0.2736   
N185  X0.2714   
N190  X0.2700   
N195  X0.2679   
N200  X0.0000   
N205  Y0.0867   
N210  X0.0007  Y0.1407   
N215  Y0.2011   
N220  X0.0000  Y0.2935   
N225  X0.0007  Y0.3134   
N230  X0.1227   
N235  X0.1407   
N240 G0  Z0.2000 
N245  X0.3725  Y0.3318 
N250  Z0.1000 
N255 G1  Z-0.1000  
N260  X0.3605  Y0.3304   
N265  X0.3505  Y0.3276   
N270  X0.3427  Y0.3240   
N275  X0.3363  Y0.3197   
N280  X0.3320  Y0.3141   
N285  X0.3292  Y0.3077   
N290  X0.3285  Y0.2999   
N295  X0.3292  Y0.2927   
N300  X0.3320  Y0.2864   
N305  X0.3363  Y0.2807   
N310  X0.3427  Y0.2764   
N315  X0.3505  Y0.2729   
N320  X0.3605  Y0.2700   
N325  X0.3725  Y0.2686   
N330  X0.3860  Y0.2679   
N335  X0.3924  Y0.2686   
N340  X0.3995   
N345  X0.4059  Y0.2693   
N350  X0.4116  Y0.2700   
N355  X0.4166  Y0.2714   
N360  X0.4216  Y0.2729   
N365  X0.4265  Y0.2750   
N370  X0.4308  Y0.2764   
N375  X0.4344  Y0.2792   
N380  X0.4379  Y0.2814   
N385  X0.4408  Y0.2842   
N390  X0.4436  Y0.2871   
N395  X0.4450  Y0.2899   
N400  X0.4464  Y0.2935   
N405  X0.4472  Y0.2963   
N410  X0.4479  Y0.2999   
N415  X0.4464  Y0.3077   
N420  X0.4436  Y0.3141   
N425  X0.4386  Y0.3197   
N430  X0.4322  Y0.3240   
N435  X0.4237  Y0.3276   
N440  X0.4130  Y0.3304   
N445  X0.4003  Y0.3318   
N450  X0.3860   
N455  X0.3725   
N460 G0  Z0.2000 
N465  X0.3285  Y0.2508 
N470  Z0.1000 
N475 G1  Z-0.1000  
N480  Y0.2423   
N485  Y0.1982   
N490  X0.3299  Y0.1592   
N495  X0.3285  Y0.0846   
N500  Y0.0000   
N505  X0.4457   
N510  Y0.0206   
N515  X0.4443  Y0.0682   
N520  X0.4457  Y0.1528   
N525  Y0.2082   
N530  X0.4472  Y0.2444   
N535  Y0.2508   
N540  X0.3285   
N545 G0  Z0.2000 
N550  X0.5830  Y0.3134 
N555  Z0.1000 
N560 G1  Z-0.1000  
N565  Y0.3020   
N570  Y0.2210   
N575  Y0.1855   
N580  X0.5823  Y0.1215   
N585  X0.5830  Y0.0085   
N590  Y0.0000   
N595  X0.4658   
N600  Y0.0107   
N605  Y0.0469   
N610  Y0.1130   
N615  X0.4672  Y0.1997   
N620  X0.4665  Y0.2466   
N625  X0.4658  Y0.2977   
N630  X0.4665  Y0.3134   
N635  X0.5650   
N640  X0.5830   
N645 G0  Z0.2000 
N650  X0.6446  Y0.3318 
N655  Z0.1000 
N660 G1  Z-0.1000  
N665  X0.6326  Y0.3304   
N670  X0.6226  Y0.3276   
N675  X0.6148  Y0.3240   
N680  X0.6084  Y0.3197   
N685  X0.6041  Y0.3141   
N690  X0.6013  Y0.3077   
N695  X0.6006  Y0.2999   
N700  X0.6013  Y0.2927   
N705  X0.6041  Y0.2864   
N710  X0.6084  Y0.2807   
N715  X0.6148  Y0.2764   
N720  X0.6226  Y0.2729   
N725  X0.6326  Y0.2700   
N730  X0.6446  Y0.2686   
N735  X0.6581  Y0.2679   
N740  X0.6645  Y0.2686   
N745  X0.6716   
N750  X0.6780  Y0.2693   
N755  X0.6837  Y0.2700   
N760  X0.6887  Y0.2714   
N765  X0.6937  Y0.2729   
N770  X0.6987  Y0.2750   
N775  X0.7029  Y0.2764   
N780  X0.7065  Y0.2792   
N785  X0.7100  Y0.2814   
N790  X0.7129  Y0.2842   
N795  X0.7157  Y0.2871   
N800  X0.7171  Y0.2899   
N805  X0.7185  Y0.2935   
N810  X0.7193  Y0.2963   
N815  X0.7200  Y0.2999   
N820  X0.7185  Y0.3077   
N825  X0.7157  Y0.3141   
N830  X0.7107  Y0.3197   
N835  X0.7043  Y0.3240   
N840  X0.6958  Y0.3276   
N845  X0.6852  Y0.3304   
N850  X0.6724  Y0.3318   
N855  X0.6581   
N860  X0.6446   
N865 G0  Z0.2000 
N870  X0.6006  Y0.2508 
N875  Z0.1000 
N880 G1  Z-0.1000  
N885  Y0.2423   
N890  Y0.1982   
N895  X0.6020  Y0.1592   
N900  X0.6006  Y0.0846   
N905  Y0.0000   
N910  X0.7178   
N915  Y0.0206   
N920  X0.7164  Y0.0682   
N925  X0.7178  Y0.1528   
N930  Y0.2082   
N935  X0.7193  Y0.2444   
N940  Y0.2508   
N945  X0.6006   
N950 G0  Z0.2000 
N955  X0.9112  Y0.1606 
N960  Z0.1000 
N965 G1  Z-0.1000
So I figured my Z axis is missing some steps therefore I ran some test using this code:

Code:
F8
G20 G90
M98 P1234 L50
M30 (stop)
O1234
G1 z-0.1
G1 z0.2
G1 z0
M99
But after the 50 loops, Z is at zero and accurate.

What can be my problem?

Thanks for any help.

Mike
Reply With Quote

  #2  
Old 08-30-2010, 06:16 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

You're losing steps on the G0 moves, and your testing with much slower G1 moves.
__________________
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 08-30-2010, 06:40 PM
 
Join Date: Aug 2010
Location: Canada
Posts: 28
lilimike is on a distinguished road

Yes you are right, I tested again replacing G1 with G0 in my test code and I am loosing 0.4073 after 50 loops
Why am I loosing steps on the G0 moves and not on G1?
Do I have to slow down the velocity and play with acceleration?

Thank you

Mike
Reply With Quote

  #4  
Old 08-30-2010, 07:06 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

Cut the acceleration in half.
__________________
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 08-31-2010, 10:01 AM
 
Join Date: Aug 2010
Location: Canada
Posts: 28
lilimike is on a distinguished road

My acceleration was set to 2, I tried to set it at 1 and also at 4 but still got the same results.

I had previously started another thread and I guess I should have kept it going but I figured I had a different issue and this is why I started this thread.

Actually I am starting to think my issue is I am getting old because I keep running into different problems and this all doesn't seem logical to me, it looks like there is no specific setup procedure that applies to everyone.

So going back to that other post you had suggested I go from 35KHz to 25KHzs which I did but it made things worse however I tried 40KHz and all was going right (until this present thread)

So now it is getting complicated therefore I have started from scratch. The seller of my driver board suggests I use 35KHz so I set 35KHz. Note that I have tried the drivertest and I get "System Excellent" from 25KHz up to 100KHz.

I have used the Axis calibration "Set steps per unit" on the settings screen and got steps per = 31659.90338 for accurate distance travel.
I set Acceleration to 5 and I tested velocity for maximum which was 33. Going to 34 started going slower so I reduced by 20% and set velocity to 27.2 and reduced acceleration to 2.

Now if I run this code using 9 loops, its all good:
Code:
F8
G20 G91.1
M98 P1234 L9
M30 (stop)
O1234
G0 z.5
G0 z0
M99
If I run it 50 loops, looking at the diagnostics screen while Queue Depth cycles from 20 to 19 and back to 20 it is also all good until the computer beeps and at the same time as the Queue Depth cycles from 19 to 18 and keeps going down. At that moment the stepper screams and looses about 0.23 worth of steps.
I changed Acceleration from 2 to 1 and also tried 4 with no apparent improvement. I also tried reducing velocity to 20 but still the same problem.

My steppers have 4 wires, I've tried inverting each set of wires going to coils with no change.

Is there anything I can test perhaps with an oscilloscope?

Thanks again for any help and patience

Mike
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-31-2010, 05:51 PM
 
Join Date: Jun 2005
Location: No. Central CA, USA
Posts: 138
Dorsal is on a distinguished road

Check for a loose setscrew on the z-axis drive couplers. If there are none already, file some flats on the shafts and be sure the setscrews engage those flats.
Reply With Quote

  #7   Ban this user!
Old 08-31-2010, 06:10 PM
 
Join Date: Aug 2010
Location: Canada
Posts: 28
lilimike is on a distinguished road

There is nothing loose. The missing steps can be heard when the stepper screams as soon as the computer beeps when the Queue Depth is no longer buffered.
I can set my code to do 100 loops and it will do at least 80 without loosing steps but almost near the end the problem happens.

Mike
Reply With Quote

  #8  
Old 08-31-2010, 06:46 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

How fast is your PC, and what does the drivertest look like? Is it a perfectly flat line, or are there spikes in it?
__________________
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

  #9   Ban this user!
Old 08-31-2010, 07:45 PM
 
Join Date: Aug 2010
Location: Canada
Posts: 28
lilimike is on a distinguished road

I have a Pentium 4 processor 3.4GHz with 1 GB of RAM

I do see a few spikes in the drivertest
With 35KHz it looks like this:
Click image for larger version

Name:	dtest.png
Views:	32
Size:	19.0 KB
ID:	113717
And with 100KHs it looks like this:
Click image for larger version

Name:	dtest100.png
Views:	31
Size:	18.9 KB
ID:	113718

I do not understand much of what the drivertest shows other than the status "System excellent"

Mike
Reply With Quote

  #10   Ban this user!
Old 09-01-2010, 11:26 AM
UUU UUU is offline
 
Join Date: Apr 2010
Location: UK
Posts: 226
UUU is on a distinguished road

Try doing your loops with G0 in one direction (say up) and G1 the other way (down). If you G0 both ways you may be losing the same number of steps both ways (OK the Z is special because up is harder than down). But if you lose steps on the rapid, but not on the slow, it will show up. Also this mimics the way the Z is moved in your engraving code.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-01-2010, 01:11 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

lilimike

Try changing the G91.1 to G90 this may make the control work for you better as well
__________________
Mactec54

Last edited by mactec54; 09-01-2010 at 04:00 PM.
Reply With Quote

  #12   Ban this user!
Old 09-01-2010, 01:31 PM
Crevice Reamer's Avatar  
Join Date: Mar 2008
Location: USA
Posts: 3,454
Crevice Reamer is on a distinguished road

Voltage= speed. Double the Voltage, double the speed. Are you running your 52V motors on 12V? If so, try using the 24V PSU again. It should double your rapid speed--and stop the missing steps problem at 33IPM.

Maybe you should think about upgrading to a G540.
http://kelinginc.net/GeckorDriver.html

CR.
__________________
http://crevicereamer.com
Too many PMs. Email me to my name plus At A O L dot com.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Mysterious tool SIRSEBAST General Metalwork Discussion 11 04-01-2009 10:58 PM
Compare Catia and MCX2 for multi axis lathe/4 axis mill bob1112 General CAM Discussion 0 10-10-2008 07:15 PM
Mysterious plastic sp1nm0nkey General Metalwork Discussion 2 12-04-2007 08:46 AM
Mysterious "W" series NSK Ballscrews NC_jimbo Linear and Rotary Motion 2 04-15-2007 12:38 AM
Mysterious Y axis move before tool change daking Fadal 2 11-27-2006 11:38 AM




All times are GMT -5. The time now is 02:28 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