Describe the fault of move more.


Do you use debouncing for probe signal?
https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/gladevcp/builtin
-panels/gtk_little_probe/README.md


-- 
Best Regards
Zdeněk Zdražil

---------- Původní e-mail ----------
Od: John Dammeyer <[email protected]>
Komu: 'Enhanced Machine Controller (EMC)' <[email protected]>
Datum: 7. 12. 2025 1:22:39
Předmět: Re: [Emc-users] Accessing python hal valriables.
"To add to this I can set the distance to 0.4" and then use the inner hole 
to find center. That works but again the distance is smaller. 
I've attached two small photos. Hopefully they come through. 
John 


> -----Original Message----- 
> From: John Dammeyer [mailto:[email protected]] 
> Sent: December 6, 2025 4:07 PM 
> To: 'Enhanced Machine Controller (EMC)' 
> Subject: Re: [Emc-users] Accessing python hal valriables. 
> 
> 
> 
> > -----Original Message----- 
> > From: Andy Pugh [mailto:[email protected]] 
> > Sent: December 6, 2025 1:35 PM 
> > To: Enhanced Machine Controller 
> > Cc: Enhanced Machine Controller 
> > Subject: Re: [Emc-users] Accessing python hal valriables. 
> > 
> > 
> > 
> > > On 6 Dec 2025, at 19:31, John Dammeyer <[email protected]> 
> > wrote: 
> > > 
> > > How do I access from workpiece_measurement.py the 
> > > variable: 
> > 
> > One way would be to create a HAL pin and set the value in that part of 
the 
> > code. 
> > But ?print? might be enough if you start LinuxCNC from the command line.

> > 
> > _______________________________________________ 
> 
> Thanks Andy, 
> I always have it starting from the command line so I can look at the 
output 
> for other issues. Here's the print statement I added to the python program

> 
> # move X + 2 edge_length + 2 xy_clearance 
> tmpx = 2 * (self.halcomp["ps_edge_length"] + 
> self.halcomp["ps_xy_clearance"]) 
> s = """G91 
> G1 X%f 
> G90""" % ( 
> tmpx 
> ) 
> print s 
> 
> Oddly it showed up on the console like this: 
> 
> G91 
> G1 X2.400000 
> G90 
> 
> And the probe only moved 3/4 of the way across the part then went down 
> and faulted due to touching the work before the move completed. It has to 
> have taken the G91 correctly or the X2.4 would be 2.4" across from the 
> rough center of the part. 
> 
> Yet if I jog back to that starting position and enter this into the MDI 
> command line 
> 
> G91 
> G1 X2.4 
> G90 
> 
> It moves all the way across the part to the position where it should go 
down. 
> 
> So the distance is correct and the machine is left in G91 mode when the 
> probe faults the move. 
> 
> Any ideas? 
> Thanks 
> John 
> 
> 
> 
> _______________________________________________ 
> Emc-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/emc-users 
_______________________________________________ 
Emc-users mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/emc-users 
"

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to