Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Gregg Eshelman
--- On Sun, 5/12/13, Rafael Skodlar wrote: > > It can be used as one, certainly, but then so can > Postscript. > > > > By that logic, we would program web sites code in assembler. > But then > millions use inches and feet even when they tweet ... You can also do crazy things such as writing an

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Rafael Skodlar
On 05/12/2013 01:48 PM, Steve Blackmore wrote: > On Sun, 12 May 2013 10:08:10 -0700, you wrote: > > code. On 05/12/2013 02:16 AM, Steve Blackmore wrote: > >>> These days unlimited code length is the norm and subs are frowned >>> upon commercially in my experience. The operator can't easil

Re: [Emc-users] DIY G-Code

2013-05-12 Thread Gregg Eshelman
--- On Sun, 5/12/13, Peter Blodow wrote: > What I have been looking for, but never found > was a concise reference table of all G-, M- and other codes, > sorted by number, containing, one per line of the table, the code > number, a short explanation and a very short example to show the usage, >

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Jon Elson
Kent A. Reed wrote: > On 5/12/2013 6:02 AM, Lars Andersson wrote: > >> The symbol <==> is new to me. >> > > Lars: > > '<=>' denotes bidirectional signal flow and is the symbol intended to > correspond to IO pins as opposed to IN or OUT pins. > It is important to remember that these symb

Re: [Emc-users] DIY G-Code

2013-05-12 Thread Jon Elson
RogerN wrote: > G33.1 requires a spindle encoder to the best of my knowledge. I have a > couple of Tapmatic NC tapping heads for non-rigid tapping that I was hoping > to get to use. I hope to add a spindle encoder sometime but thought maybe I > could use the Tapmatics until then. > > I have

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 17:56:13 Steve Blackmore did opine: > On Sun, 12 May 2013 09:33:17 -0400, you wrote: > >I'd certainly think so. The OEM 3" 3 jaw scroll is not even a sows > >ear, 50 thou or more run out, I wound up putting it on a rotary table > >for the mill, where if I really want wrench

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread jeremy youngs
In this case the code is centrally kept and accessed via the network. There is a master copy and working copies. They would NEVER write as a subroutine as the next operator wouldn't understand it. He would however understand any change made in Gcode. Any changes are supposed to be documented on the

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 17:54:32 Steve Blackmore did opine: > On Sun, 12 May 2013 10:01:39 -0400, you wrote: > >Their collet chucks look like a decent deal though, and that is > >something that Chris doesn't stock. So I'll keep that in mind if I > >ever go into production with my #209 nipple for my

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 17:49:41 andy pugh did opine: > On 12 May 2013 18:08, Rafael Skodlar wrote: > > If the operator does not understand complex operation, that's > > precisely why a subroutine should be used IMO. Granted, I do not know > > much about G code and machining in general as my work m

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Steve Blackmore
On Sun, 12 May 2013 09:33:17 -0400, you wrote: >I'd certainly think so. The OEM 3" 3 jaw scroll is not even a sows ear, 50 >thou or more run out, I wound up putting it on a rotary table for the mill, >where if I really want wrench flats concentric, I can program the mill to >center them. It

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Steve Blackmore
On Sun, 12 May 2013 10:01:39 -0400, you wrote: >Their collet chucks look like a decent deal though, and that is something >that Chris doesn't stock. So I'll keep that in mind if I ever go into >production with my #209 nipple for my muzzle loading BP rifle. Let me know If you want one, I can or

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Steve Blackmore
On Sun, 12 May 2013 10:08:10 -0700, you wrote: >>> code. >>>On 05/12/2013 02:16 AM, Steve Blackmore wrote: >> These days unlimited code length is the norm and subs are frowned >> upon commercially in my experience. The operator can't easily alter >> the code, if required, on the fly. Some of th

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Rafael Skodlar
On 05/12/2013 10:34 AM, andy pugh wrote: > On 12 May 2013 18:08, Rafael Skodlar wrote: > >> If the operator does not understand complex operation, that's precisely >> why a subroutine should be used IMO. Granted, I do not know much about G >> code and machining in general as my work mostly revolve

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread andy pugh
On 12 May 2013 18:08, Rafael Skodlar wrote: > If the operator does not understand complex operation, that's precisely > why a subroutine should be used IMO. Granted, I do not know much about G > code and machining in general as my work mostly revolved around > computers and connections to "other

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
>> On 11 May 2013 20:19, Lars Andersson wrote: >> >>> Trying to control servo P I and D at runtime with potentiometers to >>> practise loop optimising. >> As you have seen, an underlying problem is that the Gains are IO pins. >> They used to be parameters, but it was decided that pins would be mo

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
> On 11 May 2013 20:19, Lars Andersson wrote: > >> Trying to control servo P I and D at runtime with potentiometers to >> practise loop optimising. > As you have seen, an underlying problem is that the Gains are IO pins. > They used to be parameters, but it was decided that pins would be more >

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Rafael Skodlar
On 05/12/2013 02:16 AM, Steve Blackmore wrote: > On Sat, 11 May 2013 21:40:55 -0700 (PDT), you wrote: > >> Re: Correct use of subroutines >> >> My old school answer is that most subs should be written in (G91) >> Incremental mode. >> >> My more modern method can be either G90 or G91 depending on th

