×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources