Work with probe

More
01 Jun 2016 20:59 - 01 Jun 2016 21:00 #75309 by Wirewrap
Replied by Wirewrap on topic Work with probe
I installed this probe screen on Debian Wheezy with LinuxCNC 2.7.4. I have to the best of my ability followed the installation instructions in this thread.
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?
Last edit: 01 Jun 2016 21:00 by Wirewrap.

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

More
02 Jun 2016 04:40 - 02 Jun 2016 04:46 #75320 by verser
Replied by verser on topic Work with probe

How can I diagnose and debug this?

Here is a list of variables that can be found in the files macros/*.ngc and python/probe_screen.py
Attachments:
Last edit: 02 Jun 2016 04:46 by verser.

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

More
03 Jun 2016 17:44 #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
03 Jun 2016 19:36 - 03 Jun 2016 19:46 #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: 03 Jun 2016 19:46 by Wirewrap. Reason: I found out!

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

More
03 Jun 2016 23:03 #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
04 Jun 2016 01:06 #75475 by LearningLinuxCNC
Replied by LearningLinuxCNC 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.


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
05 Jun 2016 20:23 - 05 Jun 2016 20:24 #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: 05 Jun 2016 20:24 by Wirewrap. Reason: Spell check.

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

More
22 Oct 2016 01:49 - 22 Oct 2016 01:52 #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: 22 Oct 2016 01:52 by auto-mation-assist.

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

More
22 Oct 2016 12:12 - 22 Oct 2016 15:00 #81936 by lerman
Replied by lerman on topic Work with probe
It's been a long time since I looked at this code (or used it for that matter). I'm not familiar with gnoccapy, so I don't think I can help you.

Sorry about that.

Ken

Thinking about it some more...

1 -- Do you have a working probe? If not, get your probe working first.
Last edit: 22 Oct 2016 15:00 by lerman. Reason: Thought about it some more and maybe I can provide some help.

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

More
22 Oct 2016 17:28 #81937 by cncbasher
Replied by cncbasher on topic Work with probe
fairngs:
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 or Create an account to join the conversation.

Time to create page: 0.144 seconds
Powered by Kunena Forum