I have a strange issue. I have been able to accurately add Z min to each of my operation calls throughout my posted code. My trouble comes up when at the calc_end_of_tape I call calc_replace and it goes back thru the code looking in my start of tape header for "X.XXX" to replace it with value of the lowest operation. When the value is between .100 and -.100 it displays as scientific notation, any value outside that range displays properly. The REPLACE command in EC editor requires 2 inputs as character strings. I think it is converting the small values that are stored as decimal to scientific notation when they are stored as a character string.
Code Example:
;POST: VB-100 SIEM840D;
;NC FILE: 1test POSTED: 08/23/24 14:17 RUNTIME: 0:4:55;
;MINIMUM Z DEPTH OF MACHINING: Z -4.158e-002;
;TOOL TOOL TYPE C RAD CAMWORKS TOOL COMMENT;
; 01 DRILL 1/2 144DEG CB Spot Drill;
; 16 DRILL #7 SCREW MACH DRILL;
; 05 DRILL 1/4,E SCREW MACH DRILL;
;POST: VB-100 SIEM840D;
;NC FILE: 1test POSTED: 08/23/24 14:17 RUNTIME: 0:4:55;
;MINIMUM Z DEPTH OF MACHINING: Z -0.04158;
;TOOL TOOL TYPE C RAD CAMWORKS TOOL COMMENT;
; 01 DRILL 1/2 144DEG CB Spot Drill;
; 16 DRILL #7 SCREW MACH DRILL;
; 05 DRILL 1/4,E SCREW MACH DRILL;