When I've had problems like that, I've simply made a subroutine with the
switches as arguments. Then I call the subroutine from MID with the proper
arguments.

Alternatively,  make a separate subroutine for each setup so you won't have
to enter the arguments with each MDI call.

Ken

On Wed, Jun 27, 2018, 14:06 Gene Heskett <[email protected]> wrote:

> On Wednesday 27 June 2018 05:32:27 andy pugh wrote:
>
> > On 27 June 2018 at 04:02, Gene Heskett <[email protected]> wrote:
> > > As long as I had the i/o pins, available, it makes sense that in
> > > mounting the tool or the part, if I could just flip a switch to
> > > enable the drilling for the grub screws, or another to enable the
> > > tapping of the holes just drilled
> >
> > I don't think that there is any point going through hardware for this.
> > A G-code file can read HAL values from a PyVCP or GladeVCP panel and
> > react accordingly (the values are only valid at program start, but
> > that's fine here).
>
> That means expanding an already too darned big pyvcp panel to make the
> buttons. And I already have plans to add an overshoot tally in spindle
> turns at the point of the reversal at the bottom of a peck stroke while
> rigid tapping. That will use up 1/2" of additional space thats already
> being overwritten by prompt or error msgs. Its also more coding than the
> hardware approach. I have that working well on the lathe, but it only
> has one spindle encoder scale, whereas I have to scale for the backgear
> in use on the mill where this would also be used. The question is, which
> is more important information wise.
>
> I also need to find an ammeter to put in series with the spindle motor so
> I can more easily determine when its time to put it in low gear as I'm
> getting too close to its torque ability in high gear.  Needs to have a
> fs reading of perhaps 20 amps. But that is another "nice to have"
> item. :) Analog of course, digital's won't catch the peaks.
>
> Thanks Andy. I may be back to carving xml code yet.
>
> --
> Cheers, Gene Heskett
> --
> "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>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to