Hello Guest it is May 25, 2020, 04:04:47 PM

Author Topic: Touch Plate Corner Finder  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Touch Plate Corner Finder
« on: August 20, 2018, 07:52:30 PM »
I've modified the TouchOff module to support corner touch plates that DON'T have the same thickness in all 3 axis's.

Instructions for install:
1.   Open C:\Mach4Hobby\Modules folder
2.   Rename file mcTouchOff.lua to mcTouchOff.lua.bak
3.   Copy replacement mcTouchOff.lua into this folder

This fix has been tested with MACH4 build 3804 – 3835 using a PoKEYS57CNC controller.  Make sure and test with any other builds or controllers. 

Setup Instructions:
1.   Touch Plate Height – This is the thickness of the touch plate in the Z axis
2.   Touch Plate X – This is the width of the touch plate off of the X axis.
3.   Touch Plate Y – This is the width of the touch plate off of the Y axis.
4.   XY Check below Z – This is the distance to move the tool below the material/touch plate for the X and X axis tests. (typically 2-3 millimeters (0.125 inches))
5.   Touch Plate Hole Diameter – This is the diameter of the hole in the touch plate typically at the corner of the material.  The tool will move inward enough to clear this hole when testing the Z axis.
6.   Remaining fields are set per ArtSoft instructions.  I recommend a “Prep Distance” greater than the “Retract Distance” for best results.

This modification only affects 3-point corner tests.  All other touch tests on this control function as ArtSoft designed.

Directions for finding material corner – Position tool over the corner of the material (with 2-3mm in the X and Y axis) and 5-10mm above the material.  Press the appropriate corner test button.

Let me know if you have any issues with it.
- Robert Beaubien
- Drone Plastics
“Dear Algebra, Please stop asking us to find your X.  She's never coming back and don't ask Y.”
Re: Touch Plate Corner Finder
« Reply #1 on: January 02, 2019, 03:31:34 PM »
This is a valuable fix-up to Mach 4. I will definitely use it.
As far as I can tell, this code requires offsets for X and Y to be identical to work on all four corners.
The typical edge finder can be used to work on all four corners.
Here's the problem:
If an edge finder uses three different surface offsets, for example, A, B, & Z  Interestingly enough, the top left corner and the bottom right corners use the same surfaces for X and Y, which is A and B respectively. However, the top right corner and the bottom left corner use surfaces X & Y as B and A respectively. 
Should the edge finder have three different offsets for X, Y, & Z , then the code needs to compensated for differences depending on the corner being probed.
Note Z doesn't change for any corner.

Does this code take in account for using all four corners of the work piece?
Re: Touch Plate Corner Finder
« Reply #2 on: March 16, 2020, 08:25:11 PM »
Thanks, don't know why Artsoft does not include this. :(