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:

Duplicate I and J


Recommended Posts

Hello Forum,

   I'm using CIRCLE MILL function and there are some duplicate I, J values.  Is there, away we can eliminate that?  Thank you for your responds.

 

 

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

N1(.1250, 1/8 EM, CB,)
(2FLTS .500LOC, .63LOH)
G0 G17 G40 G49 G80 G90
G53 Z0. M19
T1 M6(Rough and finish 12x c'bores, CUT#3)
(1x .005 MULTI-ROUGH)
(1x .005 MULTI-FINISH)
G90 G54
X-2.738 Y-.6598 S48869 M3
G43(D1)H1 Z1. M8(DOC= Z-.181)
G90 Z.0625
G1 Z.01 F500.
G3 X-2.738 Y-.6598 Z.0031 I-.004 J.0048 F110.
X-2.738 Y-.6598 Z-.0038 I-.004 J.0048
X-2.738 Y-.6598 Z-.0108 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0177 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0246 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0315 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0385 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0454 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0523 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0592 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0662 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0731 I-.004 J.0048 ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.08 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0869 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.0939 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1008 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1077 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1146 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1216 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1285 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1354 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1423 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1493 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1562 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.1631 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.17 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.738 Y-.6598 Z-.177 I-.004 J.0048  ==========> Duplicate "I", "J" values
X-2.746 Y-.6502 Z-.1804 R.0062
X-2.7479 Y-.6529 Z-.181 R.0062
X-2.7479 Y-.6529 I.0059 J-.0021
X-2.7155 Y-.6645 R.0172
X-2.7891 Y-.6382 R-.0391
X-2.6743 Y-.6792 R.061
X-2.8303 Y-.6234 R.0828
X-2.6331 Y-.694 R.1047
X-2.8715 Y-.6087 R-.1266
X-2.5919 Y-.7087 R.1485
X-2.9127 Y-.5939 R.1704
X-2.5508 Y-.7234 R-.1922
X-2.742 Y-.4375 R.214
Y-.8725 R.2175
Y-.4375 R.2175
X-2.8508 Y-.5463 R.1088
G1 X-2.742 Y-.655 F10.
Y-.5437
G41 D1 X-2.6307
G3 X-2.742 Y-.4325 R.1113
X-2.742 Y-.4325 J-.2225
X-2.8533 Y-.5437 R.1112
G1 G40 X-2.742
Y-.655
G0 Z1. M9
G0 G90 G53 Z0. M5
G53 Y0.
M1
G0 G90 G54 X0.
M30
Link to comment
Share on other sites

Assuming you are using the mplmaster post what you are looking for is this

 

#Arc output for IJK
        #If you do NOT want to force out the I,J,K values,
        #remove the "*" asterisks on the *i, *j, *k 's below...
        if plane$ = zero, iout, jout, kout #XY plane code - G17
        if plane$ = one, iout, jout, kout  #YZ plane code - G19
        if plane$ = two, iout, jout, kout  #XZ plane code - G18
        !i$, !j$, !k$

 

Open up the post, and search for parc. Then as is says, remove the asterisks on the I,J,K. I already took mine out

Link to comment
Share on other sites

PcRobotic, if you want to cut an arc you NEED the I & J values there. Now if "I" or "J" were at zero, then you would not need whatever one was at zero...example

 

X-2.738 Y-.6598 Z-.0108 I0. J.5

 

The "I" is not necessary on most machines. on some controllers it is necessary.

 

What can be eliminated with your code example is the X & Y moves....

So something like this

 

G43 H1 Z.1
G1 Z0. F15.
G41 D1 X.125 Y.125 F25.
G3 X0. Y.25 I-.125 J0.
X0. Y.25 Z-.08 I0. J-.25
X0. Y.25 Z-.16 I0. J-.25
X0. Y.25 Z-.24 I0. J-.25
X0. Y.25 Z-.32 I0. J-.25
X0. Y.25 Z-.4 I0. J-.25
X0. Y.25 Z-.48 I0. J-.25
X0. Y.25 Z-.56 I0. J-.25
X0. Y.25 Z-.64 I0. J-.25
X0. Y.25 Z-.72 I0. J-.25
X0. Y.25 Z-.8 I0. J-.25
X0. Y.25 I0. J-.25
X-.125 Y.125 I0. J-.125
G1 G40 X0. Y0.
G0 Z.1

can be cut down to this:

 

G43 H1 Z.1
G1 Z0. F15.
G41 D1 X.125 Y.125 F25.
G3 X0. Y.25 I-.125
Z-.08 J-.25
Z-.16 J-.25
Z-.24 J-.25
Z-.32 J-.25
Z-.4 J-.25
Z-.48 J-.25
Z-.56 J-.25
Z-.64 J-.25
Z-.72 J-.25
Z-.8 J-.25
J-.25
X-.125 Y.125 J-.125
G1 G40 X0. Y0.
G0 Z.1

 

Once again this will work on most machines but not all

 

Not trying to sound like an @ss...but you really should have a grasp on this stuff before you go messing with posts

  • Like 1
Link to comment
Share on other sites

PcRobotic, if you want to cut an arc you NEED the I & J values there. Now if "I" or "J" were at zero, then you would not need whatever one was at zero...example

 

X-2.738 Y-.6598 Z-.0108 I0. J.5

 

The "I" is not necessary on most machines. on some controllers it is necessary.

 

What can be eliminated with your code example is the X & Y moves....

So something like this

G43 H1 Z.1
G1 Z0. F15.
G41 D1 X.125 Y.125 F25.
G3 X0. Y.25 I-.125 J0.
X0. Y.25 Z-.08 I0. J-.25
X0. Y.25 Z-.16 I0. J-.25
X0. Y.25 Z-.24 I0. J-.25
X0. Y.25 Z-.32 I0. J-.25
X0. Y.25 Z-.4 I0. J-.25
X0. Y.25 Z-.48 I0. J-.25
X0. Y.25 Z-.56 I0. J-.25
X0. Y.25 Z-.64 I0. J-.25
X0. Y.25 Z-.72 I0. J-.25
X0. Y.25 Z-.8 I0. J-.25
X0. Y.25 I0. J-.25
X-.125 Y.125 I0. J-.125
G1 G40 X0. Y0.
G0 Z.1

can be cut down to this:

G43 H1 Z.1
G1 Z0. F15.
G41 D1 X.125 Y.125 F25.
G3 X0. Y.25 I-.125
Z-.08 J-.25
Z-.16 J-.25
Z-.24 J-.25
Z-.32 J-.25
Z-.4 J-.25
Z-.48 J-.25
Z-.56 J-.25
Z-.64 J-.25
Z-.72 J-.25
Z-.8 J-.25
J-.25
X-.125 Y.125 J-.125
G1 G40 X0. Y0.
G0 Z.1

Once again this will work on most machines but not all

 

Not trying to sound like an @ss...but you really should have a grasp on this stuff before you go messing with posts

 

Hi MIL-TFP,

  How may I cut down to the point as you suggest? Can you assist me how to do it?

 

 

Thank you,

   S.Luong

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