Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Post Mod...Gcode nonmodal


Barghest
 Share

Recommended Posts

Barghest,

 

Try this...

 

Below is a snippet from the std.(X2) MPFAN.PST

 

I found a 'fs' (format statement) that is set for non-modal output. (The lowercase 'n' denotes that).

and

Then added this line to the PST ->

fmt 16 gcode$ # format to be non-modal

 

code:

fs2 16  1 0 1 0n    #Integer, forced output

fs2 17 0.2 0.3 #Decimal, absolute, 2/3 place (tapping feedrate)

 

# This format statement is used for sequence number output

# Number of places output is determined by value for "Increment Sequence Number" in CD

# Max depth to the right of the decimal point is set in the fs statement below

fs2 21 0^7 0^7 #Decimal, 7 place, omit decimal if integer value

fs2 22 0^3 0^3 #Decimal, 3 place, omit decimal if integer value

 

fmt 16 gcode$ # format to be non-modal

Link to comment
Share on other sites

Thankyou Roger Crazy and Chris. I added what Roger said and put the `sgcode back in, and all works great now.

 

quote:

What is 'extra'? The G01 on the empty lines or more than that? The orphan G01 shouldn't hurt anything, although it looks goofy; try turning fastmode off and see which postblock is outputting the 'extra' G01"

It actually doesnt hurt anything I just done like messy code, and that looks messy to me smile.gif

Link to comment
Share on other sites

Glad to help.

 

When a variable doss not have an assigned format, it is given 'fs 1' as a default format.

 

Since '1' is modal - any variable usage related to it will be modal.

 

But you say you're using sgcode, not gcode$.

But you are!

gcode$ is the selector variable used for selecting the 'G##' string from the String Table.

So all we needed to do was make it non-modal and now sgcode becomes non-modal. wink.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...