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:

I need a post


Rekd™
 Share

Recommended Posts

..modification. biggrin.gif

 

I am trying to insert the manufacture's code into

my post. It's fine until it gets to a tool that

doesn't have the mfg code defined in the tool

list. I created some simple logic to test it and

assign a value if it's blank.

 

 

First tool is un defined, it reads that and

assigns the value to it. The next tool has it

defined, and it works. Third tool is not defined

and the value is assigned. The next 4 tools are

defined, and it works. The next 2 tools are not

defined and it doesn't work. They're drill cycles.

 

 

I also have some logic to test for drill cycles,

and think this may be affecting the logic. If

you can sift through my code and the results,

and understand it, I would appreciate some

feedback.

 

 

Post code

code:

 	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, ";", *strtool, ";", stl_mfg_com, E

]

else,

[

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

]


Posted code (tools 12 and 4 don't have the mfg code)

 

code:

 StartTools:

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

01;0.7100;3;01;01;2.0000;1.0000;.71 Finish EM 3FL;Un-defined

07;0.5000;2;07;07;1.8000;1.0250;.500 CB EM 2FL SE;71220-500005000

01;0.7100;3;01;01;2.0000;1.0000;.71 Finish EM 3FL;Un-defined

08;0.1875;4;08;08;1.2500;1.0000;3/16 CB EM 4FL TICN 1.00 LOC;71240-18810S100

10;0.1250;4;10;10;1.0000;0.5000;1/8 CB EM 4FL TIALIN;71240-12530S000

11;0.1250;4;11;11;2.2500;0.7200;.125 CB BEM .75 LOC;71240-12511S000

03;0.2500;1;03;00;2.0000;1.5000;1/4 CHAMFER MILL;72110-2500SS090

12;0.1470;2;12;00;3.0000;2.0000; #26 DRILL;

04;0.1250;2;04;00;3.0000;2.0000; 1/8 DRILL;

05;0.1380;1;05;00;1.2500;0.6500;#6-32 Roll Tap H3 Bottom;73103-063200000

EndTools


I've tried putting the logic with the code for drill cycles, still doesn't work.

 

'Rekd teh keep it stupid, simple

Link to comment
Share on other sites

Rekd

 

I see what you're trying to do but don't understand why it doesn't work.

 

I always use * in front of string outputs even when I don't think I'd need it to make sure I'm gonna see it, so if it was me I'd try *stl_mfg_com and see what it does.

 

If you input a value in that field in those problem tools; does it output?

 

Are you sure the field is empty? If there is a space or something in there, will it output the empty hole that you're getting?

 

C

 

[ 06-12-2003, 01:01 PM: Message edited by: chris m ]

Link to comment
Share on other sites

quote:

Are you sure the field is empty? If there is a space or something in there, will it output the empty hole that you're getting?


Good point, I have noticed that all the tools in 9 seem to have a space in the manuf. code box. Will have a look and try again.

 

'Rekd

Link to comment
Share on other sites

That did it. Spaces in the description. Thanks for opening my eyes, Chris. cheers.gif

 

'Rekd teh It's nice when your problems are caused by the smallest of issues; they're easy to fix, but it sure is frustrating missing the simple stuff!

 

[ 06-12-2003, 01:17 PM: Message edited by: Rekd ]

Link to comment
Share on other sites

Sometimes its tough to see the easy solutions to seemingly complex problems. That happens to me a lot when I'm working on posts; I always scour the code looking for some complicated error when in reality I left out a comma somewhere or I left # in front of the line or something.

 

Glad you got it fixed

 

C

Link to comment
Share on other sites
  • 6 years later...

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