On Friday 28 February 2014 19:50:11 Steve Blackmore did opine: > On Fri, 28 Feb 2014 11:21:49 -0500, you wrote: > >IMO machine generated code CAN be useful, if you have memory resources > >enough to handle it. But I often carve my own code, making liberal use > >of subroutines. I've got one short proggy, maybe 90 LOC, that takes 2 > >days to run. > > > >I have yet to actually see machine generated code that contained a > >single subroutine. So tell me again who is still living in the 80's? > > There's several good reasons for it. Stopping or restarting from inside > subroutines and canned cycles is fraught with all sorts of problems. > > Pausing then jogging to clear swarf or replace a tool bit and then > restarting is pretty common in commercial shops, particularly when one > poor guy is looking after several machines. If you making hundreds of > small parts a day, it doesn't matter much if you trash one. The more > expensive the part, the less likely you are to trash one and may want > change tools or tips part way through. Easy and reliable without subs. > > One job I did springs to mind, mid way through cutting a left hand > thread on the end of an expensive EN24T ground turbine shaft between > centres and the insert chipped. I was running single line threading and > simply paused on the rewind, stopped the spindle, jogged away replaced > the insert, retouched off the tool to zero it in X, restarted the > spindle and pressed run, it picked up the thread and finished it > perfectly. > > You may understand your subroutine, but would a poorly paid operator? > They can mostly understand simple code ;)
If you are "hiring out of the greyhound bus depot", I can see your concern Steve. As for another operator figuring out my code, I'll leave that to the next owner of the machine after I fall over, because here, there IS no other operator. There might be one other person here in this metropolis of 7000 who might have an inkling, he has a 4x4' sheet metal plasma cutter he uses for artistic panels. I very much prefer to carve my own because it usually means that if I have to fine tune the part, I have only maybe a half dozen places at the top of the file to edit. And while I have used the global search and replace to edit a 35,000 line machine generated file, only God can help me if I have to answer the phone while doing it. > There is virtually no limits to program lengths since tape died so > writing subs isn't necessary to save space and serves no other purpose > other than living in the 80's (or earlier :) I much prefer to look at it as having mastered at least the concept of writing good, maintainable code, if not all the gritty details I have to ask about from time to time. With my ancient fat fingers, I hopefully have only one line of code to fix if it pukes mid run because of a typu. > Steve Blackmore Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> NOTICE: Will pay 100 USD for an HP-4815A defective but complete probe assembly. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users