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:

tool comment


Recommended Posts

Hello forum users

I have this problem when i post out my programme and i have this letter ø in the tool comment. Then when i load it at our Haas Machine it errors out, be course of this letter ( ø ) even its only a comment.

So is there a way to change the post so when it see the letter ( ø ) it will change it to something else or delete it?

 

Right now im using the Generic Haas 3X Mill post. That i downloaded on the Mastercam homepage

 

%
O0
(1)
(DATE=DD-MM-YY - 01-10-20 TIME=HH:MM - 15:00)
(MCAM FILE - Y:\JOB\JOB 2020\MASTERCAM\POST TEST.MCAM)
(NC FILE - X:\1.NC)
(MATERIAL - )
(T10|Ø12 R0,2 *60 ISCAR|H0|D0|TOOL DIA. - 11.99)                                ----The letter ø in this line neds to be deleted or changed to another letter ----
N100 G21
N110 G0 G17 G40 G49 G80 G90
N120 T10 M6
N130 G0 G90 G54 X399.005 Y-515.695 S10000 M3
N140 G43 H10 Z200.
N150 Z52.

.

Link to comment
Share on other sites
7 hours ago, keedo said:

Hello forum users

I have this problem when i post out my programme and i have this letter ø in the tool comment. Then when i load it at our Haas Machine it errors out, be course of this letter ( ø ) even its only a comment.

So is there a way to change the post so when it see the letter ( ø ) it will change it to something else or delete it?

 

Right now im using the Generic Haas 3X Mill post. That i downloaded on the Mastercam homepage

 

%
O0
(1)
(DATE=DD-MM-YY - 01-10-20 TIME=HH:MM - 15:00)
(MCAM FILE - Y:\JOB\JOB 2020\MASTERCAM\POST TEST.MCAM)
(NC FILE - X:\1.NC)
(MATERIAL - )
(T10|Ø12 R0,2 *60 ISCAR|H0|D0|TOOL DIA. - 11.99)                                ----The letter ø in this line neds to be deleted or changed to another letter ----
N100 G21
N110 G0 G17 G40 G49 G80 G90
N120 T10 M6
N130 G0 G90 G54 X399.005 Y-515.695 S10000 M3
N140 G43 H10 Z200.
N150 Z52.

.

That is how you named the tool in your program. Change that tool name in the program and no need for a post change. That is a special character and in my 30+ years of writing code I have never once tried to do what and seen exactly what you are seeing anytime I have tired.

  • Like 1
Link to comment
Share on other sites

Thanks for the replys

I have not altered anything yet😉

Yes its a special character and its cumming from my tool library (tool comment)

I just hoped that i could add a line of code, instead of going trough all my tool library's and manual deleting the ( ø )😃

 

The thing is that in all my old tool library's  i have given all my tools names like " ø12 r2 " ø for the Diameter. 

The old Haas machines that we have no problem. But the new Haas machine don't like this ø character and errors out. Evan though its only a comment inside ()

Link to comment
Share on other sites
9 hours ago, keedo said:

Thanks for the replys

I have not altered anything yet😉

Yes its a special character and its cumming from my tool library (tool comment)

I just hoped that i could add a line of code, instead of going trough all my tool library's and manual deleting the ( ø )😃

 

The thing is that in all my old tool library's  i have given all my tools names like " ø12 r2 " ø for the Diameter. 

The old Haas machines that we have no problem. But the new Haas machine don't like this ø character and errors out. Evan though its only a comment inside ()

If you are using Mastercam 2019 or later, use a regular expression to sanitize the string.

s_regex       := "[^\x00-\x7F]"
s_replacement := ""

psof$
	*e$
	"Before: ", ~strtool$, e$
	strtool$ = regex(s_regex, s_replacement, 2)
	"After : ", ~strtool$, e$

Sample output.

Before:  Ø12 R0,2 *60 ISCAR
After :  12 R0,2 *60 ISCAR

 

  • Like 3
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...