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 12-28-2008, 03:41 PM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road
XYAB setup

Hi all,

I trying to set up my new off the shelf Sherline CNC from it's XYZA configuration to an XYAB configuration.

The mill came with the standard sherline CD with Linux, EMC, the Mini GUI, and it runs fine as an XYZA machine.

I've tried to change the INI file from:
X 0 linear
Y 1 linear
Z 2 linear
A 3 rotary
to:
X 0 linear
Y 1 linear
A 2 rotary
B 3 rotary

The system doesn't start when I've made changes to the INI -- the popup pops up, then goes away without the Mini GUI opening. It seems like something doesn't like the changes I've made.

Do I have to mess with the HAL? Is it correct to map XYAB to 0123, or do I have to map XYAB to 0134, and mess with HAL settings?

Anyone have suggestions/solutions? I hope someone out there makes lots of axis configuration changes and knows exactly what to do . . . . .
Reply With Quote

  #2   Ban this user!
Old 12-28-2008, 09:24 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by jodhner View Post
Hi all,

I trying to set up my new off the shelf Sherline CNC from it's XYZA configuration to an XYAB configuration.

The mill came with the standard sherline CD with Linux, EMC, the Mini GUI, and it runs fine as an XYZA machine.

I've tried to change the INI file from:
X 0 linear
Y 1 linear
Z 2 linear
A 3 rotary
to:
X 0 linear
Y 1 linear
A 2 rotary
B 3 rotary

The system doesn't start when I've made changes to the INI -- the popup pops up, then goes away without the Mini GUI opening. It seems like something doesn't like the changes I've made.

Do I have to mess with the HAL? Is it correct to map XYAB to 0123, or do I have to map XYAB to 0134, and mess with HAL settings?

Anyone have suggestions/solutions? I hope someone out there makes lots of axis configuration changes and knows exactly what to do . . . . .

OK, there are a couple things you need to do. The "missing" axes don't quite go away when you don't use them. So, to include the B axis, you need to tell EMC that it has 5 axes. The default axes then would be XYZAB. You are going to "skip" the Z axis. So, your TRAJ section would start like this :
[TRAJ]

AXES = 5
COORDINATES = X Y A B
HOME = 0 0 0 0
LINEAR_UNITS = inch
ANGULAR_UNITS = degree

You will also need to work on the section that maps the HAL pins to the specific motion driver to route the right axis signals for axes 0,1,3 and 4 to your first 4 motion output channels.

Jon

Last edited by jmelson; 12-28-2008 at 09:26 PM. Reason: garbled
Reply With Quote

  #3   Ban this user!
Old 12-28-2008, 10:11 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I really should learn how to read!

Heinz Reimer just added surline configs to the development version of emc2

http://cvs.linuxcnc.org/cvs/emc2/configs/Sherline4Axis/

Should get you what you need.

sam
Reply With Quote

  #4   Ban this user!
Old 12-28-2008, 11:20 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by samco View Post
I really should learn how to read!

Heinz Reimer just added surline configs to the development version of emc2

http://cvs.linuxcnc.org/cvs/emc2/configs/Sherline4Axis/

Should get you what you need.

sam
But, he specifically wanted XY and AB, not the more common XYZ plus A. There is a difference there, as EMC2 computes voordinated velocities with XYZ all linear, and doesn't add AB rotations to the velocity calculation. The OP didn't make clear what he was doing with the XY AB, and whether he really intended the A and B as angular axes or was doing a foam cutter or wire EDM with A and B being the additional linear axes. Depending on what he is actually doing with it, it may or may not make a difference.

Jon
Reply With Quote

  #5   Ban this user!
Old 12-29-2008, 03:06 PM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road

"...The OP didn't make clear what he was doing with the XY AB..."

I've got a 2000 Sherline with X and Y doing their normal table duties, A will be driving a rotary table flat on the table, and B will be driving a rotary table mounted on the A table.

The most complicated thing I'll be doing is:

G2 Xxxx Yyyy Iiii Jjjj Aaaa Bbbb

My understanding is that G-code should coordinate the velocities of the A and B axes so their motions end when the G2/G3 motion ends.

