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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-15-2008, 09:13 AM
 
Join Date: Oct 2007
Location: USA
Posts: 33
jvanick is on a distinguished road
possibly ignorant question about acceleration... also reversing direction

... I've built a JGro-type cnc router that's being controlled with a hobby cnc card and their 305oz steppers.

I'm trying to use the emc ubuntu distribution to control it.

i've got motion, but I'm having intermittent problems with movement.

sometimes the steppers will just hum or make a grinding sound instead of moving. if I slow my feed rate down the problem seems to go away.

so what I'm thinking is that I have an acceleration problem when jogging the axises...

is there a easy way I can configure an acceleration ramp so that it doesn't go from 0 to 100ipm immediately, but starts slower and then speeds up? Or is this something I don't want to do?

secondly.. it appears that my direction is reversed from what EMC is showing on the screen in Axis... how do I change the control signals? I tried adding the -invert options in the hal file, but i'm not really sure what hal file emc is reading... so I'm kinda lost on that front too.

Thanks!
-J
Reply With Quote

  #2   Ban this user!
Old 09-15-2008, 10:03 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Congrats on running.

The definitive answers to your questions are in the integration manual that should be under the menu Applications->CNC. There is quite a bit of stuff there on how to set up the ini file, which one is being used, and such. Short of that I'll add a few notes to a snipped version of your post here.
Originally Posted by jvanick View Post
... sometimes the steppers will just hum or make a grinding sound instead of moving. if I slow my feed rate down the problem seems to go away.

so what I'm thinking is that I have an acceleration problem when jogging the axises...

is there a easy way I can configure an acceleration ramp so that it doesn't go from 0 to 100ipm immediately, but starts slower and then speeds up? Or is this something I don't want to do?
Sounds like the problem. The solution is to find the configuration you are starting with. If you used stepconf to build that so the distances and all match to the machine it is probably in a directory named my-mill and lives in your home directory in emc2/configs/my-mill. In any case, you can find it in the tree widget when you fire up emc2's config selector.

In the ini file you are using there are sections for each axis. For each you'll see several accel variables. Again if you are using stepconf you can change these in the motor config page. You can also edit them directly but I'd advise reading the integration manual first.
Originally Posted by jvanick View Post
... secondly.. it appears that my direction is reversed from what EMC is showing on the screen in Axis... how do I change the control signals?
Stepconf has checkbuttons alongside the signals on that page that invert the direction. You'd put a minus in front of, or erase the minus in front of the scale variable if you directly edit the relevant ini file.
Originally Posted by jvanick View Post
... I tried adding the -invert options in the hal file, but i'm not really sure what hal file emc is reading... so I'm kinda lost on that front too.
It will take a bit for you to get comfortable with config editing. I'd create a couple of them and switch between with the emc startup chooser. One might be named something like last-best-version (don't uses spaces in file names) for running your machine. Others might be for experimenting with ini or hal stuff. When you succeed in an experimental version, move that change to the last best one. You can do this with either stepconf or hand edited configurations.

There is a specific manual on the HAL available in the documents section of www.linuxcnc.org but most of the necessary info is in the integration book.

Hope this helps
Reply With Quote

  #3   Ban this user!
Old 09-15-2008, 02:48 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

If you used the stepconf wizard to generate the config then just go back to the wizard and open the file up and lower your acceleration until they test good. Also reverse the direction pin in the wizard as needed. Info on stepconf wizard is in the User Manual and the html is here.

http://www.linuxcnc.org/docview/html..._stepconf.html

John
Reply With Quote

  #4   Ban this user!
Old 09-15-2008, 02:54 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

you really should run the latency-test from terminal (without emc running). Load the system - surf, run glxgears, edit something in open office.... See what the the max jitter is. It could be a hardware issue also - if the computer can't put out a decent pulse stream.

http://www.linuxcnc.org/docs/2.2/htm...c:Latency-Test

sam
Reply With Quote

  #5   Ban this user!
Old 09-15-2008, 03:19 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

sam wouldn't he get a rtapi error if his speed was set too fast?

John
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-15-2008, 03:55 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

some people ignore that error

sam

Originally Posted by Big John T View Post
sam wouldn't he get a rtapi error if his speed was set too fast?

John
Reply With Quote

  #7   Ban this user!
