Our machine model is MDX-540S.
The machine has a Z0 sensor and I can execute the routine from handy panel or Vpanel, but I want to know how to execute it from RML or G-code (like G38 in LinuxCNC or G31 in Mach).
My task is to measure the curvature of metal surface. Yes, it is possible to do it by hand with Z0 sensor and write down the coordinates on a paper, but I want to automate this process.
I want to write something like that:
Code: Select all
G0 Z1 G1 X0 Y0 F35 G?? Z-1 F5 (send probe command and stop at contact) #500=#5422 (save coordinate to local variable) .... #100=[#511+0.7*#500-0.7*#511] (use some interpolation to compensate curvature) G1 X0.5 Y0.5 Z[#100+-0.0760] (and send it to compensated Z coordinate)
Any help is welcome. Thank you!