Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post Builder: Output current XYZAB on last line prior to G93

Status
Not open for further replies.

wmalan

Aerospace
Dec 12, 2003
297
Looking to get a current xyzab output on the last G94 line. Currently I'm forcing output on every line just to insure it's there.
First,

I'm using the code below in the linear move event to force xyzab during G93:

global feed_mode

if { $feed_mode == "FRN" || $feed_mode == "INVERSE" } {
MOM_force once X Y Z R fourth_axis fifth_axis
}

But, then I want to only output the current xyz on the last line prior to the inverse time block (controls don't remember the last line...) to setup G93 to reduce file size.

G94 G90 G0 G54 X1.5 Y1.2869 A-15. B0.0 S3000 M3
Z12.0835 M8
G1 Y.9865 Z10.9626 F10.
Y1.2281 Z10.8985 <-- missing X so can't do math...
G93 X1.5338 Y1.2281 Z10.8984 A-15. B.242 F169.24
X1.5676 Y1.2281 Z10.8981 A-15. B.484
X1.6014 Y1.2279 Z10.8977 A-15. B.726
X1.635 Y1.2278 Z10.897 A-15. B.967 F170.03


--
Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor