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:

Wire code


MarkS
 Share

Recommended Posts

We have a Charmilles Robofil 440. The code from the top of the posted file looks like this.

 

N100 G90

N110 G11 (WIR,LS25)

N120 G11 (TEC,NNN)

N130 M15 P0

N140 S101

 

 

The code in parenthesis cannot have spaces. The only thing that changes is the code where the NNN's are. This will be input by the programmer. Currently I have this set in the post to output from the comment box. The programmer types in "(TEC,5MM)" for example. What I would like is to hard code the (TEC, ) so the programmer doesn't have to type this on every program.They would only have to input 5MM in the comment box.

 

When I modified the post to do that:

 

This is the section from the post

gcode$ = 1008

n$, "G11", "(TEC,", comment$, e$

 

This is the output:

(TEC, 5MM )

 

 

The Charmilles control doesn't like the spaces.

 

How can I achieve this without the spaces? Or any other ways to do this with the least input required for each program.

 

Thanks

Link to comment
Share on other sites

Mark,

I have 240 and this is how I handle it.

 

pstart # Stuff to output at program start

# Specify the TEC file to use.

Spaces$ = 0

if sof, n$, " G11 ", "(TEC",no_spc$, ",", no_spc$, sprogname$,")", e$

 

When I start a tool path, I use whatever tec I am using as the NC file name. This code uses the NC file name when it calls out the tec file when it posts.

 

Mike

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