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 > Mach Software (ArtSoft software)


Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-03-2011, 05:33 AM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road
Feedhold / Realtime issue

Hi

I was quite excited by the low price of Mach3, the large majority of boards and especially the ability to easily customize the interface, but then I read on here after a lot of searching of a feedhold problem with Mach.

I'm not a programmer I'm just trying to understand the issue and am curious as to why it exists. From what I gather, Mach is open loop and only sends steps and does not wait for a return loop before it sends the next step, as a result it sends steps per line of code, which causes the feedhold to finish the line before it is active. Is this the correct assumption?

The reason it appears is because it is compiled to run on stander windows as a standard application. While something like EMC2 runs in realtime and receives confirmation pulses before sending out new steps as a result feedhold in EMC2 is instant within the next step and not he next line of code. Am I still on the right track?

Lastly is there a solution to this, can Mach not be compiled to run in realtime http://www.tenasys.com/support/files...eDatasheet.pdf. From the video on the site the gui performance is great.

I assume for the most part that the feedhold cannot be done in the motion controller card because mach would lose track of where the machine is?

Feedhold is a deal breaker for me, it will be really difficult to use Mach without it functioning properly, but the fact that the GUI is so easily customized is very tempting compared to EMC2.

Speaking of GUI performance(I've read on here some slow performance), has anyone tried launching mach with the /realtime switch to improve performance?

Are there any other options to get feedhold and feed override to function as it does on commercial controllers?
Reply With Quote

  #2  
Old 04-03-2011, 07:03 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

I'm not a programmer I'm just trying to understand the issue and am curious as to why it exists. From what I gather, Mach is open loop and only sends steps and does not wait for a return loop before it sends the next step, as a result it sends steps per line of code, which causes the feedhold to finish the line before it is active. Is this the correct assumption?
Not really.

Mach3 is a buffered system, where many lines of g-code are sent to a buffer. This is the reason that Feedhold can be slow to activate.

There are two options you can try.

One, there's a setting in general config. "No FRO on Queue". This may slow the activation of the FRO, but should speed up the feedhold.

The other option is to decrease the lookahead setting in Mach3. I believe the default is 200. Try a setting of 10-20.

You'll need to try them to see if they work for you.


Some external motion controllers may indeed have instant control of feedhold, but you'll need to contact the manufacturers to know for sure. Since Mach3 sends motion commands, and not step/direction signals, these controls should be able to implement a realtime feedhold. Some of them may be doing that, but I've not used any to know.

Lastly is there a solution to this, can Mach not be compiled to run in realtime
No. Mach3 is almost like two different applications. The gui part, that reads and writes to the screen, and a kernel mode driver. The driver basically steals control of the PC from windows in order to do the critical timing things that it does.

If an external motion control device is used, than the driver is not installed, as all the critical timing things are handled by external hardware.


Speaking of GUI performance(I've read on here some slow performance), has anyone tried launching mach with the /realtime switch to improve performance?
While I posted yesterday about the slow gui while running on a 1Ghz PC, it's not really a complaint I've ever heard? What I was saying only relates to changing from one screen to another. There is now perceptible slow performance while on any given screen. The display in Mach3 is updated 10 times/second, and nothing can be done to change that.
There can be an issue when large g-code files are loaded (several hundred thousand lines of code). On some machines, this can slow the interface down. The workaround for this is to turn off the toolpath display. This issue is due to the way the toolpath display was written. It has been addressed and when the next major release of Mach3 (called Version 4) comes out, it should no longer be an issue.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 04-03-2011, 07:27 AM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

Thank you for your response, it clears it up now about how the commands are sent.

I'm not yet 100% clear on the feedhold speedup you are talking about though, if the machine is at X0 Z200.(mm) and I command G0 X0 Z0. and press feedhold half way through at 100mm, since this is a single command will it stop at some stage before hitting 0 or at 50 or at 100?

On our lathe programs they are typically very short, 10-30 lines, we will stay with manually programming and not run many short stroke commands so the programs will stay short, the lookahead can be as low as 5 and still function fine, but the feedhold should stop quick. I believe the Galil products can handle this but not sure, but the cost for their controllers are high. It might be cheaper to pay a developer to build a decent interface for EMC2 and go that route.

Is it possible to get an estimation for how long it would take to activate? The machines are old, with 2500ppr servo's, 5m rapid on X and 10m on Z. DC's and I plan on putting the DC drivers in from cnc4pc along with their C32 card running through the parallel port. The pc I am looking at is a Atom 525 industrial pc with 2GB ram a 16GB solid state drive running stripped down Windows 7 or Windows 2008 R2(Or plain 2008 32 bit since I see 64bit doesn't work) core installation since I have a lot of open licenses left, dedicated for Mach, it has an onboard parallel port, It also has one PCI-Express slot and I believe I should add a plug in graphics card for best performance?

Sorry for the misunderstanding on the gui performance and thanks again for taking the time to respond.
Reply With Quote

  #4  
Old 04-03-2011, 09:02 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

I really can't tell you how fast it will stop. You'll need to actually test it to see, and try the different options I suggested.

I think with your 2500ppr encoders, you may not be able to use the parallel port, as you'll need a very high step rate. Or are you planning on using the drives step multiplier?

What is Windows 2008??

I don't believe you'll need to add a video card. That requirement was important 5 years ago, but most newer PC's run Mach3 fine with onboard video.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5   Ban this user!
Old 04-03-2011, 04:11 PM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

Thats no good I thought it would be okay since they are servo not stepper I'll investigate what needs to be done... no use having a machine that is slower and more jittery than a 5 or 6t... I actually don't have a problem programming 5/6t but we are spending a bit of money on the hardware for repairs every year that I want to get away from.

Windows 2008 server 32bit is based on the Vista 32 bit kernel and the 64 bit version based on the 64 bit vista kernel, Windows 2008 R2 is based on the 64 bit Windows 7 kernel only, there is no 32bit windows 2008 R2.

It is easier to slim down 2008 server than it is vista/7, since you can install it without the gui called core installation, it is exactly that, just the windows core.

Understanding Windows Server 2008 Server Core
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-03-2011, 05:13 PM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

I read on Machsoft that in 2010 ART figured out how to get some real-time performance on windows, not sure what that means for the future of Mach, when does V4 come out though and is there somewhere I can read on what to expect in future?

Regarding the limitations on the parallel port should I use a product like: 8-Axis Ethernet Motion Controller, Mach3 CNC Controller, .Net C# CSharp Library instead I assume?

They claim up to 2Mhz "soon" no mention of the current step performance though, but I've seen 2 video's with this controller and it's fast.
Reply With Quote

  #7  
Old 04-03-2011, 05:30 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

I read on Machsoft that in 2010 ART figured out how to get some real-time performance on windows, not sure what that means for the future of Mach
Art's been retired for about 2 years now. He'll occasionally make some minor mods to the parallel port driver, but that's it. Nothing major has changed in the last few years, and most likely won't in regards to becoming a "realtime" control.



when does V4 come out though and is there somewhere I can read on what to expect in future?
It's supposed to be beta testing soon, but is already over a year behind schedule. But the basic method of operation won't be changing.
I've heard that parallel port support may go away, but I don't think it'll be gone in V4.

From what I've read, V4 will have a new toolpath display, support for multiple spindles, better VB integration, new cutter compensation,.....
That's all I can remember right now.

As for the DSPMC, I can't answer that. But, there are other options.
Smoothstepper
KFlop
Centipede
And Galil cards are supported, too.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 04-03-2011, 05:55 PM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

Thanks, any recommendation?

Eventually I want to change all 4 lathe's over, but I want to start with the easiest.

It's a Wasino Lenuc-1, Fanuc 6T control X and Z only, no turret (Gang tooling) no spindle brake, the machine isn't working right now(busy building a bar feeder for it, and Z ballscrew needs replacing/fixing) so it's a good time to look at changing it over as a test piece. I just want to keep the motors and replace everything else, the spindle controller is fine too haven't had any problems with these ever but the servo drivers and controls are another story.

I'll read through the documentation from all these companies on how the products work and see which way to go.

Thanks for the help so far!
Reply With Quote

  #9   Ban this user!
Old 04-04-2011, 04:42 AM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

After going through all those links I think I'll go with the kflop/kanalog setup, the response from them via email is fast and it looks like a good solution for older analog stuff. Thanks for the heads up

Btw, Tom said that the feedhold can be done in hardware to stop the machine instantly, but it's not clear yet if it can resume after, technically if it can't it wouldn't be called feedhold, but I'll check up on this.

Looks like this should all work in 64bit as well so possible to do a core 2008 setup.
Reply With Quote

  #10   Ban this user!
Old 04-04-2011, 10:19 AM
 
Join Date: Aug 2006
Location: South Africa
Posts: 82
jrobson is on a distinguished road

I saw on the yahoo group, indeed with feedhold wired into kflop it can be done in hardware, instant like OEM machines and resume, this is great news!
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
Help on Realtime board replacement sunnybank Cincinnati CNC 2 10-13-2009 02:10 AM
Realtime timeout! matthew6060 Cincinnati CNC 4 02-22-2009 11:33 AM
Realtime in EMC Kailo LinuxCNC (formerly EMC2) 2 01-23-2009 03:51 PM
Feedhold hotkeys not working thedoctor Mach Plasma / Laser 3 10-05-2008 05:15 PM
Realtime implementation in EMC ChandlerBing LinuxCNC (formerly EMC2) 4 02-28-2008 03:26 PM




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