Work with probe

More
11 years 5 months ago #58776 by elf
Replied by elf on topic Work with probe
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.

A minor issue is xplus.ngc and yplus.ngc contain Z axis moves. I think these should be moved to the python code.
The following user(s) said Thank You: verser

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago - 11 years 5 months ago #58779 by verser
Replied by verser on topic Work with probe

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 :)
Last edit: 11 years 5 months ago by verser.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago - 11 years 5 months ago #58798 by verser
Replied by verser on topic Work with probe

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.

I did this correction, and more .. :)
Last edit: 11 years 5 months ago by verser.
The following user(s) said Thank You: balestrino

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #59662 by speedracer
Replied by speedracer on topic Work with probe
this is awesome. Well done and thank you for developing this.. Ill give it a shot tonight and let you know how it goes..

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #59788 by lerman
Replied by lerman on topic Work with probe
I'm having trouble understanding the directions.

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
Last edit: 11 years 4 months ago by lerman. Reason: left out a word

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #59791 by elf
Replied by elf on topic Work with probe
Make the 'macros', 'python', 'subroutines' folders under 'configs'/<name of your machine>
The following user(s) said Thank You: lerman, verser, gizmo6023

Please Log in or Create an account to join the conversation.

Time to create page: 3.523 seconds
Powered by Kunena Forum