- Posts: 32
- Thank you received: 14
Work with probe
- elf
- Offline
- Junior Member
-
The home position on my machine is in the center for all three axes so when the circle is centered on the home position, I'm getting wildly different results. When I move the circle to +X and +Y, the code works as expected.
A minor issue is xplus.ngc and yplus.ngc contain Z axis moves. I think these should be moved to the python code.
Please Log in or Create an account to join the conversation.
- verser
- Offline
- Senior Member
-
- Posts: 78
- Thank you received: 69
elf wrote: The updated code fixes the double move bug. There is another bug in the python code where the program assumes both probed positions have the same sign [line 1028: cxres=0.5*(xres+xres1)] Note: the docs don't say if the probed_position is relative or absolute: linuxcnc.org/docs/html/common/python-interface.html
The home position on my machine is in the center for all three axes so when the circle is centered on the home position, I'm getting wildly different results. When I move the circle to +X and +Y, the code works as expected.
Screenshot in the header of this topic by the way shows the result of measurement of hole. We see that true equality "Xc"=0.5*("X+" + "X-"). In Probe Screen application probed_position matches with absolute coordinates . I do not quite understand why it is wrong.
elf wrote: A minor issue is xplus.ngc and yplus.ngc contain Z axis moves. I think these should be moved to the python code.
Now I think so too
Please Log in or Create an account to join the conversation.
- verser
- Offline
- Senior Member
-
- Posts: 78
- Thank you received: 69
I did this correction, and more ..elf wrote: A minor issue is xplus.ngc and yplus.ngc contain Z axis moves. I think these should be moved to the python code.
Please Log in or Create an account to join the conversation.
- speedracer
- Offline
- New Member
-
- Posts: 1
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- lerman
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 5
The README.md says:
...
2. The following files from the archive are placed in:
your-folder-configuration/python
```sh
probe_screen.py
```
your-folder-configuration/your_subroutine_path
```sh
all from folder "macros"
```
your-folder-configuration/probe_icons
```sh
all from folder "probe_icons"
```
I've installed linuxcnc in:
/usr/share/linuxcnc/...
My home directory:
/home/lerman contains:
linuxcnc/
configs
nc_files
PROJECT1
outline.ngc
center.ngc
In this case, what is "your-folder-configuration"?
=========
I think that this is just what I need to use with my new probe.
Thanks,
Ken
---
Kenneth Lerman
Please Log in or Create an account to join the conversation.
- elf
- Offline
- Junior Member
-
- Posts: 32
- Thank you received: 14
Please Log in or Create an account to join the conversation.