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 01-28-2010, 10:27 AM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road
"Test this axis" - unexpected result

Every problem seems weird till you know the reason, so try this one for size.

In stepconfig, I've set the limit switch pins(11,12,13) to "Unused", on the assumption that this will remove any self-inflicted errors, due to my still not being sure what settings to use.
Other pins are set using my controller cct diagram, or set to Unused.
The parameters set on the next pages of stepconfig for X and Y axis are identical, apart from the maximum travel.
Likewise, Z differs only in travel and mm/rev.

Testing X and Z axis, both jog and run work correctly.
Testing Y axis, when I open the "Test this axis" window, I can hear the power go to the motor, and the shaft "locks up".
However, neither Jog nor Run work, unless I open the NC limit switch on that axis, then each works.
I've switched cables, and tested the X motor in the Y socket, and the Y motor in the X socket.
The symptoms show the problem is only associated with the Y socket.
If I have the "Run" on , and ease the plug gently into the Y socket, I can make the Y axis run OK, so some pin when unconnected allows it to work. Pushing right in locks up the Y motor.

I've tried reversing the step and direction settings for the Y axis, and inverting the signal for one or both, but no improvement.

Do these facts point to a specific source of the problem ?
I suspect the controller, but I can't think what would produce this symptom - the supposedly disabled limit switch preventing the step signal getting through, unless the NC limit switch is opened (which ought to have the opposite effect).

John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

  #2   Ban this user!
Old 01-28-2010, 01:24 PM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

I've just re-read earlier posts I made re this controller, and think I have the answer.
The Y axis, designed to have a two motor option, needs N/O limit switches.
At least that's my interpretation, and certainly that's the condition in which the motor moves.
So it looks like a swap round for that axis limit switches, though I would be happier with the fail safe that N/C give.

Any ideas how I can get fail safe with needing a low (?) on the input pin ?
Perhaps I'm just being over cautious ?

John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.

Last edited by greybeard; 01-28-2010 at 04:10 PM.
Reply With Quote

  #3   Ban this user!
Old 01-28-2010, 08:21 PM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

Did you check your .ini file? I had a problem with stepconf inserting wrong values in mine and had to manually change them.
Reply With Quote

  #4   Ban this user!
Old 01-29-2010, 02:00 AM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

Thanks for the tip, marzetti, I'll have a look.
John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

  #5   Ban this user!
Old 01-29-2010, 04:11 PM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

I've run into a situatioin where Ubuntu wouldn't let me load up, so, not getting a quick answer, I've decided to make a fresh start, and reinstalled.
At least I've learnt a fair amount this time round.
John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-30-2010, 11:17 AM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

So I've now reinstalled, updated, and set up a new stepconfig file.
I've got the three motors on the bench, connected to the controller, with one N/C limit switch on each.

Whatever config I set up for the limit switches, with normal or inverted signals, using the "Run" command in "Test this Axis", operating the limit switch has no effect on X or Z motors, but the Y motor will only run if the switch is open.
This remains the case whether or not a jumper is used on the limit switch pins of the Y2 socket, as required by the designer, and as was proved necessary with previous software.

I've attached the schematic for my controller.
Attached Files
File Type: pdf EMC-XYYZB-Schematic.pdf‎ (162.1 KB, 37 views)
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

  #7   Ban this user!
Old 01-30-2010, 11:45 AM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

In believe the axis testing routine ignores the limit switches.
Reply With Quote

  #8   Ban this user!
Old 01-30-2010, 12:10 PM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

Originally Posted by marzetti View Post
In believe the axis testing routine ignores the limit switches.
Aaaaaaaaaaaaaaaargh.


But thanks, again marzetti.

Could anyone confirm marzetti's suspicions ?

John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

  #9   Ban this user!
Old 01-30-2010, 01:01 PM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

I just checked on my machine to be sure and the limit switches are indeed disabled in the test routine.
Reply With Quote

  #10   Ban this user!
Old 01-30-2010, 01:10 PM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

Just to clarify my first post to this thread- the error I found in the step-conf wizard was that it inserted an inverted value for the home search velocity and I had to add a - sign to correct it. So it's possible that it misconfigures other values as well. The wizard is a good aid to set up but it bears checking.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-30-2010, 07:34 PM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

Thanks, marzetti, for the update/confirmation.
I've just returned in the early hours here, on this side of the pond, from a very convivial evening with friends.
So in a warm mood I can take onboard the new info, and with Bruckner's 8th playing in the background, feel that all is not lost, and perhaps by tomorrow the ice and snow will have disappeared, the software will talk to me in civilized tones, as equals, and we will move forwards.

Tomorrow I shall see what the AXIS gui has in store for me, re limit switches.
Regards
John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
Reply With Quote

  #12   Ban this user!
Old 01-31-2010, 05:04 AM
greybeard's Avatar  
Join Date: Jun 2005
Location: UK
Age: 73
Posts: 1,368
greybeard is on a distinguished road

OK Houston, we seem to be one giant step forward.
Close examination of the controller cct(posted in #6) shows the need for an NOTenable signal on pin 1 to feed into part of the cct that splits the Y step signals into Y1 and Y2/Astep.
Though I'm not using the Y2 motor, I still needed that NOTenable, as well as the limit switch jumper on the Y2 motor socket.

So now I have all axis behaving the same, I can try and get the limit switches set up correctly.
John
__________________
It's like doing jigsaw puzzles in the dark.
Enjoy today's problems, for tomorrow's may be worse.
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
How to "offset" Double sided PCB if I don't have abolute "home" on my CNC ? Calico PCB milling 11 07-12-2011 06:02 AM
Need Help!- "motor steps per resolution" and "driver microstepping" settings margni74 LinuxCNC (formerly EMC2) 9 10-24-2009 02:33 AM
"J" head type "millport"(tiwan,1980) clutch marksbug Bridgeport and Hardinge Mills 1 08-17-2009 10:48 AM
My "Crazy" high speed spindle test SScnc Benchtop Machines 4 04-21-2009 07:16 AM
G320 "common" or "+5vdc" why do they vary? beezerlm Gecko Drives 3 01-12-2008 04:00 PM




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