- Posts: 38
- Thank you received: 15
Work with probe
- mwidlok
- Offline
- Junior Member
-
Less
More
3 years 3 months ago #276527
by mwidlok
Replied by mwidlok on topic Work with probe
I'm working with probe_screen with glade 3.40 from the start, without problems. I needed just to set "Image resources..." to "From the project directory" under project properties. Also glade needs access to linuxcnc stuff so in my case (linuxcnc installed as run-in-place) it means:
- go to the "psng" folder with probe_screen.glade and icons folder
- start glade with "rip-environment glade probe_screen.glade"
Originally glade complained about tons of deprecated widgets, now most of them are updated (only "GtkAction" left).
GtkHbox is deprecated, use GtkBox and set it's orientation to horizontal. This is already done in the updated glade file.
General question:
I've seen quite a lot of code in probe_screen.py to convert metric/imperial units (I also don't know why it is so complicated). Can someone explain (high level is ok) how it works?
- go to the "psng" folder with probe_screen.glade and icons folder
- start glade with "rip-environment glade probe_screen.glade"
Originally glade complained about tons of deprecated widgets, now most of them are updated (only "GtkAction" left).
GtkHbox is deprecated, use GtkBox and set it's orientation to horizontal. This is already done in the updated glade file.
General question:
I've seen quite a lot of code in probe_screen.py to convert metric/imperial units (I also don't know why it is so complicated). Can someone explain (high level is ok) how it works?
Please Log in or Create an account to join the conversation.
- lrak
- Offline
- Premium Member
-
Less
More
- Posts: 114
- Thank you received: 22
3 years 3 months ago #276603
by lrak
Replied by lrak on topic Work with probe
I'm no Python programmer, but I looked at the code - (25.4 appears many times). It seems to me that the defaults and what is stored in probe_screen.pref should always be in mm and then it should be simple to take it as a list and scale it to machine units when read or written. (Google List comprehensions python). Anything else could be scaled with a function based on G21/G20 status.
,.,
I got have it working with a printed probe - lrak.net/uploads/center-probe.mp4
Not sure what ERR pin processing means?
A couple of notes:
- The top 4 settings icons might be better as text? (or at least we could add hover text)
- It disables my pendent (I-mach P2-S) until I use the axis manual motion (F3 does not fix it)
- If there is a machine motion error - it probably should stop.
- Seems like touch probes shouldn't be threaded - they need a tiny collet instead..
,.,
I got have it working with a printed probe - lrak.net/uploads/center-probe.mp4
Not sure what ERR pin processing means?
A couple of notes:
- The top 4 settings icons might be better as text? (or at least we could add hover text)
- It disables my pendent (I-mach P2-S) until I use the axis manual motion (F3 does not fix it)
- If there is a machine motion error - it probably should stop.
- Seems like touch probes shouldn't be threaded - they need a tiny collet instead..
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- mwidlok
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 15
3 years 3 months ago #276699
by mwidlok
Replied by mwidlok on topic Work with probe
I'm waiting now for a Chinese probe (~40EUR with shipping, not sure how good/bad it will be). I've tried also to build my own version (render attached) that worked, but accuracy of 3d printers that I used was rather poor. I also had problems with finding springs and tuning it on the machine.
I don't know about which icons You are talking, and also I know nothing about the ERR pin. I've just updated the code for newer python/gtk - it is very likely that You know much more about probing and this program then me
. Anyway I would like to slowly learn more and possibly upgrade probe_screen. This might be nice since there are some more panels that I would like to use (lathe macros for example) and it would be nice to be able to tune them for my needs.
I will check the motion error more - in my case Estop/limit sw instantly stops movement, so I assume it is ok. I don't understand "pendent" problem form note 2 - could You please explain?
I don't know about which icons You are talking, and also I know nothing about the ERR pin. I've just updated the code for newer python/gtk - it is very likely that You know much more about probing and this program then me
I will check the motion error more - in my case Estop/limit sw instantly stops movement, so I assume it is ok. I don't understand "pendent" problem form note 2 - could You please explain?
Please Log in or Create an account to join the conversation.
- jcdammeyer
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 8
3 years 2 months ago - 3 years 2 months ago #276929
by jcdammeyer
Replied by jcdammeyer on topic Work with probe
My replacement probe arrived today along with a gift of a "VERS CM" from Verser. I did already have something wired up point to point on a proto board in a 3D printed box. This is way nicer so first of all thank you.
I've been using my fabricated Z touch probe and LED indicated edge detector along with my Shumatech DRO for determining edges and center position of the raw material. Once I got the feeds and speeds under control the second mount plate came out much better. No more high speed movement in the probe direction.
So far I've been using the modified tool change code and only the Z touch off button on the PSNG screen. The m6remap.ngc code uses the tool length in the tool table if it's non-zero or goes to the tool setter sensor to measure the tool if length is 0.
For example in the above photo I used a 0.125" 2 flute cutter for the slots, a center drill to create the hole positions, a 0.25" 2 flute cutter for the large holes and finally a 1/4" drill chuck with a 4.5mm drill for the holes. The center drill and 4.5mm holes were done first. Then the large hole. Finally the slots. Once I reduced the feed to 5 IPM instead of 14 IPM the slots turned out much better. The 4.5mm drill was probed with the tool setter each time. The others used the tool table so no probing. Nice!
An error in my drawing has the slots 1mm too close to one edge so I have to make new ones. Which is great because now I can use the replacement probe.
So why am I talking about all this? Well the checkbox for REMAP M6 doesn't really do anything anymore. So I've been looking into modifying the code so when checked a tool change will not only take the tool to the tool setter but will also install the length of the tool into the tool table. I'll rename it to be Measure Tool with M6.
I'm thinking the Button underneath the title should do "Measure Tool" with the tool number in the field that currently has the label TS Height. Or maybe leave that as Tool Setter Height value when tripped and add a box for tool #. The Work Piece height can just be the same as the other touch off button with the text filled with Machine Coordinate distance from 0.
I can't use the probe to determine the tool setter height since the probe trips before the tool setter does. Different spring strength.
Anyway. Enough of a ramble. More when I have something to show and the m6remap.ngc code is complete. Still all in the development state at the moment but at least it's usable.
I've been using my fabricated Z touch probe and LED indicated edge detector along with my Shumatech DRO for determining edges and center position of the raw material. Once I got the feeds and speeds under control the second mount plate came out much better. No more high speed movement in the probe direction.
So far I've been using the modified tool change code and only the Z touch off button on the PSNG screen. The m6remap.ngc code uses the tool length in the tool table if it's non-zero or goes to the tool setter sensor to measure the tool if length is 0.
For example in the above photo I used a 0.125" 2 flute cutter for the slots, a center drill to create the hole positions, a 0.25" 2 flute cutter for the large holes and finally a 1/4" drill chuck with a 4.5mm drill for the holes. The center drill and 4.5mm holes were done first. Then the large hole. Finally the slots. Once I reduced the feed to 5 IPM instead of 14 IPM the slots turned out much better. The 4.5mm drill was probed with the tool setter each time. The others used the tool table so no probing. Nice!
An error in my drawing has the slots 1mm too close to one edge so I have to make new ones. Which is great because now I can use the replacement probe.
So why am I talking about all this? Well the checkbox for REMAP M6 doesn't really do anything anymore. So I've been looking into modifying the code so when checked a tool change will not only take the tool to the tool setter but will also install the length of the tool into the tool table. I'll rename it to be Measure Tool with M6.
I'm thinking the Button underneath the title should do "Measure Tool" with the tool number in the field that currently has the label TS Height. Or maybe leave that as Tool Setter Height value when tripped and add a box for tool #. The Work Piece height can just be the same as the other touch off button with the text filled with Machine Coordinate distance from 0.
I can't use the probe to determine the tool setter height since the probe trips before the tool setter does. Different spring strength.
Anyway. Enough of a ramble. More when I have something to show and the m6remap.ngc code is complete. Still all in the development state at the moment but at least it's usable.
Last edit: 3 years 2 months ago by jcdammeyer.
Please Log in or Create an account to join the conversation.
- JohnnyCNC
- Offline
- Platinum Member
-
Less
More
- Posts: 572
- Thank you received: 115
3 years 2 months ago #276936
by JohnnyCNC
Replied by JohnnyCNC on topic Work with probe
I have a Shumatech DRO's on my lathe and mill. That was a fun project back in the day.
I use the following code to measure my tool setter trip height. I touch off the nose of the spindle on the tool setter. My m6remap uses the G59.3 location to measure the variable length tools.
%
(measure_toolsetter_inch v1.2)
G20 (Switch to Inch units)
M5 (Turn spindle off)
M61 Q99 (Select tool 99 so probe will work)
G49 (Cancel tool length offset)
G59.3 (switch to G59.3 coordinate system)
G91 (Incremental mode)
G38.2 Z-.25 F1 (Measure fine)
G10 L20 P9 Z0 (Set Coordinate System)
G0 Z1 (Move Z up 1 inch)
G54 (Switch to G54 coordinate system)
G90 (Switch to absolute mode)
M2
%
I use the following code to measure my tool setter trip height. I touch off the nose of the spindle on the tool setter. My m6remap uses the G59.3 location to measure the variable length tools.
%
(measure_toolsetter_inch v1.2)
G20 (Switch to Inch units)
M5 (Turn spindle off)
M61 Q99 (Select tool 99 so probe will work)
G49 (Cancel tool length offset)
G59.3 (switch to G59.3 coordinate system)
G91 (Incremental mode)
G38.2 Z-.25 F1 (Measure fine)
G10 L20 P9 Z0 (Set Coordinate System)
G0 Z1 (Move Z up 1 inch)
G54 (Switch to G54 coordinate system)
G90 (Switch to absolute mode)
M2
%
Please Log in or Create an account to join the conversation.
- jcdammeyer
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 8
3 years 2 months ago #276947
by jcdammeyer
Replied by jcdammeyer on topic Work with probe
You run this as a separate G-Code program to measure the tool setter height off the table? Or have you linked this in from one of the buttons on the PSNG screen?
Please Log in or Create an account to join the conversation.
Time to create page: 3.635 seconds