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 08-29-2009, 01:22 PM
 
Join Date: Dec 2003
Location: Massachusetts
Posts: 128
margni74 is on a distinguished road
Yet another joint 0 error thread

I'm trying to run some g code in axis with all power to the machine cut off.
Axis seems to have an issue when it hits the first G0 jog command and spits out a "joint 0 error" and then stops. My settings for jog speed are 31in/min, feed override arbitrarily set to 78% it that matters.

Each time it fails with Vel: 146.1600, Vel: 203.0472, or some other high number in the axis window. Why such a high number? Jog is set to 31in/min in the slider bar.

I changed the G0 line 3 times each time limiting the move to one less axis, and it continued to fail. Prior to each run I zeroed out x,y,z. It's another data point if nothing else.


1st run fails: G0 X0.992 Y1.008 Z0.15
2nd run fails: G0 X0.992 Y1.008
3rd run fails: G0 X0.992

If I comment out the G0 line, all 15000 lines in the program run without issue (all G1 commands).

Changing the first G0 to a G1 and slapping a feed rate of F5 on the end solves the problem.
Reply With Quote

  #2  
Old 08-29-2009, 03:39 PM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

Try to run the same G-code with the parallel port cable removed from the computer. Joint 0 can pop up when there's a problem with the signals.
Did you disable home and end switches?
Reply With Quote

  #3   Ban this user!
Old 08-29-2009, 03:50 PM
 
Join Date: Dec 2003
Location: Massachusetts
Posts: 128
margni74 is on a distinguished road

Originally Posted by svenakela View Post
Try to run the same G-code with the parallel port cable removed from the computer. Joint 0 can pop up when there's a problem with the signals.
Did you disable home and end switches?
I'll give it a shot.

Yes, I disabled everything but the output signals for the X, Y, and Z axis.
Reply With Quote

  #4   Ban this user!
Old 08-30-2009, 01:30 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Please post your INI file and/or your stepconf file if you used stepconf.
Reply With Quote

  #5   Ban this user!
Old 08-30-2009, 10:36 AM
 
Join Date: Dec 2003
Location: Massachusetts
Posts: 128
margni74 is on a distinguished road

Originally Posted by chester88 View Post
Please post your INI file and/or your stepconf file if you used stepconf.
Here it is... btw, ive read that I may need to tweak the folowing 2 fields, but I have to clue what to change them to.

MIN_FERROR = 0.01
MIN_LIMIT = -20.0



# Generated by stepconf at Sun Aug 23 22:49:50 2009
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = 2axistest
NML_FILE = emc.nml
DEBUG = 0

[DISPLAY]
DISPLAY = axis
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/scott/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = emc.var

[EMCMOT]
EMCMOT = motmod
SHMEM_KEY = 111
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 39000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = 2axistest.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 1.50
MAX_LINEAR_VELOCITY = 15.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 6.5
MAX_ACCELERATION = 28.0
STEPGEN_MAXACCEL = 29.4
SCALE = 15240.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -20.0
MAX_LIMIT = 20.0
HOME_OFFSET = 0.0

[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 15.0
MAX_ACCELERATION = 24.0
STEPGEN_MAXACCEL = 25.2
SCALE = 1587.5
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -4.0
MAX_LIMIT = 4.0
HOME_OFFSET = 0.0

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 6.41025641026
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 31.5
SCALE = 4000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -2.0
MAX_LIMIT = 3.0
HOME_OFFSET = 0.0

STEPCONF file:
cant post it... xml issue maybe?

Last edited by margni74; 08-30-2009 at 10:39 AM. Reason: stepconf issue: posting xml seems to screw up the post
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-30-2009, 10:47 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I bet it is a stepgen headroom issue.

Increase the STEPGEN_MAXACCEL to be a good 20 - 30% over your MAX_ACCELERATION

So


[AXIS_0]
.
.
.
MAX_ACCELERATION = 28.0
STEPGEN_MAXACCEL = 29.4

should be

MAX_ACCELERATION = 28.0
STEPGEN_MAXACCEL = 36.4
Reply With Quote

  #7   Ban this user!
Old 08-30-2009, 12:08 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

your scale for axis 0 looks odd to me. It is a product of number of motor steps, microsteps, pulley teeth and leadscrew (TPI for imperial, pitch for metric).
Its very different from the other axis, is that right.
your max velocity for axis 1 is 900 inches a minute is that right?
Post your stepconf file on filebin.ca

Chris M
Reply With Quote

  #8   Ban this user!
Old 08-31-2009, 10:40 PM
 
Join Date: Dec 2003
Location: Massachusetts
Posts: 128
margni74 is on a distinguished road

Originally Posted by samco View Post
I bet it is a stepgen headroom issue.

Increase the STEPGEN_MAXACCEL to be a good 20 - 30% over your MAX_ACCELERATION

So


[AXIS_0]
.
.
.
MAX_ACCELERATION = 28.0
STEPGEN_MAXACCEL = 29.4

should be

MAX_ACCELERATION = 28.0
STEPGEN_MAXACCEL = 36.4
Thanks, Ill hopefully be able to give this a try tomorrow.


Originally Posted by chester88 View Post
your scale for axis 0 looks odd to me. It is a product of number of motor steps, microsteps, pulley teeth and leadscrew (TPI for imperial, pitch for metric).
Its very different from the other axis, is that right.
your max velocity for axis 1 is 900 inches a minute is that right?
Post your stepconf file on filebin.ca

Chris M
Hmmm, Ill have to double check the figures, but from the configuration gui i think the max velocity for any of the axis was the y axis at around 300ipm.

Ill double check the number

thanks for the help guys.
Reply With Quote

  #9   Ban this user!
Old 09-01-2009, 12:14 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

I also see the MAX_LINEAR_VELOCITY = 15 (This controls max velocity)
it is in units per second, your units are inches so 15 inches per second
15 X 60 seconds = 900 inches per minute.
Also Jog speed slider won't affect G0 moves. Max Velocity slider will affect G0 moves.

Chris M
Reply With Quote

  #10  
Old 09-01-2009, 01:57 AM
Community Moderator
 
Join Date: Mar 2004
Location: Sweden
Posts: 1,084
svenakela is on a distinguished road

And to all this, we had the same error on a step motor machine. After disconnecting the limit switches it ran fine. The switch cables weren't shielded and it caused faulty signals.
Reply With Quote

Sponsored Links
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
Hawk Claw Joint spalm WoodWorking 1 10-20-2009 02:19 PM
Joint following error Gads LinuxCNC (formerly EMC2) 3 04-11-2008 09:02 AM
joint venture in China JennyYin Product Announcements & Manufacturer News 0 11-06-2006 02:21 AM
help with screw joint in cosmosmotion posix Solidworks 1 01-17-2006 05:40 AM
Intersting robotic joint Zathras Mechanical Calculations/Engineering Design 9 10-07-2005 01:05 PM




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