Text Compare
Produced: 5/17/2024 9:50:12 AM
   
Mode:  Differences  
Left file: C:\Program Files (x86)\SheetCam TNG Development\posts\Mach3 plasma THC with scriber and backlash compensation.scpost  
Right file: C:\Users\lcipr\AppData\Roaming\SheetCam TNG Development\posts\Mach3 plasma THC with scriber and backlash compensation.scpost  
    -+ 5 --LDC v2        2025/05/17
      6  
      7 --LDC Set the value for Sheetcam ArcAsMoves() function, 0 value will use arcs G2/G3 motion
      8 machArcAsMoves = 0   --LDC
      9  
 
13 refDistance = 200 <> 18 refDistance = 500    --LDC
 
19 switchOffset = 1.5 <> 24 switchOffset = 2.2   --LDC
 
35 refHome = true <> 40 refHome = false   --LDC
 
38 slowRadius = 0 <> 43 slowRadius = 19   --LDC
 
    <> 133    post.Text (" F1\n G90 G40\n")   --LDC
128    post.Text (" F1\n G53 G90 G40\n")   134    --post.Text (" F1\n G53 G90 G40\n")
 
    -+ 147    
      148    
      149    TPlastX = 1e17    -- LDC, torch probe last position
      150    TPlastY = 1e17    -- LDC, torch probe last position
      151    format = "0.0000"    --LDC, motion precision
      152    post.NonModalNumber(" G0 Z", safeZ * scale, format)    --LDC
      153    post.Eol()     --LDC
      154    
      155    
 
215    local len = math.hypot((endX + offX)-currentX , (endY + offY)-currentY) <> 230    --local len = math.hypot((endX + offX)-currentX , (endY + offY)-currentY)  --LDC
216    dist = dist + len   231    --dist = dist + len                                                        --LDC
 
220    if(offZ and firstRef == false) then <> 235    --if(offZ and firstRef == false) then  --LDC
 
222    end <> 237    --end                                  --LDC
 
228    dist = dist + len <> 243    --dist = dist + len     --LDC
 
    -+ 258    if machArcAsMoves > 0 then post.ArcAsMoves(machArcAsMoves) return end   --LDC
      259  
 
244    dist = dist + radius * math.abs(arcAngle) <> 261    --dist = dist + radius * math.abs(arcAngle)     --LDC
 
    <> 292 --LDC OnArc() function was double defined, last define wins, previous version never gets called
275 function OnArc()   293 --function OnArc()
276   post.ArcAsMoves(0.1)   294 --  post.ArcAsMoves(0.1)
277 end   295 --end
 
    -+ 322    dist = math.hypot( endX - TPlastX, endY - TPlastY )  --LDC
      323    
 
    -+ 345          TPlastX = endX    --LDC
      346          TPlastY = endY    --LDC
 
    <> 384    --LDC only need to change G92 Z offset once using current Z position
      385    post.Text(" G92 Z-", post.FormatNumber(switchOffset * scale, format), "\n")   --LDC
362    post.ModalText(" G92 Z0.0\n")   386    --post.ModalText(" G92 Z0.0\n")  
363    post.ModalText (" G00")   387    --post.ModalText (" G00")
364    post.Text(" Z")   388    --post.Text(" Z")
365    post.Number (switchOffset * scale, "0.0000")   389    --post.Number (switchOffset * scale, "0.0000")
366    post.Eol()   390    --post.Eol()
367    post.ModalText(" G92 Z0.0\n")   391    --post.ModalText(" G92 Z0.0\n")