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-21-2012, 01:26 PM
 
Join Date: Jul 2008
Location: USA
Posts: 33
veggiedog is on a distinguished road
Industrial Hobbies Servo Based Square Column Bed Mill

I have been very happy with my IHCNC mill: 3-axis servo controlled, fourth axis (rotary table) stepper controlled. It came with a Windows XP based computer running Mach3 as the CNC controller software. However, I am a long time Linux enthusiast, and a big time Microsoft detractor, so I finally made the conversion to emc. I grabbed the Athlon based small form factor computer I had been using almost exclusively for web surfing, pulled out all of the add in cards, and converted it to multi-boot XP, 2000 server, opensuse 11.3, and ubuntu 10.04 from linuxcnc.org. I installed Mach3 on the Windows partitions, and emc came with the ubuntu distribution. I left opensuse alone, and I use it when I'm not controlling the mill, mostly because I do not like the look and feel of ubuntu.

Mach3 running on the windows partitions could not control the mill on that platform. It performed well on the platform that came with the mill (dual core Intel E2180 @ 2 GHz), but on the Athlon platform (AMD Sempron @ 2Ghz) the servos sounded horrible (grating, erratic) and the spindle was worse (rpm surge, oscillated, and couldn't get above 800rpm or so). The spindle is a VFD controlled by step pulses (cnc4pc c6 step to analog converter), and the OS just couldn't keep up with the constant demands of such a configuration.

In contrast, the mill runs exceptionally smoothly under emc2. Unless I am deceiving myself, it sounds smoother than it did running Mach3 on the original system (dual core Intel). I am too lazy to drag the original computer out to the shop to compare the two in a side by side test, but I stand by the assertion that it 'seems to run smoother'. I suspect that the real time application interface (RTAI) extensions to the Linux kernel are the reason for the improved performance.

I thought that maybe someone might come looking on this forum for information regarding the setup of their IHCNC mill with emc, so I am providing this post to push them towards trying it out, maybe detract them from the Microsoft solution, and provide them with my configuration files to help out.

If you want to try out emc on your IHCNC mill, linuxcnc.org has a live CD iso image that you can burn to disk (if you have a cd/dvd burner) and then boot your computer from CD without having to install. You can look around at the software, and you should run the latency test to determine if your computer is capable of running the software to control the mill (available from the drop down CNC menu at the top). You won't be able to actually control the mill until you install and then setup a configuration file.

If you're not familiar with Linux and multi-booting, there are plenty of websites that provide instructions for doing that, so you can install Linux without removing your windows installation.

Attached, you will find the configuration files. Rename the files by removing the '.txt' and then change the '_' to a '.'. The filenames are mangled to allow uploading to the forum.

Create an emc2 configuration, and call it IndustrialHobbies. You can use the stepconf wizard to create that project, and just answer the questions with nonsense, except for the name "IndustrialHobbies" (no need to specify actual information unless forced to do so by the wizard, then just give it enough to move on), and then replace the .hal and .ini files in the resultant ~/emc2/configs/IndustrialHobbies directory with the ones attached to this posting. That's what I did. I suspect, in hindsight, that you could just copy over the contents of the directory
/usr/share/docs/emc/examples/sample-configs/5axis
and put it in ~/emc2/configs/IndustrialHobbies/, and then replace the .hal and .ini with the attached files, and rename 5axis.tbl to tool.tbl, but that's not what I did, but I probably would do if I were starting from scratch. The tool.tbl file contains your tool definitions, mine is simply called tool.tbl, the name is specified in the ini file.

You can play with max velocities and max accelerations in IndustrialHobbies.ini. I set them to 'reasonable' values according to my experimentation, but they can, and I suspect should, be tweaked to your preferences/experience/machine specifics. Parallel port pin assignments and polarities are in IndustrialHobbies.hal, they probably match your turnkey IHCNC configuration with the exception of pin 15: I connected my gecko servo controller ERR/RES to that pin via an optically isolated circuit I posted on cnczone's Industrial Hobbies forum, but it did not come that way from IHCNC. DO NOT connect the ERR/RES pins directly to the parallel port!!! The voltages are not the referenced from the same source and I suspect bad things will happen (luckily, I was knowledgeable enough to check first, and they are off by 12VAC or so). You may want to just disable that pin assignment in the .hal file.

I enabled support for preserving axis locations on shutdown and loading on startup by adding a line to the ini file that stores the data in 'positions.txt' which will be located in the emc2/configs/IndustrialHobbies directory. You can edit that file to reflect your machine's actual position, while emc2 is not running: that is the only way to manually set machine coordinates without actually running the homing sequence which uses the limit switches. By adding support for saving the axis position on shutdown, they will be loaded on startup, and you will be then be able to use simple g-code at startup. Keep in mind that if you move the axes while emc2 is not running, and don't adjust the position.txt file to reflect those moves, emc2 will not have a proper notion of the machine's position on start up.

The travel is configured to be (30", 12", 17.5"), yours may be different: edit the ini file to reflect your configuration. Homing is configured to occur at 0, 0, 17.5 (spindle at top of column positioned over left/front of table), and I configured the machine to move to 15, 6, 10 (middle) after the homing sequence (called 'home' in the ini file), you can adjust that to your preference as well.

emc2 recommends that you home the machine, and the default configuration is to force you to home the machine every time that you start emc2 before you can do anything else. I added a line to the ini file to disable that feature. I still home my machine, but I like to be able to jog over close to the home switches using g-code to shorten the time required for homing. Disabling forced homing allows me to do that, but it is not the default behavior. If you would rather do it the default way, you can remove the 'NO_FORCE_HOMING = 1' line from the ini file to enable the default behavior.

If you have any problems, this forum (EMC/Linux (Enhanced Machine Control) is the forum to come to!!! The posters have been very helpful, and they do a good job of representing the opensource community.

Good luck, and have fun!!!
Attached Files
File Type: txt IndustrialHobbies_hal.txt‎ (6.2 KB, 16 views)
File Type: txt IndustrialHobbies_ini.txt‎ (2.5 KB, 9 views)
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
DRO on INdustrial Hobbies mill? Randall Industrial Hobbies (Support forum) 12 04-14-2007 09:06 PM
Industrial Hobbies mill and the ZAY7045FG from lathemaster triump Benchtop Machines 1 09-04-2006 09:26 PM
HARBOR FREIGHT small round column mill to a square column conversion. motomitch1 Vertical Mill, Lathe Project Log 25 12-01-2005 10:24 AM
Have an Industrial Hobbies Mill on the way! Roy Norris Industrial Hobbies (Support forum) 3 07-17-2005 02:42 AM
CNC Lathemaster/Industrial Hobbies Mill - First Part CNCPlastic General Metal Working Machines 12 08-23-2004 09:19 PM




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