rng3 pravi: > G28 is a complex move by itself. > If you just want to send Z somewhere first and then XY somewhere after that > on version 2.5.0~pre I use... > > o<gohome> sub > G53 G0 Z0 > G53 G0 X0Y0 > o<gohome> endsub > M2 > > I have used this in a file and as a MDI command o<gohome> call > > Rick G > Very interesting.. I use 2.5.0~pre too. And <gohome> works as should work.
But the <hcenter> still doesn't work if called from MDI (work ok if called from main program) Something is still wrong in MDI and o<>call o<h Center> sub F200 ;set feedrate for probe G30.1 ;Save current coordinate G38.3 Y290 ;Scan +Y limit #100 = #5062 ;Save +Y limit G30 ;Back to start cordinate G38.3 Y0 ;Scan -Y limit G0Y[[#5062+#100]/2] ;goto aprox Y center G30.1 ;Save current coordinate G38.3 X257 ;Scan +X limit #101 = #5061 ;Save +X limit G30 ;Back to start cordinate G38.3 X0 ;Scan -X limit G0X[[#5061+#101]/2] ;goto exact X center #101= [#101-#5061] ;calculate span X G30.1 ;Save current coordinate G38.3 Y290 ;Scan +Y limit #100 = #5062 ;Save +Y limit G30 ;Back to start cordinate G38.3 Y0 ;Scan -Y limit G0Y[[#5062+#100]/2] ;goto exact Y center #100= [#100-#5062] ;calculate span Y #102=[#100-#101] ;excentricy #100=[[#100+#101]/2] ;XY diameter (debug, Diameter+probe=#100, excentricy=#102) o<h Center> endsub m02 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