Re: [Emc-users] Take control of PID control

2013-05-12 Thread andy pugh
On 11 May 2013 20:19, Lars Andersson wrote: > Trying to control servo P I and D at runtime with potentiometers to > practise loop optimising. As you have seen, an underlying problem is that the Gains are IO pins. They used to be parameters, but it was decided that pins would be more useful, but

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 10:08:08 Kent A. Reed did opine: > On 5/12/2013 6:02 AM, Lars Andersson wrote: > > The symbol <==> is new to me. > > Lars: > > '<=>' denotes bidirectional signal flow and is the symbol intended to > correspond to IO pins as opposed to IN or OUT pins. > > Remember, though,

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 09:55:15 Steve Blackmore did opine: > On Sat, 11 May 2013 23:09:38 -0700 (PDT), you wrote: > >--- On Sat, 5/11/13, Gene Heskett wrote: > >> Does anyone make a decent 4 jaw, about 5" in diameter that > >> will fit the > >> spindle flange of a mini-lathe for < $250? > >> Mos

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Kent A. Reed
On 5/12/2013 6:02 AM, Lars Andersson wrote: > The symbol <==> is new to me. Lars: '<=>' denotes bidirectional signal flow and is the symbol intended to correspond to IO pins as opposed to IN or OUT pins. Remember, though, the quote from the docs in my earlier message---these direction-indicato

Re: [Emc-users] Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 09:44:59 Roland Jollivet did opine: > Just remembered, that the first time I tried that on the Maximat, it > worked too well, and the chuck came spinning off !! > > If it's a threaded spindle nose, you have to be very careful of this. At > least close the chuck during testin

Re: [Emc-users] Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 09:34:55 Roland Jollivet did opine: > On 12 May 2013 02:45, Gene Heskett wrote: > > Greetings all; > > > > As I install the motor on my mini-lathe, it occurs to me that if I do > > a set of ice cube relays driven by those toys on the C41 board, it > > strikes me that with t

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Andrew
2013/5/12 Kent A. Reed > I admit I struggled to wrap my brain around this notion when I first > read the LinuxCNC docs. > > Syntactically, there is a difference in these pin types simply because > the parsing rules in halcmd say there is a difference. In particular, > the two rules quoted above m

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 09:16:13 Gregg Eshelman did opine: > --- On Sat, 5/11/13, Gene Heskett wrote: > > Does anyone make a decent 4 jaw, about 5" in diameter that > > will fit the > > spindle flange of a mini-lathe for < $250? > > Most of the chuck peddlers on > > the net don't brag about what

