1
G-Code, CAD, and CAM discussions / 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.
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
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