Old 09-16-2008, 10:03 AM
 
Join Date: Oct 2007
Location: USA
Posts: 33
jvanick is on a distinguished road

well after playing around with stepconf for a while last night, I got things running pretty good.

I'm still having some binding issues here and there, but i think that's more due to machine setup and alignment than the controller/software.

one more question tho...

what's the 'standard' way that you reference Home...

do you do something like:

X: 0-30
Y: 0-13
Z: 0-4

--or--

X: -15 - +30
Y: -6.5 - +6.5
Z: -2 - +2

or... do you make multiple profiles???

or ???

-J
Reply With Quote

  #8   Ban this user!
Old 09-16-2008, 10:28 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Glad to hear you got it up and running. One question if you don't mind... Did you use the Getting Started Guide to get up and running. If so were there any parts that just were not clear or strait forward to understand? You can probably guess that I work on the manuals .

I'm not sure what you mean "reference home". If you have homing switches they are used to locate the home position. If you don't have homing switches then when you move to a position you want to be home and press the homing button that becomes your home. A tip if you move to your favorite home position before powering down then you are there (if nothing moved) when you power up.

I normally work with Y0 = the fixed jaw of my vise and X0 = to the left side of the part and Z0 = to the top of the material. I don't have home switches on my mill so I use an edge finder to set up when powering up. I have home switches on my plasma cutter so that one is easy.

John
Reply With Quote

  #9   Ban this user!
Old 09-16-2008, 10:41 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Many commercial machine tools use the plus end of each axis as home. This means that an ordinary CAD drawing in the top left quadrant is outside the normal range of the machine. I would find several different home configs really confusing but offsetting from home using g55-59.3 is really valuable.

For the Mazak at fest the home switches are all in the positive direction but then we used a home offset to place 0,0 in the center of table travel. I don't really have an opinion about that setup.
Reply With Quote

  #10   Ban this user!
Old 09-16-2008, 10:55 AM
 
Join Date: Oct 2007
Location: USA
Posts: 33
jvanick is on a distinguished road

Actually the manuals were really good... much better than most of the stuff I read for my day job.

*after* I read them that is.

when I was asking about the reference, i was more looking at how people typically reference... if they did 0x0x0 as home or if they went negative. I'm going to set up for 0x0x0 as home. should I set up so that the cutting bed is 0 and the upper limit of travel is +4 ?

one thing tho that I find confusing (maybe?) is that there's no max speed override... that is, I can put a feed rate of say F300 on a gcode command and the machine will happily try to do that. Vs. using the slider on the interface or max of my settings.

I didn't know about the offsetting G code commands...
I'll definitely be looking into that more.

-J
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-16-2008, 11:14 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Ah. I leave g54 at the home position so when I command home I issue
g0 g54 x0y0z0
I would not set z0 at the bed because if I did this and selected a tool but failed to set a tool length zero would be under the bed by the actual tool length. I set z0 as far away from the bed as possible. Then if I want to set z0 at the top of a part I do that with the coordinate system offsets. Just seems a bit easier for me to understand.

But then EMC2 is configurable and others configure much different than I do.
Reply With Quote

  #12   Ban this user!
Old 09-16-2008, 11:18 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

If you used the stepconf wizard it is MAX_VELOCITY on the axis page.

http://www.linuxcnc.org/docview/html...-Configuration

If you did your config by hand it is the MAX_VELOCITY in each axis section of your ini file.

http://www.linuxcnc.org/docview/html...nfig.html#sub:[AXIS]-Section

In any case the planner will not exceed the max velocity for an axis no matter what you program in your g code. Keep in mind that a diagonal RAPID move will be faster than your max vel due to the fact that even though both axis are moving at your max speed your traveling a greater distance when moving only one axis.

John
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
Reversing a 3-phase motor - switch question hotponyshoes General Metal Working Machines 1 08-28-2008 01:37 PM
New to the board, possibly redundant question.. compuslave DIY-CNC Router Table Machines 4 11-02-2007 06:07 PM
Lathe spindle reversing question. derrick G-Code Programing 2 09-03-2007 09:44 PM
Ignorant newbie question DayneInfo Vectric 12 11-20-2006 10:51 AM
(possibly stupid) stepper question anthony Stepper Motors and Drives 1 05-03-2005 10:07 PM




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