- Posts: 60
- Thank you received: 0
Work with probe
My first use of the probe screen would be to locate hole centers for reworking.
The screen appears, it looks OK, values can be set and buttons can be clicked.
What happens is that the application seems to not use my parameter entries. When I click a function key the probe retracts about 10
mm, goes down about 10 mm, goes forward about 5 mm and stops with one of these errors regardless of parameter values
17:35:07 Error: G38.2 move finished without making contact.
or
17:34:01 Error: User probe error
I even tried to set all parameters to "0" to see if there was any different response. Always back 10, down 10 forward 5, stop.
The direction is the expected one, Search X+ and it backs up to the left.
How can I diagnose and debug this?
Please Log in to join the conversation.
Here is a list of variables that can be found in the files macros/*.ngc and python/probe_screen.pyWirewrap wrote: How can I diagnose and debug this?
Attachment not found
Please Log in to join the conversation.
probe does not have time to move up when it moves to the side and then says probe already tripped or something like that. I have been keeping the parameters at the default because I really don't know that they really do yet. When I figure this out I will post my fix. Thank you so much for this creation and fun thing to explore.
Please Log in to join the conversation.
EDIT:
I just found them, they are HAL pins.
Please Log in to join the conversation.
The following change to probe_screen.py fixed my problems:
Orig:
def ocode(self,s, data = None):
self.command.mdi(s)
self.stat.poll()
while self.stat.exec_state == 7 or self.stat.exec_state == 3 :
if self.error_poll() == -1:
return -1
self.command.wait_complete()
self.stat.poll()
self.command.wait_complete()
New:
def ocode(self,s, data = None):
self.command.mdi(s)
self.stat.poll()
while self.stat.interp_state <> linuxcnc.INTERP_IDLE :
if self.error_poll() == -1:
return -1
time.sleep(0.1)
self.command.wait_complete()
self.stat.poll()
self.command.wait_complete()
Please Log in to join the conversation.
- LearningLinuxCNC
- Offline
- Elite Member
-
- Posts: 208
- Thank you received: 0
okiejim wrote: I have the same issue. Being new to this package I am sure it is what I am doing wrong. It seems very erratic. Seems like the
probe does not have time to move up when it moves to the side and then says probe already tripped or something like that. I have been keeping the parameters at the default because I really don't know that they really do yet. When I figure this out I will post my fix. Thank you so much for this creation and fun thing to explore.
Sounds like you possibly have the probe connected incorrectly in HAL. If you open halmeter and look at the pin motion.probe-input it should be false unless the probe is tripped. It sounds like motion.probe-input is true unless the probe is tripped.
If that is not it then you may have to add a debounce component between the original input pin for the probe and the motion.probe-input pin to take any electrical or mechanical noise out of the probe signal.
Jim
Please Log in to join the conversation.
After that error, no parameters can be changed, the input box in the panel changes, but the corresponding ps_ variable does not change as seen in the Halconfiguration watch window.
Please Log in to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
- Posts: 425
- Thank you received: 0
Please Log in to join the conversation.
Sorry about that.
Ken
Thinking about it some more...
1 -- Do you have a working probe? If not, get your probe working first.
Please Log in to join the conversation.
have you a working probe connected to Probe-in in your Hal config
what exactly are you having problems with ?
message me and i'll try and guide you through any setup
Please Log in to join the conversation.
