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:

bug in mpmaster.pst ?


mig
 Share

Recommended Posts

Hi ,

This is the bug or wrong setting for mpmaster for x2:

I am trying to machine arc 1 inch dia by 3/16 dia em.

Here is g-code from mpmaster :

G41 D3 X-.3903

G03 X-.4278 Y1.0462 R.0375

Z-.1 I0. J0.

Z-.2 I0. J0.

X.3827 Z-.25 R.4052

X-.4278 R.4053

X.3827 R.4052

X.3452 Y1.0837 R.0375

G01 G40 X.3264

regards

Link to comment
Share on other sites

You cannot do a full arc using an R because the machine has no idea where the center point of the arc would be. All of our Fanuc style posts (Inhouse Solutions MPMaster included) force IJK style output if a full arc is detected (full_arc_flg$ = 1). The post will also force IJK style output for helix arcs (arc_pitch$) because the machines cannot do helix arcs with R's.

 

If you only want to ever see R's output, change the "Helix support" setting to "No helix allowed" (which will result in any helix arc motion being linearized) and uncheck the "Allow 360 degree arcs" check boxes.

 

[ 11-16-2006, 12:51 PM: Message edited by: Paul Decelles from CNC Software ]

Link to comment
Share on other sites

Paul,

I do wont I and J in full circle and rad on arcs , like it was on my old v9 okuma post wich i created from mp master (ex. MP 9.x) . This post still work correctly with MCx2 , but i working on new Mpmaster for X2(ex. Mp 11) to create new okuma post.

Here is the sample of output i wont to get :

G03 X-11.8125 Y.7625 R.01

Z-1.05 I.3125 J0.

Z-1.1 I.3125 J0.

......

Regards

Link to comment
Share on other sites

Hi Paul,

Post i use:

--------------------------------------

# Post Name : MPMASTER

# Product : MILL

# Machine Name : MACHINE

# Control Name : CONTROL

# Description : IHS MASTER GENERIC MILL G-CODE POST

# 4-axis/Axis subs. : YES

# 5-axis : NO

# Subprograms : YES

# Executable : MP v11.0

# Post Revision : 11.0.06299 (MC_FULL.MC_MINOR.YYDDD)

#

# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO

# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.

---------------------------------------

My comp def set as you ask.

Code i have :

----------------------------------------

O0000 (T)

(MASTERCAM - X)

(MCX FILE - T)

(POST - )

(MATERIAL - ALUMINUM INCH - 2024)

(PROGRAM - T.NC)

(DATE - NOV-17-2006)

(TIME - 7:56 AM)

(POST DEV - IN-HOUSE SOLUTIONS)

(T1 - 3/16 FLAT ENDMILL - H0 - D0 - D0.1875")

N100 G00 G17 G20 G40 G80 G90

N110 T1 M06 ( 3/16 FLAT ENDMILL)

N120 (MAX - Z.25)

N130 (MIN - Z-.2)

N140 G00 G54 X-1.8354 Y1.0759 S2852 M03

N150 G43 H0 Z.25

N160 Z.1

N170 G94 G01 Z0. F6.16

N180 X-1.8542

N190 G03 X-1.8917 Y1.0384 R.0375

N200 Z-.1 I0. J0.

N210 Z-.2 I0. J0.

N220 X-1.8917 Y1.0384 Z-.2 I0. J0.

N230 X-1.8542 Y1.0009 R.0375

N240 G01 X-1.8354

N250 Z-.1

N260 G00 Z.25

N270 M05

N280 G91 G28 Z0.

N290 G28 X0. Y0.

N300 G90

N310 M30

---------------------------

You can see it wrong.

Regards

Link to comment
Share on other sites

I'm sorry but I do not see anything wrong with the output. It appears that the code above is for a ramping contour or helix bore toolpath. It is leading in with an arc - with an R (N190 G03 X-1.8917 Y1.0384 R.0375) then doing two full helix arcs getting progressively deeper - outputting I's and J's (N200 Z-.1 I0. J0. and N210 Z-.2 I0. J0.) then doing a full arc pass at the finish depth - again outputting an I and J (N220 X-1.8917 Y1.0384 Z-.2 I0. J0.) then leading out - with an R (N230 X-1.8542 Y1.0009 R.0375). This is exactly what you have been saying you wanted, R's on arcs less than 360 degrees and I's and J's on full arcs and helix arcs.

 

The best suggestion I can make at this point is to contact your reseller for more help.

 

[ 11-17-2006, 11:57 AM: Message edited by: Paul Decelles from CNC Software ]

Link to comment
Share on other sites

Ok Paul,

This code (from mpmaster) is wrong because:

1 . I and J this is rad – vector , so it basically showing what rad . of arc and where is the center of arc .

If you have “I” and “J “ =0 and “XY” same for start and finish points Control will miss this information and give you alarm or just plunge down (depend control) if you have Z_- when you doing helix .

Here is example of programming of full circle:

G01 Z0. F15.

X-1.6734 F20.

G03 X-1.7109 Y.9989 R.0375

I.6791 J0.

X-1.6734 Y.9614 R.0375

G01 X-1.6546

Z.1 F90.

G0 Z.25

You can see : J0 But I – rad of arc (it depend where you start(end )point is)

Regards

Link to comment
Share on other sites

I see what you are saying Keith. I guess I assumed the arc center was at X0 Y0. I'm going to take a wild guess here... Look in the post and see what arctype$ is initialized to.

 

It should look something like this:

code:

arctype$     : 2     #CD_VAR Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.,

#5 = R no sign, 6 = R signed neg. over 180

This initialization is important if you are outputting R's because it is used to determine the arc center type for IJK output (which means it had best be in your post somewhere!). Basically, the value is loaded into prv_arctype$ and this value is then used when IJK output is required (for full arcs or helix arc output). The same holds true for arctypexz$ and arctypeyz$ if linkplnvar$ is initialized to 0 (meaning that your post has logic to support separate arc control for each plane - which didn't exist until X).

 

Good eyes Keith!

Link to comment
Share on other sites

Mig, I have it setup similar way.

Arc center type: "Radius"

Arc breaks: "allow 360 degree" "Break at quadrants"

Helix support "only in xy plane"

 

I personally don't like I & J show in posted code when they have zero value. You have to set it in your post though.

 

hth

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