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:

"format statement processing has failed"


Dstan
 Share

Recommended Posts

Hey guys first message here.  I've been machining since 2005 but until today have never messed with a post.  I work for a university in their physics machine shop and am trying to get a post figured out.  Its for a HAAS vf2 so the default one that's on mastercam 2021 works pretty well but there is a couple things I added.  I changed the "Miscellaneous Values" inputs so I can use the variables they create in the pst file.  When I use the "mi5" variable in a pbld statement it puts the value associated with the variable in the NC code which is what I want, but it also puts the name of the variable with it.  I read in a parameter manual if the variable is not formatted this will happen.  I looked up the procedure for how to do this but when I post a NC file it has an error.  I'm moderately familiar with C++ so I thought this wouldn't be a big deal but apparently I was mistaken.  Can you spot the mistake?

9_26_20, 5_39 PM Office Lens 1.jpg

9_26_20, 5_39 PM Office Lens 2.jpg

9_26_20, 5_39 PM Office Lens 3.jpg

9_26_20, 5_39 PM Office Lens 4.jpg

9_26_20, 5_45 PM Office Lens.jpg

Link to comment
Share on other sites

line 837   fs2 " " .....nos

example

# --------------------------------------------------------------------------
#Select english/metric code
sg20    : "G20"      #Inch code       ----0
sg21    : "G21"      #Metric code   ----1

s................................         ----------2  ( add)

s.............................         -------------3   (add)
smetric : ""         #Target string

fstrsel sg20 met_tool$ smetric 2 -1       |>>> (2→4)
# --------------------------------------------------------------------------

met_tool$ = mi5$

#514 = ,   *smetric

try it like this 

 

Link to comment
Share on other sites
1 hour ago, Dstan said:

Yeah I forgot to say I initialized “nos” above in the code by inserting “nos :0” I also tried formatting without the dollar sign and got the same error.  I also tried doing it the way it was suggested 2 posts up and still got errors when posting.

Remove that line, you initialized nos when you set it equal to mi5$

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...