- Posts: 31
- Thank you received: 0
Work with probe
- okiejim
- Offline
- Junior Member
-
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 or Create an account to join the conversation.
- Wirewrap
- Offline
- Senior Member
-
- Posts: 60
- Thank you received: 1
EDIT:
I just found them, they are HAL pins.
Please Log in or Create an account to join the conversation.
- csbrady
- Offline
- Senior Member
-
- Posts: 72
- Thank you received: 10
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 or Create an account to join the conversation.
- LearningLinuxCNC
- Offline
- Elite Member
-
- Posts: 226
- Thank you received: 39
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 or Create an account to join the conversation.
- Wirewrap
- Offline
- Senior Member
-
- Posts: 60
- Thank you received: 1
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 or Create an account to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
- Posts: 425
- Thank you received: 81
Please Log in or Create an account to join the conversation.