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:

Control Definition/post bug in 2024?


amw
 Share

Recommended Posts

Hey guys I have a couple variations of my MD CD PST and somehow i ended up saving one CD with 2 posts in it. I've spend hours here today trying to delete it and nothing seems to work. I open CD manager, see multiple posts, delete them, but they still show up in "existing definitions". 

I tried same thing in 2023 and I can add multiple posts, they show up in "existing definitions" and then when i delete them they are gone from existing definitions.  

Whats up with this? Is this a bug? Has something changed from 2023? Am i doing something wrong? Thanks!

Link to comment
Share on other sites

If you are hitting Edit in the Toolpath Manager you are editing the copy in that Mastercam file

To edit the Control Definition permanently, access it via The Machine Tab in the Ribbon

Hit Machine/Machine Definition/then Control definition.

Make your desired edits and Save

That will editing the permanent copy on your hard drive

If you are new to this, you should save a copy as backup

  • Thanks 1
Link to comment
Share on other sites

Yes Im opening the control definition from the ribbon bar, starting from a blank file.

Still seems like something isnt right. If i add 2 or more posts to a control file im stuck with them. No way to delete them. Works properly in 2023, but not in 2024. I tried with another machine (mill default) and same result. 

Link to comment
Share on other sites
4 hours ago, tornero32 said:

I have the exact same problem, I thought it was because I'm working on a NetHASP.  I'm wondering it has to do with Migration wizard?

 

At least im not alone lol. Was worried i was just doing something wrong.

We have a network license too. We activate an online license on one computer and then codemeter application shares licenses with other computers. Is this NetHASP or is that something different? 

Working with 2024 Update 1. Also I tried it on one of the network computers today and got same result. 

Link to comment
Share on other sites

I created a machine and control definition from scratch, and it does the same thing. I'm on update1 as well. NetHASP  license. I'm going to see The Mastercam forum to see if they have an answer, If I ask my reseller, I won't get an answer just a waste of time. They do not take responsibility.

What I notice is that if keep opening files from older versions it keeps adding post from that version, for no reason.

Link to comment
Share on other sites
14 hours ago, tornero32 said:

I created a machine and control definition from scratch, and it does the same thing. I'm on update1 as well. NetHASP  license. I'm going to see The Mastercam forum to see if they have an answer, If I ask my reseller, I won't get an answer just a waste of time. They do not take responsibility.

What I notice is that if keep opening files from older versions it keeps adding post from that version, for no reason.

in update 2 there is an issue logged & fixed where nethasp mill 2d licenses are not recognized,

update 2 is out now

  • Like 1
Link to comment
Share on other sites

I am seeing this in 2024 also (Update 2). Open machine definition manager from the ribbon bar, then open control def from the machine def manager. Delete the unwanted post. save the control def, close that window. Open control def again, the post I supposedly deleted is still listed.

I get the same result if I open the control def directly from the ribbon bar,

The file location for the old post doesn't even exist anymore, so who knows what or where it is coming up with the one I am trying to delete.

Link to comment
Share on other sites

I emailed in house solutions yesterday and they called me today. So it looks like it is a problem with 2024. They tried it with update 2, still has same problem. They said they would create a ticket with mastercam to get it fixed. Ill post back with an update if I hear anything from them. Hopefully they get it fixed soon.

 

 

  • Like 2
Link to comment
Share on other sites
  • 1 month later...

I noticed today that update 3 is out, and according to the PDF this has not been fixed. And worse still update 3 requires a more recent maintenance date. 

This is a serious safety issue! If the wrong post gets used by mistake we can end up with a lot of damage, or even worse somebody could get hurt. This should have been fixed in update 3 and it should have been available to everyone using 2024!

Link to comment
Share on other sites

First thing I am going to say is make a backup of your post.....

Second thing I'll say, if you don't do this VERY CAREFULLY you WILL hose your post, be certain not to change the formatting...

Third thing is if you don't need to do this, DO NOT DO THIS......

If you have a Control Def that has multiple posts in it and you want them gone, it "can" be done inside the post....see my 3 warnings to start.....

Open the post, go down to the bottom where the control section begins..

# --------------------------------------------------------------------------
# POST TEXT
# --------------------------------------------------------------------------
[CTRL_TEXT_XML_BEGIN]  # All post text edits must be made through Control Definition Manager
<?xml version="1.0" encoding="UTF-8"?>
<mp_xml_post_text xml:space="preserve">

