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-03-2009, 10:45 AM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road
Talking Linux Newbie... hey, this is great!

Well, I just installed Unbuntu 8.04, my first experience with Linux.
After a few rough spots, partly caused my myself and my system, I've got it running.
I've just gone through StepConf, and opened EMC for the first time.
The very first thing I see are three variables defined in the demo program ; #1=.1, #2=.01, #3=.0003

I love it, that's exactly what I've been looking for. I use macro variables on the two Haas machines I run most often at work.
Everyone else looks at my nested conditional loops and incrementing variables, and calls it 'Your crazy programming', I can't get them to try it.

At home, Mach doesn't support it, but instead expects the user to go off writing some script, for what in a professional setting could be a single-use program.

Anyway, I'm not ranting about Mach, I really like it, but THIS is exactly what I've been looking for!

I'm really happy I switched to Linux.
Reply With Quote

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

Welcome to EMC I'm glad you stuck it out.
You'll prob find some of the developers write G code like programmers too.
Jmk's variable pitch threading:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?JMKsFusee
samples of using O words:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Oword
Reply With Quote

  #3   Ban this user!
Old 01-03-2009, 07:57 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

I've still got a ton of stuff to learn, Linux and EMC at the same time.
I've been gone all day, so I haven't had time to play with it since installing it this morning.
Do I NEED my limit switches installed to run? How do I get back to that interface selection list I saw before I ran StepConf? What's going on with this file system when I try to extract a compressed file I just downloaded? Etc. The list goes on and on.


Great links, by the way.
Reply With Quote

  #4   Ban this user!
Old 01-03-2009, 11:53 PM
cadmonkey's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 304
cadmonkey is on a distinguished road

The variables and using O words for loops are WONDERFUL - the logo I mentioned in my last post in the survey thread used O loops for each of the individual entities and incremented the Z down to a predefined level making the .ngc file nice and small, though it was millions of moves. Using CamBam on Windows I generated the paths for a single depth and then just isolated each entity and made it into a loop. Since then I've been using more and more variables. It's a hand coder's dream, especially with free path generation software to get by size limits and other shortcomings.

The offer stands that if you need addl. memory and I have the appropriate form factor in my spares bin I'll offer it for cost of postage.

Answers - no you don't need to install the limits switches to run - comment them out in the .hal file with a #. Examples of the home and limit connections -
Code:
#net home-x => axis.0.home-sw-in
#net all-limit => axis.0.neg-lim-sw-in
#net all-limit => axis.0.pos-lim-sw-in
There should also be the pin connections outside of each of the axis definitions:
Code:
#net XMin parport.1.pin-02-in-not => axis.0.neg-lim-sw-in
#net XMax parport.1.pin-03-in => axis.0.pos-lim-sw-in
#net XHome parport.1.pin-04-in => axis.0.home-sw-in
# Y Pins
#net YMin parport.1.pin-05-in => axis.1.neg-lim-sw-in
#net YMax parport.1.pin-06-in => axis.1.pos-lim-sw-in
#net YHome parport.1.pin-07-in => axis.1.home-sw-in
# Z Pins
#net ZMin parport.1.pin-08-in => axis.2.neg-lim-sw-in
#net ZMax parport.1.pin-09-in => axis.2.pos-lim-sw-in
#net ZHome parport.1.pin-10-in => axis.2.home-sw-in
or something similar.

I am confused what interface selection you mean - are you refering to the interface you see when you run a stepconf generated configuration? If that is the case, stepconf defaults to Axis
Code:
[DISPLAY]
DISPLAY = axis
other options are TkEmc, mini, keystick. It's in the manuals, some info on the wiki @ http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Interfaces

What compressed file are you trying to decompress and what is or isn't it doing when you try to decompress. I'm not as familiar with any of the xwindows GUIs, I have spent more time in terminal on my server with the exception of running EMC2 for machining processes but I'll try to help.

Greg
__________________
Every day is a learning process, whether you remember yesterday or not is the hard part.
www.distinctperspectives.com
Reply With Quote

  #5   Ban this user!
Old 01-04-2009, 09:54 AM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

Ah, thank you for the limit switch advice, Now I'm getting somewhere. I wish I'd had more time yesterday to experiment with this.

The memory offer is most generous, I might get back to you on that one!

Yes, the selection of Axis, TkEmc, etc., is exactly what I was trying to find.
I'm still quite lost in Linux...but I'll get better.
The biggest issue is time, which is why I haven't touched *nix before now; I don't have as much time as I used to, to learn an OS.

This is a screenshot of System Monitor while running EMC. I'm not pasting it for any real reason, other than to play with Gimp and this system.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png‎
Views:	192
Size:	53.3 KB
ID:	72823  
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-04-2009, 01:13 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

