Hello Guest it is April 30, 2024, 04:15:12 AM

Author Topic: Mach 4 question  (Read 4048 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach 4 question
« Reply #20 on: August 28, 2021, 12:58:35 AM »
Hi craig.

Thank you for the long sentence.
I found "Motion plugin probing procedure."
I want to be able to understand.


I also didn't get good results when I tried to simulate "TOUCH" using a manual switch.
I've had success from time to time, so I got the point.
It was successful by pressing and holding the switch.

However,
I don't think this issue is due to a manual switch.
Because, if you look at the behavior of video.
https://www.youtube.com/watch?v=9LvV6iC3zmY
1, plobe descends.
2, plobe does not come into contact and stops temporarily at a certain position. (Video 3: 50 ~)
3, Next, it automatically contacts the front, back, left and right.

My situation
1, plobe descends.
2. It automatically descends to "Z measurement position" and mach4 stops. "ERROR: No contact with probe" is displayed.


In other words, I haven't turned on the manual switch, so I don't think the manual switch is the cause.


We would like to thank Mr. Craig for the MPG program.
I reduced the program for the X Y Z axis and attached an LED for the X Y Z axis so that I could see On Off.
Re: Mach 4 question
« Reply #21 on: August 28, 2021, 01:29:47 AM »
Hi,

Quote
In other words, I haven't turned on the manual switch, so I don't think the manual switch is the cause.

I think you may have found the problem.

As I posted earlier:
g31 z-5 f200      gets interpreted as:
g1 z-5 f200,       but would stop at a point where the probe makes contact, lets say z=-2.5mm. But what happens if the
probe DOES NOT make contact, then the machine will drive to z=-5mm WITHOUT a probe detection event and Mach will know
that the probe is faulty or for some other reason the surface was not detected and post a "ERROR: No contact with probe"
statement.

So the fault you are describing COULD be caused by a manual probe button NOT being activated (to simulate a natural probe event)
BEFORE Mach reaches it g31 endpoint.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 4 question
« Reply #22 on: August 28, 2021, 01:41:16 AM »
Thank you, Craig.

> So the fault you are describing COULD be caused by a manual probe button NOT being activated (to simulate a natural probe event)
BEFORE Mach reaches it g31 endpoint.


that's right.
If the manual switch is turned on before the Probe reaches the "Z measurement position", the probe will contact the front, back, left and right four times each.

But I can't find a solution.
Re: Mach 4 question
« Reply #23 on: August 28, 2021, 02:12:20 AM »
Hi,
if the controller does NOT detect a probe event BEFORE it gets to the g31 endpoint, its a fault.....end of story.
I'm not quite sure what you would expect.

Essentially what you are saying when you execute a g31 block like g31 z-5 f200 is 'advance to z=-5mm but expect to stop
before you get there', if you don't get the signal to stop, ie a probe event what do you want Mach to do? It did not detect the surface
it expected to find......thats a fault isn't it?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 4 question
« Reply #24 on: August 28, 2021, 02:36:19 AM »
Looking at the video, the probe goes down and pauses at "Z measurement position",
Next, it looks like the probe is moving back and forth and left and right.

However, in my case, it is stopped at "Z measurement position".
I just don't know the cause. I am troubled.
If you know any solution, please let me know.
Re: Mach 4 question
« Reply #25 on: August 28, 2021, 02:50:00 AM »
Isn't the cause that the real XY axis motor is connected to the BOB?
Re: Mach 4 question
« Reply #26 on: August 28, 2021, 03:13:03 AM »
Hi,
you are using the Probing module, the fault could be in the code, or it could be your probe simulation set-up, or it could
be a machine fault.

Why don't you try writing some MDI code to test the g31 cycle, your machine and simulation procedure?
Once you have proven all those to your satisfaction THEN try running the module code. Note tat the Lua source code is
freely published for you to inspect, read, edit as you wish.

Mach4Hobby/Modules/mcProbing.mcs

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 4 question
« Reply #27 on: August 28, 2021, 03:52:25 AM »
I used MDI.
g31 z-5 f200

Then
ESS: failure! Probe0 never hit or the allowed distance was traveled. Swiiiitching from

It looks like this, is the motor tab setting wrong?
I attached a photo.
I set the motor with Stepping Motor Cont Per uint400 pulse / rev.
Re: Mach 4 question
« Reply #28 on: August 28, 2021, 03:55:59 AM »
excuse me.
Below is the History.

ESS: failure! Probe0 never hit or the allowed distance was traveled.
Switching from probing to normal state.
Re: Mach 4 question
« Reply #29 on: August 28, 2021, 04:07:20 AM »
Hi,
No, the problem is that the probe event is not happening before the g31 block hits its end point.

There is (probably) no fault of the motor, no fault (probably) of the mcProbing module code, it's operator error,
you are not activating the probe button before the g31 finishes.

As an experiment try:
g31 z-5 f10
If the probe starts a z=0 it will take 30 seconds before the Z axis descends to z=-5mm and should give you plenty of time to hit the button
before the window of opportunity finishes.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'