Re: [Emc-users] Question on stopping a 1HP treadmill motor

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 08:48:00 Cecil Thomas did opine: > Gene, > My 10EE uses a couple of feet of nichrome coil like you used to see > in oven elements and toasters. It stops a 3 hp dc motor about 18 > inches in diameter Probably about 50 pounds of armature plus another > 100 pounds of pulleys, s

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Kent A. Reed
On 5/12/2013 3:39 AM, Lars Andersson wrote: > On 5/11/2013 3:52 PM, Andrew wrote: >> An IO pin can be connected unless there’s an OUT pin on the signal >> >> An OUT pin can be connected only if there are no other OUT or IO pins on >> the signal" >> >> >> Regards, >> Kent > Yes, > I have read that t

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
> On 05/11/2013 02:19 PM, Lars Andersson wrote: >> Hi group, >> Trying to control servo P I and D at runtime with potentiometers to >> practise loop optimising. >> >> The statement >> net P0 input.0.abs-rx-position ==> pid.0.Pgain >> >> gives me >> servo2.hal:35: Signal 'P0' can not add I/O pin '

Re: [Emc-users] DIY G-Code

2013-05-12 Thread John Thornton
That would be in the User Manual. JT On 5/12/2013 5:47 AM, Peter Blodow wrote: > Hello John, > thanks for your link to the gnipsel site. I'l have to dive into that > when I have the time to. What I have been looking for, but never found > was a concise reference table of all G-, M- and other code

Re: [Emc-users] DIY G-Code

2013-05-12 Thread John Thornton
To use a Tapmatic head you just need to calculate the feed rate based on rpm and pitch. They are self reversing so you feed down then feed up without stopping the spindle. Even if you stop the feed the tap will stop turning at some point then when you reverse the Z the tap will reverse directio

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
> >> 2013/5/12 Viesturs Lācis >> >>> Could You, please, explain, how does it solve the problem? OUT pin cannot >>> be connected to IO pin. That solution proposes inserting "passthru" >>> component in the middle, so initial OUT is linked to passthru.in and >>> initial IO is connected to passthr

Re: [Emc-users] DIY G-Code

2013-05-12 Thread Peter Blodow
Hello John, thanks for your link to the gnipsel site. I'l have to dive into that when I have the time to. What I have been looking for, but never found was a concise reference table of all G-, M- and other codes, sorted by number, containing, one per line of the table, the code number, a short

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
> 2013/5/12 Viesturs Lācis > >> Could You, please, explain, how does it solve the problem? OUT pin cannot >> be connected to IO pin. That solution proposes inserting "passthru" >> component in the middle, so initial OUT is linked to passthru.in and >> initial IO is connected to passthrough.out w

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Andrew
2013/5/12 Viesturs Lācis > Could You, please, explain, how does it solve the problem? OUT pin cannot > be connected to IO pin. That solution proposes inserting "passthru" > component in the middle, so initial OUT is linked to passthru.in and > initial IO is connected to passthrough.out which is "

Re: [Emc-users] Mini Lathe chucks. Re: Question on stopping a 1HP treadmill motor

2013-05-12 Thread Steve Blackmore
On Sat, 11 May 2013 23:09:38 -0700 (PDT), you wrote: >--- On Sat, 5/11/13, Gene Heskett wrote: > >> Does anyone make a decent 4 jaw, about 5" in diameter that >> will fit the >> spindle flange of a mini-lathe  for < $250?  >> Most of the chuck peddlers on >> the net don't brag about what machin

Re: [Emc-users] Correct use of subroutines

2013-05-12 Thread Steve Blackmore
On Sat, 11 May 2013 21:40:55 -0700 (PDT), you wrote: > Re: Correct use of subroutines >  >My old school answer is that most subs should be written in (G91) Incremental >mode. >  >My more modern method can be either G90 or G91 depending on the application >but I use variables for D, F, Z and loop

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
On 5/11/2013 3:52 PM, Andrew wrote: > An IO pin can be connected unless there’s an OUT pin on the signal > > An OUT pin can be connected only if there are no other OUT or IO pins on > the signal" > > > Regards, > Kent Yes, I have read that too. I fail to understand what is the meaning of an IO pi

[Emc-users] Question on stopping a 1HP treadmill motor

2013-05-12 Thread Roland Jollivet
Just remembered, that the first time I tried that on the Maximat, it worked too well, and the chuck came spinning off !! If it's a threaded spindle nose, you have to be very careful of this. At least close the chuck during testing. Regards Roland On 12 May 2013 07:34, Cecil Thomas wrote: > Ge