Every control def is defined with the tags

<control>

</control>

Everything between a single set of those control codes is a control definition.....

In this example I'll use the CTRL_MILL|DEFAULT as the example....

Find everything between the control codes

<control>
		<control_label>CTRL_MILL|DEFAULT</control_label>
		<language>en-US</language>
		<misc_integers>
			<misc_1>
				<text>Work Coordinates [0-1=G92, 2=G54's]</text>
				<value>2</value>
			</misc_1>
			<misc_2>
				<text>Absolute/Incremental, top level [0=ABS, 1=INC]</text>
			</misc_2>
			<misc_3>
				<text>Reference Return [0=G28, 1=G30]</text>
			</misc_3>
		</misc_integers>
		<simple_drill>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</simple_drill>
		<peck_drill>
			<dwell>
				<text>""</text>
			</dwell>
			<first_peck>
				<text>Peck</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</peck_drill>
		<chip_break>
			<dwell>
				<text>""</text>
			</dwell>
			<first_peck>
				<text>Peck</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</chip_break>
		<tap>
			<dwell>
				<text>""</text>
			</dwell>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</tap>
		<bore1>
			<description>
				<text>Bore #1 (feed-out)</text>
			</description>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</bore1>
		<bore2>
			<description>
				<text>Bore #2 (stop spindle, rapid out)</text>
			</description>
			<dwell>
				<text>""</text>
			</dwell>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</bore2>
		<misc1>
			<description>
				<text>Fine Bore (shift)</text>
			</description>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
		</misc1>
		<misc2>
			<description>
				<text>Rigid Tapping Cycle</text>
			</description>
			<dwell>
				<text>""</text>
			</dwell>
			<first_peck>
				<text>""</text>
			</first_peck>
			<subsequent_peck>
				<text>""</text>
			</subsequent_peck>
			<peck_clearance>
				<text>""</text>
			</peck_clearance>
			<retract_amount>
				<text>""</text>
			</retract_amount>
			<shift>
				<text>""</text>
			</shift>
		</misc2>
		<drill_cycle_descriptions>
			<misc_drill_1>
				<text>Fine bore (shift)</text>
			</misc_drill_1>
			<misc_drill_2>
				<text>Rigid Tapping Cycle</text>
			</misc_drill_2>
		</drill_cycle_descriptions>
		<canned_text>
			<canned_text_1>
				<text>Stop</text>
			</canned_text_1>
			<canned_text_2>
				<text>Ostop</text>
			</canned_text_2>
			<canned_text_3>
				<text>Bld on</text>
			</canned_text_3>
			<canned_text_4>
				<text>bLd off</text>
			</canned_text_4>
			<canned_text_5>
				<text>M5</text>
			</canned_text_5>
			<canned_text_6>
				<text>M6</text>
			</canned_text_6>
			<canned_text_7>
				<text>M7</text>
			</canned_text_7>
			<canned_text_8>
				<text>M8</text>
			</canned_text_8>
			<canned_text_9>
				<text>M9</text>
			</canned_text_9>
			<canned_text_10>
				<text>M10</text>
			</canned_text_10>
		</canned_text>
	</control>

and delete it....

DO NOT, I REPEAT DO NOT DELETE THE NEXT <control>

as that is the beginning of the next control definition with which that post is associated.

Again, reread my 3 missives at the top and proceed at YOUR OWN CAUTION!!!!!

 

  • Like 1
Link to comment
Share on other sites

When editing Machine or Control Definitions, I have always followed this routine.

From the Ribbon Bar 

1. Open the Machine Def and make required edits

2. From the Machine Def, open the Control Def and make required edits

3. Save the edited Control Def, then Save the edited Machine Def.

I agree that you should be able to just open the Control Def and make required edits

but it doesn't seem to work

I started doing it per the steps shown above and have never had a problem.

  • Like 1
Link to comment
Share on other sites
3 hours ago, jpatry said:

Yeah, I noticed this too.

Can't purge the stock post from the control def, it's annoying but not fatal

This is a serious issue, not just annoying. I dont want extra posts showing up as an option once we select a machine! This is very easy way to cause a huge crash and all sorts of damage or even injuries. Its not safe!

Plus another big problem now is that I can no longer use the MD_CD_PST rename utility. It gives an error now since there are multiple posts under one machine definition. So if i need a slight modification to post in the future I cant do it? 

Being able to manage these files properly is an essential part of mastercam. We need this fixed. Anybody else here agree with me on this?

Link to comment
Share on other sites
10 minutes ago, gcode said:

When editing Machine or Control Definitions, I have always followed this routine.

From the Ribbon Bar 

1. Open the Machine Def and make required edits

2. From the Machine Def, open the Control Def and make required edits

3. Save the edited Control Def, then Save the edited Machine Def.

I agree that you should be able to just open the Control Def and make required edits

but it doesn't seem to work

I started doing it per the steps shown above and have never had a problem.

Yes this is the way it should work. But I follow this procedure and it does not get rid of the other posts. They are still stuck there. Just doesnt work in 2024.

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

First thing I am going to say is make a backup of your post.....

Second thing I'll say, if you don't do this VERY CAREFULLY you WILL hose your post, be certain not to change the formatting...

Third thing is if you don't need to do this, DO NOT DO THIS......

If you have a Control Def that has multiple posts in it and you want them gone, it "can" be done inside the post....see my 3 warnings to start.....

Open the post, go down to the bottom where the control section begins..

# --------------------------------------------------------------------------
# POST TEXT
# --------------------------------------------------------------------------
[CTRL_TEXT_XML_BEGIN]  # All post text edits must be made through Control Definition Manager
<?xml version="1.0" encoding="UTF-8"?>
<mp_xml_post_text xml:space="preserve">

Every control def is defined with the tags

<control>

</control>

Everything between a single set of those control codes is a control definition.....

In this example I'll use the CTRL_MILL|DEFAULT as the example....

Find everything between the control codes

and delete it....

DO NOT, I REPEAT DO NOT DELETE THE NEXT <control>

as that is the beginning of the next control definition with which that post is associated.

Again, reread my 3 missives at the top and proceed at YOUR OWN CAUTION!!!!!

 

JParis, I really appreciate the detailed response. But I cant seem to get this to work either. The issue is the control is referencing multiple posts, not the other way around. So im not sure exactly how an edit in the post could fix it? But the control does get info from post file so i guess anything is possible.

My MPmaster post had the mill default control listed in the bottom a couple of extra times. I deleted those. But no mention of the other machines that im trying to get rid of within the MPmaster post. 

Link to comment
Share on other sites
18 hours ago, amw said:

The issue is the control is referencing multiple posts, not the other way around. So im not sure exactly how an edit in the post could fix it? But the control does get info from post file so i guess anything is possible.

The above will REMOVE the reference to that post in the control def....after you make the change you will have to reload the control def into the file.

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

The above will REMOVE the reference to that post in the control def....after you make the change you will have to reload the control def into the file.

This is not working unfortunately. The extra posts that I want to get rid of have no reference to that control file.  

Link to comment
Share on other sites

This is still an unresolved bug & is easy to recreate if anyone wants to try.

Open a control definition that you are already using & add a post (something like MPFAN will work fine)

Save your control definition & close.

Now, once again open your control definition. Delete the post you added. Save & close.

Open control definition again...and the post you deleted is still there.

 

  • Like 1
Link to comment
Share on other sites
10 minutes ago, MIL-TFP-41 said:

This is still an unresolved bug & is easy to recreate if anyone wants to try.

Open a control definition that you are already using & add a post (something like MPFAN will work fine)

Save your control definition & close.

Now, once again open your control definition. Delete the post you added. Save & close.

Open control definition again...and the post you deleted is still there.

 

Curious...just tried it and yeah, ok I see it  now...

Not sure it's a big issue as I see it, so long as you have your correct post defaulted but yeah, this is definitely something "newer" and should be cleaned up

Link to comment
Share on other sites
14 hours ago, JParis said:

Curious...just tried it and yeah, ok I see it  now...

Not sure it's a big issue as I see it, so long as you have your correct post defaulted but yeah, this is definitely something "newer" and should be cleaned up

Yeah, it's new as of 2024.

2023 never gave me any such issue.

14 hours ago, MIL-TFP-41 said:

Open control definition again...and the post you deleted is still there.

Yes, I spent an hour thinking I had failed to properly save the file, and retrying.

Like a dog chasing its tail.

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