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 Question, periods/decimal points


Rekd™
 Share

Recommended Posts

The .set file I use for posting tool data to my Access db is stripping everything in my tool comments at and after any decimal points/periods I have in the Tool Comment.

 

This is what it should post, note the ".75 LOC" towards the end.

 

code:

StartTools:

ToolID;ToolNumber;Dia;Flutes;TLO;CRC;Len;FLen;Depth;ToolDescription;MfgCode

01;0.5000;2;01;01;1.0000;0.7500;-1.0100;1/2 CB EM 2FL SE .75 LOC;71220-500005000

This is what I get.. no ".750 LOC

 

code:

StartTools:

ToolID;ToolNumber;Dia;Flutes;TLO;CRC;Len;FLen;Depth;ToolDescription;MfgCode

01;0.5000;2;01;01;1.0000;0.7500;-1.0100;1/2 CB EM 2FL SE ;71220-500005000

My normal post for the NC code works, as does the Mill2.set.

 

Any ideas?

 

'Rekd

Link to comment
Share on other sites

Here's the code from the post.. 'strtool' is where the tool comment comes from.

 

code:

# ===================================================================

# Output all tool data on one line. ";" as delimiter

# ===================================================================

if stl_mfg_com = "", stl_mfg_com = "Un-defined"

if opcode <> 3, # If drill cycle, insert "00" for tloffn

[

*t, ";", *tldia, ";", *tl_num_flutes, ";", *tlngno, ";", *tloffno, ";", tl_overall_len, ";", tl_flute_len, ";", min_depth, ";",*strtool, ";", stl_mfg_com, E

]

else,

[

*t, ";", *tldia, ";", *tl_num_flutes, ";", *tlngno, ";", "00", ";", tl_overall_len, ";", tl_flute_len, ";", min_depth, ";", *strtool, ";", stl_mfg_com, E

]

'Rekd

Link to comment
Share on other sites

Ok I have a question Matt?

 

Where do you get this infromation from I am thinking you are from your toolcomment line:

code:

1/2 CB EM 2FL SE .75 LOC

I am wondering do you have a character limit that is only allowing you a certain number of places to output this. I am thkning you may need to break this up or figure out where you need to change the limits of the constrants for the place in your output.

 

Crazy Ron Millman

Link to comment
Share on other sites

I dont know if it matters, but in your first comment line there is no space between the comma and *strtool, while in your else line there is a space.

Im sure it cant be something this simple, but its good to cover all the bases smile.gif

 

[ 01-20-2004, 12:20 PM: Message edited by: gms1 ]

Link to comment
Share on other sites

Ok what is the statment for the varabile control.

code:

fmt " DIA. OFF. - " 4   toffnote    # Note format  

I am wondering if it needed to be adjusted here of even maybe defined here to allow what you are looking for. I am thinking this format would be better to use if not using one like this:

code:

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

I know you want to keep your stuff guarded but without seeing more kinda a guess at this point.

 

Crazy Ron Millman

Link to comment
Share on other sites

Do you have string variable strtool in your post?

This is the what I found on strtool in the post book.

 

The tool description is entered in the ‘Define Tool’ dialog under the

‘parameters’ tab and ‘Tool name’ to be captured from the NCI Gcode

20001 line when the numeric variable ‘strtool_v7’ is 1. If ‘strtool_v7’ is

0, the generic tool description is taken from the NCI Gcode 1013 line.

 

I think if you change the format statment it should fix it.

 

[ 01-20-2004, 01:02 PM: Message edited by: elbro ]

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