I would do that by creating a subroutine that set global variables with the
location.

If I wanted two different locations, I would:

o<set_locationA>call
or
o<set_locationB>call

o<set_locationA>sub
#<_probeX> = 2.0
#<_probeY> = 17.23
o<set_locationA>endsub

So that provides the values.

When probing, I wouldn't probe directly. I would use a probe subroutine.
The subroutine would then return the global values when in simulation mode
or use the probe if not in sim mode.

I don't know if the interp can tell if we are in sim mode. If not, add some
subroutines that can be called manually to start and end sim mode. They
would just set or clear another global variable.


Ken



On Sat, Sep 26, 2015 at 8:46 AM, Gene Heskett <[email protected]> wrote:

> Greetings all;
>
> In playing with some code I'll be using later today to carve some wood, I
> have a problem with running it on the simulator, no probe contacts
> available.
>
> How hard would it be to add a 4 (or more) axis lookup table reference to
> the G38.2 probing routine, so I could set the locations where a
> simulated probe contact could be made?
>
> IIRC it can open a file (probeopen filename.ext) for writing to record
> what its doing on a real machine, so how about a named file for reading
> that contains the contact points it would trigger on when simulating?
>
> The reason for the named file is so I can spec two different contact
> locations as I contact 2 inside faces and the bottom of 1/2 a brass cube
> for one tool, and just a piece of pcb to reset the tool length by
> diddling z in the g55 mapping the rest of this nearly 400 LOC file uses
> for the 2nd tool.
>
> That would be best handled by named files, one for each contact assembly
> on the jig.
>
> This would be handier than bottled beer for the simulator version IMO.
>
> Any chance?
>
> Thanks all.
>
> 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>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>



-- 
Kenneth Lerman
55 Main Street
Newtown, CT 06470
------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to