Work with probe

More
10 years 4 months ago #75451 by okiejim
Replied by okiejim on topic Work with probe
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.

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

More
10 years 4 months ago - 10 years 4 months ago #75462 by Wirewrap
Replied by Wirewrap on topic Work with probe
How do I display variables used by the probe screen while running the probe screen?

EDIT:
I just found them, they are HAL pins.
Last edit: 10 years 4 months ago by Wirewrap. Reason: I found out!

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

More
10 years 4 months ago #75472 by csbrady
Replied by csbrady on topic Work with probe
I wonder if the erratic behavior is related to the problem I ran into where calls return before the function is complete. At the time I seemed to be the only one running into the problem.

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()
The following user(s) said Thank You: verser

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

More
10 years 4 months ago #75475 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Work with probe

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
The following user(s) said Thank You: verser

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

More
10 years 4 months ago - 10 years 4 months ago #75526 by Wirewrap
Replied by Wirewrap on topic Work with probe
Seems like the probe screen works as expected until there is an error message printed when using the "hole" routine.
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.
Last edit: 10 years 4 months ago by Wirewrap. Reason: Spell check.

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

  • auto-mation-assist
  • Offline
  • Platinum Member
  • Platinum Member
More
10 years 1 week ago - 10 years 1 week ago #81932 by auto-mation-assist
Replied by auto-mation-assist on topic Work with probe
Ken, I have been looking at your "safe_probe_init" file for several days but have not been able to get it interfaced to try it out. Can you provide some notes on what needs to be done to implement your code and get it working? Also are there any updates to your code since you posted it? I'm using the gnoccapy screen on linuxcnc 2.8 pre. Can this configuration use your single file that has multiple subroutines inside of it that are accessed via the required symlinks?
Last edit: 10 years 1 week ago by auto-mation-assist.

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

Time to create page: 0.619 seconds
Powered by Kunena Forum