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 Help


MIL-TFP-41
 Share

Recommended Posts

OK, I am using a modified version of MPMASTER. I use "smachinepath" to cpature what machine definition is being used to set things like dwell format, what kind of high speed machining, rigid tap output ( we have Siemens, Yasnac, and Fanuc controls and they are all different)

 

So right now my section looks like this..

 

	if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD", # V-Max 800, G95 to start rigid tap mode
  	[
  	mach_type = 5
  	smachname = "V-MAX800 3AX"
  	result = newfs(18, dwell$)  #Reset the output format for 'dwell'
  	use_pitch = 1 	#0 = Use feed for tapping, 1 = Use pitch for tapping
  	fan_rigid_tap = 0 	#0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output M29 Fanuc)
  	yas_rigid_tap = 0 	#0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G93 Yasnac)
  	sie_rigid_tap = 1 	#0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G95 Siemens)
  	hstype = 2 #high speed type
  	]

 

Works great with X4. However, in X5 they renamed the machine definition extension to MMD-5....so the first line would look like this:

 

  	if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD-5", # V-Max 800, G95 to start rigid tap mode

 

Problem is we still want to be able to use X4 for the next little bit and still have it work for X5

 

I have tried both of these combinations and neither work...

 

 	if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD" | "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD-5", # V-Max 800, G95 to start rigid tap mode
	if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD" | if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD-5", # V-Max 800, G95 to start rigid tap mode

 

Any ideas????

 

[edit]

 

the "smachinepath" is captured here...

 

 	if prmcode$ = 19105, smachinepath  = ucase(sparameter$) #capture path to determine what machine def is being used

Link to comment
Share on other sites
Problem is we still want to be able to use X4 for the next little bit and still have it work for X5

 

You should not be using the same post for X4 and X5. You need to run the X4 post through the update utility ( File / Update Folder...). This will create a copy of the X4 post and update it to work with X5 update that post to use the new file extensions. Have you already done this?

Link to comment
Share on other sites

the .pst file extension did not change....tho it did make a backup with a .pst_vX4 extension. I figured a work around...not very elegant but it works. There should be something simpler than this...

       if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD", # V-Max 800, G95 to start rigid tap mode Mcam X4
       [
       mach_type = 5
       smachname = "V-MAX800 3AX"
       result = newfs(18, dwell$)  #Reset the output format for 'dwell'
       use_pitch = 1   #0 = Use feed for tapping, 1 = Use pitch for tapping
       fan_rigid_tap = 0       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output M29 Fanuc)
       yas_rigid_tap = 0       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G93 Yasnac)
       sie_rigid_tap = 1       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G95 Siemens)
       hstype = 2 #high speed type
       ]

       if smachinepath = "P:\MASTERCAM MACHINES\MACHINES\V-MAX800 3AX.MMD-5", # V-Max 800, G95 to start rigid tap mode (Mcam X5)
       [
       mach_type = 5
       smachname = "V-MAX800 3AX"
       result = newfs(18, dwell$)  #Reset the output format for 'dwell'
       use_pitch = 1   #0 = Use feed for tapping, 1 = Use pitch for tapping
       fan_rigid_tap = 0       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output M29 Fanuc)
       yas_rigid_tap = 0       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G93 Yasnac)
       sie_rigid_tap = 1       #0 = Floating tap output, 1 = Rigid tap output (suppress spindle output and output G95 Siemens)
       hstype = 2 #high speed type
       ]

 

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