![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| |||
| |||
| It is a button that you can add VB code too... You can enter in code like this: Zmove = 1.5 'amount the tool will move down to hit the probe Zpos = GetDRO(2) Tool = GetDRO (24) ZOffset = .5 'enter height of probe here OldZpos = Zpos ZPos = Zpos - ZMove Code "G31 Z" & ZPos & " F20.0" While IsMoving() Wend Zpos = GetVar (2002) If Zpos = OldZpos - ZMove Then responce = MsgBox ("ERROR! The tool did not hit the probe and DRO was not set" , 4 , "Probe ERROR!" ) Else SetDRO (2,ZOffset) End If Code "G00 G53 Z-.1" This will set the Z to the right height over the part ![]() Thanks Brian |
|
#3
| |||
| |||
![]() Quick question..... When the Z axis comes down and the bit touches the plate (3mm Thick for instance), the Z axis then backs up a set distance, say 10mm You can then remove the plate and wire clip and press cycle start?? Does the VB code then add some sort of tool compensation so it knows that the Z axis is 13mm above the actual material??? TIA Andy |
|
#4
| ||||
| ||||
|
It resets the DRO to the correct Z height when it hit's the plate ( SetDRO (2,ZOffset)). Then when it moves up 10mm, it's just a normal 10mm Z move.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#5
| |||
| |||
Thanks Andy |
| Sponsored Links |
|
#6
| ||||
| ||||
| No, the origin (Z=0) is still the top of the workpiece. When Mach3 moves up 10mm, it knows it's 10mm above the work.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#7
| |||
| |||
| Is the 13mm you refer to the height of your touch probe? If so, it would appear that you would alter the previously posted VB code and update the touch probe height. Could someone post a reference to one of these electronic height probes? I have seen mechanical ones but not electrical ones that could be interfaced to a computer. I assume they have some mechanism for handling overshooting. The VB code looks like it probes at 20ipm and I know my setup would overshoot at that speed. |
|
#8
| |||||
| |||||
Hope this helps.
When the Z axis lowers and makes electrical contact, the VB code then does the rest. You need to assign the output to the digitiser probe....I think......... I will have a go at getting this working tomorrow.
![]() Andy Andy |
|
#9
| |||
| |||
| A potential problem with this approach may occur if the Mach debounce and G31 feed rate high enough that before Mach reports the contact as real the tool has over shot. The mechanical ones that I have seem allow for overshooting (basically they are a fancy dial indicator). The steel plate would not be as forgiving. When I use an electronic edge finder I change the debounce to a low value and feed very slowly (1ipm). It would be really slick to be able to feed down fast and measure the overshoot. Perhaps with an electronic dial indicator? Here is a DIY version of the mechanical height gauge. http://www.industrialhobbies.com/how..._gauge_pt1.htm |
|
#10
| |||
| |||
Andy |
| Sponsored Links |
|
#11
| ||||
| ||||
|
As you mentioned, you can set the feedrate in the VB script. It doesn't have to be 20. Set it low, and just jog down close before you run the Script.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#12
| |||
| |||
| Today I made up the touch plate, and wired this into Pin 15 on my breakout board, and the other wire to a earth on the breakout board. Finally I assigned the probe to this signal. Everything works fine when I touch the crocodile clip to the plate, I get a probe signal showing on the diagnostics screen in Mach3 Problem is when I actually clip the crodile clip onto the router bit, I get an intermittent signal flashing on the probe signal display I would guess the intermittent signal is flashing approx. twice every second. It is very random flashing signal. The router is powered off at the electrical socket. As soon as I unclip the wire from the router bit, the flashing signal stops??? I thought that it could be picking up noise from the Stepper motors, so I positioned the plate very near to the stepper motors with the clip off the router bit, and no flashing?? I tried altering the debounce setting, and it made it better, but I have to have a large value (2000+) before it is usuable. Its very odd, Anyone know why I am getting this. I have temporally altered the VB script so I now lower the router bit manually while watching the diagnostics screen, and when the probe signal is solid, I press the auto tool zero button. It then records the thickness of the touch plate, and then moves the Z axis back upto 15mm This works fine, but I would like to know why I get the flashing signal. TIA Andy |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |