Still having problems with M code executing "axis-remote --reload".

Read this post:

http://www.linuxcnc.org/index.php/english/forum/10-advanced-configuration/24367-creating-a-qone-button-touch-offq-button?start=10#28660

Just updated to latest master and this still bugs me. I call this M code in
a probe routine to reload the gcode, and then perform a Z retract. Problem
is that code after the M155 call is not executed, and thus not the Z
retract. This is my probe sub:

; this is called from gladevcp MDI action with the following
; MDI command:
; O<probe> call [${pfeed-f}] [${dist}] [${probeplate}] [${z_safe-f}]

O<probe> sub

M73 (Save modal state)
G49 (cancel dynamic tool length offset)
G91 (relative mode)
F #1 (Set feed)
G38.3 Z #2 (Probe towards workpiece)


o100 if [#5070 EQ 1] (Probe sucessfull)
  (MSG, Probe successful!)
  G10 L20 P[#5220] z[#3] (Set Z touch off point coordinate)
  M155 (Reload file)
  G0 Z [#4] (Retract Z)
o100 else (Probe failed)
  G90 G53 G0 Z0 (Retract to safe Z)
  ;M66 P0 L0 ;Bogus read, need to have a "queuebuster" here to synch task
and interpreter
  G70 (quebuster synch)
  (abort, Probe failed!)
o100 endif

O<probe> endsub

And this is M155:

#!/bin/sh
axis-remote --reload
echo Hello
exit 0


Anyone know what is going on?

Best
Henrik
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to