If some one could help me with this script i would be very grateful.
(This is the code that i am generating)
G83 X0.201 Y0.2717 Z-1. Q0.125 R.1 F10.
X0.1863 Y0.3832
X0.2384 Y0.4498
X0.2658 Y0.3777
X0.4055 Y0.4197
X0.3992 Y0.3055
X0.2832 Y0.2571
G80
G00 G91 G28 Z0.
M01
(This is what i need)
X0.201 Y0.2717
Z.1
G83 Z-1. Q0.125 R.1 F10.
X0.1863 Y0.3832
X0.2384 Y0.4498
X0.2658 Y0.3777
X0.4055 Y0.4197
X0.3992 Y0.3055
X0.2832 Y0.2571
G80
G00 G91 G28 Z0.
M01
This is my script
'G73 G83 HAAS VF Peck drilling cycle
NCEdit Output,Line = i
dim R as string
dim F as string
dim Q as double
dim Z as string
Ask Header="Pecking Parameters",Output,Cancel=canc, "Hole Depth Z"=Z, "Peck amount Q;0"=Q, "Return R"=R, "Plunge Feed F"=F
If canc Then
Exit
End If
Generate
NCEdit Line = i,Output,Text=txt
pos = InStr(txt, "Z")
If pos > 0 Then
txt = left(txt, pos - 1)
End If
txt = txt+" Z"+Z+" Q"+Q+" R"+R+" F"+F
NCEdit Line = i,Text=txt, Output, NumLines=nl
NCEdit Line = nl+1
Window2
Attachment is my cycle
If anyone can help that would be great.