Answering my own question (and raising another): When I took out the return (with a value of zero), I stopped getting the error message.
The issue it raises is how do I write a routine that can be used by other routines (and have a return value) and also be used from MDI. Of course an answer that avoids this problem is to use a global variable for the return code. Ken On Fri, Jun 19, 2015 at 2:18 PM, Kenneth Lerman <[email protected]> wrote: > "Unknown word starting with e" -- displayed from Axis. > > I get it when I run my probing program using MDI. Why would the system > tell me the first letter and not the other letters? My code doesn't seem to > have an "E-words". > > There doesn't seem to be any information about what system component is > generating the message. > > Here is some of the code: > ================== > > (debug, probe: set the feed) > > (now back to start point -- probing should fail) > > F#<_safe_probe_search_feed> > > !!! we get the following debug message > > (debug, probe: go back to the start point) > > ;G4 P1 > > G38.3 X#<xinit> Y#<yinit> Z#<zinit> > > !!! we don't get this message > > (debug, probe: should be at start point) > > > (if we made contact, this is an error) > > o<testFail3>if [#5070 EQ 1] > > (debug, probe failed-3) > > o<safe_probe_xyz> return [#<fail>] > > o<testFail3> endif > > > (the following line just sets the mode without a move) > > G1 X#<xinit> Y#<yinit> Z#<zinit> > > > (debug, probe: OK) > > > return [#<succeed>] > > > o<safe_probe_xyz> endsub > > ================= > > The MDI command that is failing is: > > call safe_probe_xyz [0.75] > > Interestingly, the G38.3 that is before the failure seems to work -- in > the sense that the probe winds up back at its target position (without > having made contact). > > The subroutine return value (the value of #<succeed>) is zero. -- although > I don't know of a way to examine it from the MDI. > > Thanks for looking at this. > > > Regards, > > > Ken > > > > -- > Kenneth Lerman > 55 Main Street > Newtown, CT 06470 > > -- Kenneth Lerman 55 Main Street Newtown, CT 06470 ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
