Hello Guest it is March 29, 2024, 06:29:12 AM

Author Topic: Can Mach4 G10 L2 P0 R automatic angle compensation?  (Read 1494 times)

0 Members and 1 Guest are viewing this topic.

Can Mach4 G10 L2 P0 R automatic angle compensation?
« on: December 31, 2018, 06:05:25 AM »
Found a Youtube video, where a guy with Linux CNC just flipp a Part, programmed automated probing in his Gcode and set not only the zero also the Angle of the Workpiece with G10.

Code: [Select]
#1111 = [[#1021+#1031]/2 - [#1051+#1061]/2] ; dx
#1112 = [[#1022+#1032]/2 - [#1052+#1062]/2] ; dy
#1113 = [ATAN[-#1111]/[#1112]]       ; dr
#1114 = #[5210+20*#5220]            ; current r
G10 L2 P0 R[#1113+#1114]

Seems this "R" is Linux CNC specific and can not be done with Mach4?
As I understood, Mach 4 can only set the work zero after automated probing and can not compensate an angle?


At least it is not listed in machs G-Code reference?
https://machmotion.com/documentation/Software/Mach4/Mach4-G-and-M-Code-Reference-Manual.pdf

Re: Can Mach4 G10 L2 P0 R automatic angle compensation?
« Reply #1 on: December 31, 2018, 06:38:30 AM »
Hi,
that link is to Mach Motion which is  a private company that uses Mach software but is not the owner or developer of it....that is
New Fangled Solutions, NFS. Also that link is 2-1/2 years old, in Mach4 terms it old hat.

Since that time a new probing module has been released and it will do as you want and so much more.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can Mach4 G10 L2 P0 R automatic angle compensation?
« Reply #2 on: December 31, 2018, 12:53:41 PM »
Thank you Joeaverage.
Any idea where to find an up to date and official Mach4 Gcode documentation?


Most google Links to offilical Mach ressources are broken, and search does not work here...
Where to find this probing screen, mine looks completely different.
It can measure Angles, but not compensate it in G-code?
Re: Can Mach4 G10 L2 P0 R automatic angle compensation?
« Reply #3 on: December 31, 2018, 01:04:50 PM »
For all who might find this Thread - this seems the official document for Mach4 GCode:
https://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Mill%20GCode%20Manual.pdf

It sais it does not?? support angled work coordinate systsems. right?
So it seems I spotted the one feature the LinuxCNC software has over mach4?
Re: Can Mach4 G10 L2 P0 R automatic angle compensation?
« Reply #4 on: December 31, 2018, 01:53:03 PM »
Hi,
that manual is a couple of years out of date so doesn't have anything about the Touch module.

It  has long been a complaint the Mach4 developments happen much faster than the documentation. You can moan and whinge that
the documentation should be up to date along with everybody else but it doesn't change anything. All these new modules and features come out
but the manuals don't reflect it.

Quote
It sais it does not?? support angled work coordinate systsems. right?
Wrong. If its just coordinate rotation you want then look at page 48 G68 and G69.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Can Mach4 G10 L2 P0 R automatic angle compensation?
« Reply #5 on: December 31, 2018, 04:46:56 PM »
Great, thank you for the Hint for G68 - this is exactly what I'm looking for.
With this you can flip the Part on a vacuum plate without trimming it in and doing everything automatic.
You also do not need to trim in the vice every time.