Yeah, I saw the thread about your rusting. Sorry to hear it.
After digging through my memory spares, I seem to have pleny of spares, of the same 128Mb, pc100 SDram that I'm already running. Too bad this thing only has 2 memory slots.
I did find a single 256Meg PC133, so I threw that in. Yes, I know the FSB speed is wrong, but it's better'n nothing.
Still, my poor processor is running near max load, according to System Monitor, and somewhere during the current Latency test, it hit 249,064 nS.
Maybe Unbuntu, or at least 8.04, isn't a good idea right now.
Reply With Quote

  #7   Ban this user!
Old 01-04-2009, 02:24 PM
cadmonkey's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 304
cadmonkey is on a distinguished road

Unfortunately that latency result is indicative of poor performance. You'd definitely need to troubleshoot and see if it's something correctable.

Checkout the wiki - start with http://wiki.linuxcnc.org/cgi-bin/emc...roubleShooting
__________________
Every day is a learning process, whether you remember yesterday or not is the hard part.
www.distinctperspectives.com
Reply With Quote

  #8   Ban this user!
Old 01-04-2009, 06:00 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

Ugh.
Will EMC run on Xubuntu?
I'm running out of 'fun'.

Last edited by vlmarshall; 01-04-2009 at 07:02 PM.
Reply With Quote

  #9   Ban this user!
Old 01-04-2009, 07:02 PM
cadmonkey's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 304
cadmonkey is on a distinguished road

I am not sure - you need the realtime kernel - that is a better question for the gurus on the users list (a lot of the developers are active there so you'll probably get a good answer). Also, if you post EXACT system specs and if that latency result is a constant or an intermittent spike they can help pinpoint, don't give up on it yet, but be aware there are some boards that are just NOT real time capable. Mach under Windows doesn't operate in realtime but the architecture of EMC requires realtime and knowing how long the system takes between commands. The high latency result means that you won't get as fast a stream of pulses. Common culprits are integral motherboard architecure, video (especially onboard) and other onboard integrate peripherals. It could be as simple of a troubleshoot as changing the BIOS ACPI/APM settings.

You obviously liked the interface so hang in there. All is not lost! Nothing good comes easy.

As for PC133 or PC100 I don't think I have anything but 128's myself, otherwise I'd have 512 in my box. Mine started acting up when I went to clean the rust yesterday and now doesn't want to power up. Time to pull the mobo out and see if it got some condensate on it and just needs cleaned, if there are caps that popped or if I need to replace the whole damn thing. (I REALLY REALLY REALLY hope it's A...) I do have a new mobo lined up but I didn't want to do that till spring.
__________________
Every day is a learning process, whether you remember yesterday or not is the hard part.
www.distinctperspectives.com
Reply With Quote

  #10   Ban this user!
Old 01-04-2009, 07:26 PM
vlmarshall's Avatar  
Join Date: Mar 2006
Location: usa
Posts: 474
vlmarshall is on a distinguished road

ok, where is this Users List? I guess I'll try it... I'd like to cure this latency spike, but I'll bet it's the onboard video card.
Although, it IS an Ati card, which the FAQ mentions as a preferred brand...

So, can I just go get a NEW vid card? What about linux drivers? Ugh.

Frustrating.

I feel your condensation pains. Do you really think it popped? Not the power supply?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-05-2009, 12:23 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by vlmarshall View Post
ok, where is this Users List?
http://www.linuxcnc.org/content/view/4/8/lang,en/

Frustrating.
I can relate. I bought a used IBM P3 specifically to run EMC2 and never solved the latency issues. Still don't know why it misbehaved. Running fine now on a $50 AMD. Maybe it's the alignment of the planets to blame?

The best place for latency advice will be the mailing list.

Don't sweat the vid card drivers. Just ask before buying a specific card.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

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

Onboard Video is one of the main culprits of bad realtime performance. SMI is another.
You can also try using different video driver (use the more generic ones)
If you have another APG/PCI video card laying around try it. Don't but an expensive one EMC doesn't need it.

You don't want to try Xubuntu. There are no pre-compiled files for it you would have to compile RTAI realtime and EMC....not for the faint of heart.
The pre-compiled files that you downloaded onto a cd were specifically tailored for Ubuntu 8.04- so that is probably not your source of the problem.

The mail list and Wiki are the best source of answers.

Hang in there.
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
linux will not boot CASTLEVILLE AjaxCNC Control Products 2 12-12-2007 12:46 PM
Software for Linux Ringo42 LinuxCNC (formerly EMC2) 34 08-16-2005 02:28 PM
New help needed PLZ !! BDI Linux k-linkz LinuxCNC (formerly EMC2) 1 03-18-2005 01:13 AM
Linux & Windows Klox Computers and Networking 2 03-08-2005 09:28 AM
BDI Linux ynneb LinuxCNC (formerly EMC2) 16 08-03-2004 04:38 PM




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