Hello,
a huge thanks to Orangecat for the script - I was looking forever for something like this.
I only have the problem that it doesn't behave within a .ngc-file like it does when I use it with only MDI.
Maybe someone has an idea, as I have tried everything and just can't get it right. It either mills in the air or rams into the workpiece...
So this is my procedure:
1. Insert the first tool of the job-file
2. Touch the tool of on top of the workpiece to set Z0
3. Load the job-ngc-file
4. Hit M600
5. Start the job-file
6. Within the job.file I have a M6 command so it ask to insert the tool (already inserted and touched off the workpiece)
7. The job-file M6 command triggers the touch off
8. Milling is correct
9. Next M6 command within the job-file
10. Z-height is wrong - either milling in the air or way below the original Z0
This is a file I used for example
Code:
%
(VOLLPLATINE)
(T1 D=1. CR=0. - ZMIN=-0.1 - SCHAFTFRSER)
(T17 D=1. CR=0. - ZMIN=-0.2 - SCHAFTFRSER)
N10 G90 G94 G17 G91.1
N15 G21
N20 G53 G0 Z0.
(2D-TASCHE1)
N25 M9
N30 T1 M6
N35 S42000 M3
N40 G54
N45 M9
N55 G0 X2.379 Y11.374
N60 G43 Z15. H1
N65 G0 Z5.
N70 G1 Z2.5 F150.
N75 Z0.
...
N235 X8.568 Y11.35 Z-0.05 I-0.076 J-0.065
N240 G1 X8.56 Y11.356 Z-0.026
N245 X8.558 Y11.358 Z0.
N250 G0 Z15.
N260 M5
N265 G53 Z0.
(2D-TASCHE2)
N270 M9
N275 M1
N280 T17 M6
N285 S42000 M3
N290 M9
N300 G0 X2.379 Y11.374
...
%
Is there anything wrong with the .ngc-file that needs to be changed (post-processor) or is my order of touching off, etc. wrong?
Your help is truly appreciated!!!
Thanks & regards,
Hancock