btw: I'm cutting bevel gears with a flycutter. The spindle is positioned parallel to the X axis. The B table is on an angle table on the A table. This setup emulates a crown rack generating involute profile teeth.

Thanks,
--Justin
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-29-2008, 03:43 PM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road

Geometry disclaimer:
There are a couple of additional tweaks required for this gear forming method to be accurate.
Reply With Quote

  #7   Ban this user!
Old 12-29-2008, 03:56 PM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road

No apologies!
I'm currently using the Sherline distribution, which appears to be pre-HAL. So, I'll have to put things together from the standard distribution. The information you referenced will give me a good baseline.
Thanks.
Reply With Quote

  #8   Ban this user!
Old 12-29-2008, 09:46 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by jodhner View Post
No apologies!
I'm currently using the Sherline distribution, which appears to be pre-HAL. So, I'll have to put things together from the standard distribution. The information you referenced will give me a good baseline.
Thanks.
OK, then I think you really need a complete update of both the OS and EMC2 to be able to skip axes and have some of the other features you want. Also, the Axis preview should actually show what the machine will do. (You may have to make some adjustments to a setup file for Axis to get the rotary axes to display in the right sense.)

Jon
Reply With Quote

  #9   Ban this user!
Old 01-03-2009, 09:28 AM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road
Continuing saga of XYZA to XYAB configuration change.

I've upgraded to EMC2 and got it working with my Sherline mill using the standard XYZA configuration. I used the stepper configuration wizard. Everything seems fine. (I've been working with the Sherline Stepper Driver's developer on the correct stepper timings and will report specifics soon.)

Now, when I edit the .ini and .hal, to to change over to the XYAB configuration with two rotary tables, which is the whole point of this exercise, the Axis GUI window never comes up, and the loader exits.

I've attached the terminal screen contents, and the .ini and .hal files.

Anyone see what I did wrong ? I've marked my editings of the wizard generated files with a streak of asterisks.

Thanks,
--Justin
Attached Files
File Type: txt terminalwindow.txt‎ (625 Bytes, 64 views)
File Type: txt test2ini.txt‎ (2.1 KB, 39 views)
File Type: txt test2hal.txt‎ (3.6 KB, 35 views)
Reply With Quote

  #10   Ban this user!
Old 01-03-2009, 10:40 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

I would get on IRC if this doesn't help..


http://www.linuxcnc.org/component/op...emid,8/lang,en

parameter or pin 'stepgen.4.position-scale' not found
he needs to number AXIS_0, AXIS_1, AXIS_2 and AXIS_3
and loadrt stepgen step_type=0,0,0,0 -> causes stepgend 0,1,2,3 to appear
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-03-2009, 12:39 PM
 
Join Date: Dec 2008
Location: USA
Posts: 15
jodhner is on a distinguished road
I think I've got it working . . .

I have the X, Y, A, B Axes mapping to the 0, 1, 3, 4 axis data structures, and the 0, 1, 3, 4 axis data structures mapping to the 0, 1, 2, 3 stepgen data structures. I can jog XYAB now.

So simple my dead cat could have done it.

Now I'll get to work on the stepper timing parameters for the Sherline Stepper Driver . . .

Thanks people.
Reply With Quote

  #12   Ban this user!
Old 01-03-2009, 07:10 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Originally Posted by jodhner View Post
(I've been working with the Sherline Stepper Driver's developer on the correct stepper timings and will report specifics soon.)
--Justin
It seems that there were a lot of different timing depending on the when the driver was built. If you can get reliable numbers we will add them to the next version of stepconf.

Chris M
Reply With Quote

Reply

Tags
axis, emc, hal, ini, sherline




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!- Pin Setup mjhooo8 LinuxCNC (formerly EMC2) 2 09-22-2008 02:28 PM
New Machine Build- Need help with setup LaserImage Stepper Motors and Drives 25 07-18-2008 01:25 PM
CNC setup mwood3 Benchtop Machines 33 06-19-2008 07:22 AM
DNC Setup phoodieman General CNC (Mill and Lathe) Control Software (NC) 6 12-18-2006 05:55 PM




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