Not to throw a monkey wrench in at this point, but... Many commercial controls have a "minimum spindle speed" integer parameter. I seem to recall that it holds the analog output at "zero" until the S speed requested is above the minimum value, then it pops up (down?) to where it should be. I don't recall what it does in the case of simple M3/M4 outputs to a pair of contactors, maybe that would cycle on (fwd/rev) as usual?
Kim On 09/05/2011 05:08 PM, Chris Morley wrote: > > Ok I lied it was really easy. > Three line change > remove line 1761 in control.c > add > *(emcmot_hal_data->spindle_on)=1; > after 1500 in commands.c > and > *(emcmot_hal_data->spindle_on)=0; > after 1514 in commands.c > > try it out I did minimal MDI testing. > spindle on goes true and false as per m3,m4,m5 > regardless of what s is set at > > Chris M >> From: [email protected] >> To: [email protected] >> Date: Mon, 5 Sep 2011 21:52:30 +0000 >> Subject: Re: [Emc-users] M3/M4 and M5 >> >> >> >> The hal pins are changed in control.c >> lines 1761 for spindle on >> line 1762 for forward >> line 1763 for reverse >> HAL pin 'spindle on' is based on emc status of spindle speed * emc status >> net_spindle_scale >> In other words spindle is on if emc status spindle speed is not 0 - off if >> it is 0 >> Presumably M5 sets emc status spindle speed to 0 somewhere >> and presumably m3/m4 tells emc to transfer the gcode s speed to emc status >> spindle speed >> The m codes are not directly controlling the HAL pins >> So its alot more work to fix this then you hoped. >> Thats how I see it from a quick look - not that I'm any expert with the guts >> of EMC >> >>> From: [email protected] >>> Date: Mon, 5 Sep 2011 23:29:54 +0300 >>> To: [email protected] >>> Subject: Re: [Emc-users] M3/M4 and M5 >>> >>> 2011/9/5 andy pugh <[email protected]>: >>>> On 5 September 2011 21:08, Viesturs Lācis <[email protected]> wrote: >>>>> 2011/9/5 andy pugh <[email protected]>: >>>> >>>>>> Maybe 1499 of src/emc/motion/***command.c*** >>> >>> Damn!!! My apologies! >>> Thanks, I will take a look. >>> >>> Viesturs >>> ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
