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:

Is there away I can remove the redunant location codes?


Recommended Posts

Hi, I have an old machine with less memory. I'm using CIRLE MILL and HELIX BORE functions. The codes are all right but they both have REDUNDANT locations codes.

 

 

Please take a look at below the dotted lines here, Is there away I can remove those redundant?

 

 

Thanks for the help.

 

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

 

N27(.250, 1/4 CEM .500LOC 2.00 RELIEF )

G0 G17 G40 G49 G53 G80 G90 Z0

T27 M6(MILL 3X .400 C'BORE, CUT#11)

M11 G90 G54 B0.

M10

X-5.1066 Y.0006 S3100 M3

M56 H1 D9

G43 H1 D9 Z1. T1 M8(DOC= Z-1.8)

Z.0625

G1 Z0. F5.

G3 X-5.1066 Y.0006 Z-.0242 I.0066 J-.0006 -----------------------> I already have this, therefore I don't need the red ones below

X-5.1066 Y.0006 Z-.0484 I.0066 J-.0006

X-5.1066 Y.0006 Z-.0726 I.0066 J-.0006

X-5.1066 Y.0006 Z-.0967 I.0066 J-.0006

X-5.1066 Y.0006 Z-.1209 I.0066 J-.0006

X-5.1066 Y.0006 Z-.1451 I.0066 J-.0006

X-5.1066 Y.0006 Z-.1693 I.0066 J-.0006

X-5.1066 Y.0006 Z-.1935 I.0066 J-.0006

X-5.1066 Y.0006 Z-.2177 I.0066 J-.0006

X-5.1066 Y.0006 Z-.2419 I.0066 J-.0006

X-5.1066 Y.0006 Z-.266 I.0066 J-.0006

X-5.1066 Y.0006 Z-.2902 I.0066 J-.0006

X-5.1066 Y.0006 Z-.3144 I.0066 J-.0006

X-5.1066 Y.0006 Z-.3386 I.0066 J-.0006

X-5.1066 Y.0006 Z-.3628 I.0066 J-.0006

X-5.1066 Y.0006 Z-.387 I.0066 J-.0006

X-5.1066 Y.0006 Z-.4112 I.0066 J-.0006

X-5.1066 Y.0006 Z-.4353 I.0066 J-.0006

X-5.1066 Y.0006 Z-.4595 I.0066 J-.0006

X-5.1066 Y.0006 Z-.4837 I.0066 J-.0006

X-5.1066 Y.0006 Z-.5079 I.0066 J-.0006

X-5.1066 Y.0006 Z-.5321 I.0066 J-.0006

X-5.1066 Y.0006 Z-.5563 I.0066 J-.0006

X-5.1066 Y.0006 Z-.5804 I.0066 J-.0006

X-5.1066 Y.0006 Z-.6046 I.0066 J-.0006

X-5.1066 Y.0006 Z-.6288 I.0066 J-.0006

X-5.1066 Y.0006 Z-.653 I.0066 J-.0006

X-5.1066 Y.0006 Z-.6772 I.0066 J-.0006

X-5.1066 Y.0006 Z-.7014 I.0066 J-.0006

X-5.1066 Y.0006 Z-.7256 I.0066 J-.0006

X-5.1066 Y.0006 Z-.7497 I.0066 J-.0006

X-5.1066 Y.0006 Z-.7739 I.0066 J-.0006

X-5.1066 Y.0006 Z-.7981 I.0066 J-.0006

X-5.1066 Y.0006 Z-.8223 I.0066 J-.0006

X-5.1066 Y.0006 Z-.8465 I.0066 J-.0006

X-5.1066 Y.0006 Z-.8707 I.0066 J-.0006

X-5.1066 Y.0006 Z-.8949 I.0066 J-.0006

X-5.1066 Y.0006 Z-.919 I.0066 J-.0006

X-5.1066 Y.0006 Z-.9432 I.0066 J-.0006

X-5.1066 Y.0006 Z-.9674 I.0066 J-.0006

X-5.1066 Y.0006 Z-.9916 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.0158 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.04 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.0641 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.0883 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.1125 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.1367 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.1609 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.1851 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.2093 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.2334 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.2576 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.2818 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.306 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.3302 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.3544 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.3786 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.4027 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.4269 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.4511 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.4753 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.4995 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.5237 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.5478 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.572 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.5962 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.6204 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.6446 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.6688 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.693 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.7172 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.7413 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.7655 I.0066 J-.0006

X-5.1066 Y.0006 Z-1.7897 I.0066 J-.0006

X-5.0944 Y-.0036 Z-1.8 I.0066 J-.0006

X-5.0944 Y-.0036 I-.0056 J.0036

X-5.1268 Y.0168 I-.0162 J.0102

X-5.052 Y-.0301 I.0374 J-.0235

X-5.1 Y.075 I-.0586 J.0368

Y-.075 I0. J-.075

Y.075 I0. J.075

G1 Y0.

Y.0375

G41 Y.075

G3 X-5.1 Y.075 I0. J-.075

X-5.1075 Y.0746 I0. J-.075

G1 G40 X-5.1037 Y.0373

X-5.1 Y0.

G0 Z.125

X-.0066 Y.0006

Z.0625

G1 Z0.

G3 X-.0066 Y.0006 Z-.0242 I.0066 J-.0006

X-.0066 Y.0006 Z-.0484 I.0066 J-.0006

X-.0066 Y.0006 Z-.0726 I.0066 J-.0006

X-.0066 Y.0006 Z-.0967 I.0066 J-.0006

X-.0066 Y.0006 Z-.1209 I.0066 J-.0006

X-.0066 Y.0006 Z-.1451 I.0066 J-.0006

X-.0066 Y.0006 Z-.1693 I.0066 J-.0006

X-.0066 Y.0006 Z-.1935 I.0066 J-.0006

X-.0066 Y.0006 Z-.2177 I.0066 J-.0006

X-.0066 Y.0006 Z-.2419 I.0066 J-.0006

X-.0066 Y.0006 Z-.266 I.0066 J-.0006

X-.0066 Y.0006 Z-.2902 I.0066 J-.0006

X-.0066 Y.0006 Z-.3144 I.0066 J-.0006

X-.0066 Y.0006 Z-.3386 I.0066 J-.0006

X-.0066 Y.0006 Z-.3628 I.0066 J-.0006

X-.0066 Y.0006 Z-.387 I.0066 J-.0006

X-.0066 Y.0006 Z-.4112 I.0066 J-.0006

X-.0066 Y.0006 Z-.4353 I.0066 J-.0006

X-.0066 Y.0006 Z-.4595 I.0066 J-.0006

X-.0066 Y.0006 Z-.4837 I.0066 J-.0006

X-.0066 Y.0006 Z-.5079 I.0066 J-.0006

X-.0066 Y.0006 Z-.5321 I.0066 J-.0006

X-.0066 Y.0006 Z-.5563 I.0066 J-.0006

X-.0066 Y.0006 Z-.5804 I.0066 J-.0006

X-.0066 Y.0006 Z-.6046 I.0066 J-.0006

X-.0066 Y.0006 Z-.6288 I.0066 J-.0006

X-.0066 Y.0006 Z-.653 I.0066 J-.0006

X-.0066 Y.0006 Z-.6772 I.0066 J-.0006

X-.0066 Y.0006 Z-.7014 I.0066 J-.0006

X-.0066 Y.0006 Z-.7256 I.0066 J-.0006

X-.0066 Y.0006 Z-.7497 I.0066 J-.0006

X-.0066 Y.0006 Z-.7739 I.0066 J-.0006

X-.0066 Y.0006 Z-.7981 I.0066 J-.0006

X-.0066 Y.0006 Z-.8223 I.0066 J-.0006

X-.0066 Y.0006 Z-.8465 I.0066 J-.0006

X-.0066 Y.0006 Z-.8707 I.0066 J-.0006

X-.0066 Y.0006 Z-.8949 I.0066 J-.0006

X-.0066 Y.0006 Z-.919 I.0066 J-.0006

X-.0066 Y.0006 Z-.9432 I.0066 J-.0006

X-.0066 Y.0006 Z-.9674 I.0066 J-.0006

X-.0066 Y.0006 Z-.9916 I.0066 J-.0006

X-.0066 Y.0006 Z-1.0158 I.0066 J-.0006

X-.0066 Y.0006 Z-1.04 I.0066 J-.0006

X-.0066 Y.0006 Z-1.0641 I.0066 J-.0006

X-.0066 Y.0006 Z-1.0883 I.0066 J-.0006

X-.0066 Y.0006 Z-1.1125 I.0066 J-.0006

X-.0066 Y.0006 Z-1.1367 I.0066 J-.0006

X-.0066 Y.0006 Z-1.1609 I.0066 J-.0006

X-.0066 Y.0006 Z-1.1851 I.0066 J-.0006

X-.0066 Y.0006 Z-1.2093 I.0066 J-.0006

X-.0066 Y.0006 Z-1.2334 I.0066 J-.0006

X-.0066 Y.0006 Z-1.2576 I.0066 J-.0006

X-.0066 Y.0006 Z-1.2818 I.0066 J-.0006

X-.0066 Y.0006 Z-1.306 I.0066 J-.0006

X-.0066 Y.0006 Z-1.3302 I.0066 J-.0006

X-.0066 Y.0006 Z-1.3544 I.0066 J-.0006

X-.0066 Y.0006 Z-1.3786 I.0066 J-.0006

X-.0066 Y.0006 Z-1.4027 I.0066 J-.0006

X-.0066 Y.0006 Z-1.4269 I.0066 J-.0006

X-.0066 Y.0006 Z-1.4511 I.0066 J-.0006

X-.0066 Y.0006 Z-1.4753 I.0066 J-.0006

X-.0066 Y.0006 Z-1.4995 I.0066 J-.0006

X-.0066 Y.0006 Z-1.5237 I.0066 J-.0006

X-.0066 Y.0006 Z-1.5478 I.0066 J-.0006

X-.0066 Y.0006 Z-1.572 I.0066 J-.0006

X-.0066 Y.0006 Z-1.5962 I.0066 J-.0006

X-.0066 Y.0006 Z-1.6204 I.0066 J-.0006

X-.0066 Y.0006 Z-1.6446 I.0066 J-.0006

X-.0066 Y.0006 Z-1.6688 I.0066 J-.0006

X-.0066 Y.0006 Z-1.693 I.0066 J-.0006

X-.0066 Y.0006 Z-1.7172 I.0066 J-.0006

X-.0066 Y.0006 Z-1.7413 I.0066 J-.0006

X-.0066 Y.0006 Z-1.7655 I.0066 J-.0006

X-.0066 Y.0006 Z-1.7897 I.0066 J-.0006

X.0056 Y-.0036 Z-1.8 I.0066 J-.0006

X.0056 Y-.0036 I-.0056 J.0036

X-.0268 Y.0168 I-.0162 J.0102

X.048 Y-.0301 I.0374 J-.0235

X0. Y.075 I-.0586 J.0368

Y-.075 I0. J-.075

Y.075 I0. J.075

G1 Y0.

Y.0375

G41 Y.075

G3 X0. Y.075 I0. J-.075

X-.0075 Y.0746 I0. J-.075

G1 G40 X-.0037 Y.0373

X0. Y0.

G0 Z.125

X5.0934 Y.0006

Z.0625

G1 Z0.

G3 X5.0934 Y.0006 Z-.0242 I.0066 J-.0006 -----------------------> I already have this, therefore I don't need the red ones below

X5.0934 Y.0006 Z-.0484 I.0066 J-.0006

X5.0934 Y.0006 Z-.0726 I.0066 J-.0006

X5.0934 Y.0006 Z-.0967 I.0066 J-.0006

X5.0934 Y.0006 Z-.1209 I.0066 J-.0006

X5.0934 Y.0006 Z-.1451 I.0066 J-.0006

X5.0934 Y.0006 Z-.1693 I.0066 J-.0006

X5.0934 Y.0006 Z-.1935 I.0066 J-.0006

X5.0934 Y.0006 Z-.2177 I.0066 J-.0006

X5.0934 Y.0006 Z-.2419 I.0066 J-.0006

X5.0934 Y.0006 Z-.266 I.0066 J-.0006

X5.0934 Y.0006 Z-.2902 I.0066 J-.0006

X5.0934 Y.0006 Z-.3144 I.0066 J-.0006

X5.0934 Y.0006 Z-.3386 I.0066 J-.0006

X5.0934 Y.0006 Z-.3628 I.0066 J-.0006

X5.0934 Y.0006 Z-.387 I.0066 J-.0006

X5.0934 Y.0006 Z-.4112 I.0066 J-.0006

X5.0934 Y.0006 Z-.4353 I.0066 J-.0006

X5.0934 Y.0006 Z-.4595 I.0066 J-.0006

X5.0934 Y.0006 Z-.4837 I.0066 J-.0006

X5.0934 Y.0006 Z-.5079 I.0066 J-.0006

X5.0934 Y.0006 Z-.5321 I.0066 J-.0006

X5.0934 Y.0006 Z-.5563 I.0066 J-.0006

X5.0934 Y.0006 Z-.5804 I.0066 J-.0006

X5.0934 Y.0006 Z-.6046 I.0066 J-.0006

X5.0934 Y.0006 Z-.6288 I.0066 J-.0006

X5.0934 Y.0006 Z-.653 I.0066 J-.0006

X5.0934 Y.0006 Z-.6772 I.0066 J-.0006

X5.0934 Y.0006 Z-.7014 I.0066 J-.0006

X5.0934 Y.0006 Z-.7256 I.0066 J-.0006

X5.0934 Y.0006 Z-.7497 I.0066 J-.0006

X5.0934 Y.0006 Z-.7739 I.0066 J-.0006

X5.0934 Y.0006 Z-.7981 I.0066 J-.0006

X5.0934 Y.0006 Z-.8223 I.0066 J-.0006

X5.0934 Y.0006 Z-.8465 I.0066 J-.0006

X5.0934 Y.0006 Z-.8707 I.0066 J-.0006

X5.0934 Y.0006 Z-.8949 I.0066 J-.0006

X5.0934 Y.0006 Z-.919 I.0066 J-.0006

X5.0934 Y.0006 Z-.9432 I.0066 J-.0006

X5.0934 Y.0006 Z-.9674 I.0066 J-.0006

X5.0934 Y.0006 Z-.9916 I.0066 J-.0006

X5.0934 Y.0006 Z-1.0158 I.0066 J-.0006

X5.0934 Y.0006 Z-1.04 I.0066 J-.0006

X5.0934 Y.0006 Z-1.0641 I.0066 J-.0006

X5.0934 Y.0006 Z-1.0883 I.0066 J-.0006

X5.0934 Y.0006 Z-1.1125 I.0066 J-.0006

X5.0934 Y.0006 Z-1.1367 I.0066 J-.0006

X5.0934 Y.0006 Z-1.1609 I.0066 J-.0006

X5.0934 Y.0006 Z-1.1851 I.0066 J-.0006

X5.0934 Y.0006 Z-1.2093 I.0066 J-.0006

X5.0934 Y.0006 Z-1.2334 I.0066 J-.0006

X5.0934 Y.0006 Z-1.2576 I.0066 J-.0006

X5.0934 Y.0006 Z-1.2818 I.0066 J-.0006

X5.0934 Y.0006 Z-1.306 I.0066 J-.0006

X5.0934 Y.0006 Z-1.3302 I.0066 J-.0006

X5.0934 Y.0006 Z-1.3544 I.0066 J-.0006

X5.0934 Y.0006 Z-1.3786 I.0066 J-.0006

X5.0934 Y.0006 Z-1.4027 I.0066 J-.0006

X5.0934 Y.0006 Z-1.4269 I.0066 J-.0006

X5.0934 Y.0006 Z-1.4511 I.0066 J-.0006

X5.0934 Y.0006 Z-1.4753 I.0066 J-.0006

X5.0934 Y.0006 Z-1.4995 I.0066 J-.0006

X5.0934 Y.0006 Z-1.5237 I.0066 J-.0006

X5.0934 Y.0006 Z-1.5478 I.0066 J-.0006

X5.0934 Y.0006 Z-1.572 I.0066 J-.0006

X5.0934 Y.0006 Z-1.5962 I.0066 J-.0006

X5.0934 Y.0006 Z-1.6204 I.0066 J-.0006

X5.0934 Y.0006 Z-1.6446 I.0066 J-.0006

X5.0934 Y.0006 Z-1.6688 I.0066 J-.0006

X5.0934 Y.0006 Z-1.693 I.0066 J-.0006

X5.0934 Y.0006 Z-1.7172 I.0066 J-.0006

X5.0934 Y.0006 Z-1.7413 I.0066 J-.0006

X5.0934 Y.0006 Z-1.7655 I.0066 J-.0006

X5.0934 Y.0006 Z-1.7897 I.0066 J-.0006

X5.1056 Y-.0036 Z-1.8 I.0066 J-.0006

X5.1056 Y-.0036 I-.0057 J.0036

X5.0732 Y.0168 I-.0162 J.0102

X5.148 Y-.0301 I.0374 J-.0235

X5.1 Y.075 I-.0586 J.0368

Y-.075 I0. J-.075

Y.075 I0. J.075

G1 Y0.

Y.0375

G41 Y.075

G3 X5.1 Y.075 I0. J-.075

X5.0925 Y.0746 I0. J-.075

G1 G40 X5.0963 Y.0373

X5.1 Y0.

G0 Z.125

Z1. M9

M5

G91 G28 Z0

M11 G90 G49 B0

M10 G30 X0 Y0 G90

M1

Link to comment
Share on other sites

It works great Ajmer, I tried to HELIX BORE it works great.

 

On the other hand, I'm having same problem on CIRCLE mill, can you teach me how to solve that extra code too?

 

N235(.250, 1/4 CEM 2FLTS 2.00LOC )

G0 G17 G40 G49 G53 G80 G90 Z0

T235 M6(DRILL 6X .386 HOLES, CUT#6)

M11 G90 G54 B90.

M10

X-5.138 Y-.0527 S2139 M3

M56 H1 D9

G43 H1 D9 Z.25 T316 M8(DOC= Z-1.8)

Z.1

G1 Z.05 F6.42

G3 Y-.0527 Z-.0987 I.038 J.0527 --------------------> Good to keep on blue value

Y-.0527 Z-.2473 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-.3959 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-.5446 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-.6932 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-.8419 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-.9905 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-1.1392 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-1.2878 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-1.4365 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-1.5851 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

Y-.0527 Z-1.7338 I.038 J.0527 --------------------> Not good to keep on red values, redundant...

X-5.0465 Y.0369 Z-1.8 I.038 J.0527

Y.0369 I-.0535 J-.0369

X-5.1 Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

G41 I0. J-.075

G0 Z.25

X-.038 Y-.0527

Z.1

Link to comment
Share on other sites

Yes, I did (thank you).

 

pxout #X output

if prv_xabs <> xabs,

[

if absinc$ = zero, xabs, !xinc

else, xinc, !xabs

]

 

 

pyout #Y output

if prv_yabs <> yabs,

[

if absinc$ = zero, yabs, !yinc

else, yinc, !yabs

]

 

Please take at look.

*********************************************

ORIGINAL

 

N235(.250, 1/4 CEM 2FLTS 2.00LOC )

G0 G17 G40 G49 G53 G80 G90 Z0

T235 M6(DRILL 6X .386 HOLES, CUT#6)

M11 G90 G54 B0.

M10

X-5.138 Y-.0527 S2139 M3

M56 H1 D9

G43 H1 D9 Z.25 T316 M8(DOC= Z-1.8)

Z.1

G1 Z.05 F6.42

G3 X-5.138 Y-.0527 Z-.0987 I.038 J.0527 =========================> it has complete X, Y value

X-5.138 Y-.0527 Z-.2473 I.038 J.0527 =========================> X, Y value redundant

X-5.138 Y-.0527 Z-.3959 I.038 J.0527

X-5.138 Y-.0527 Z-.5446 I.038 J.0527

X-5.138 Y-.0527 Z-.6932 I.038 J.0527

X-5.138 Y-.0527 Z-.8419 I.038 J.0527

X-5.138 Y-.0527 Z-.9905 I.038 J.0527

X-5.138 Y-.0527 Z-1.1392 I.038 J.0527

X-5.138 Y-.0527 Z-1.2878 I.038 J.0527

X-5.138 Y-.0527 Z-1.4365 I.038 J.0527

X-5.138 Y-.0527 Z-1.5851 I.038 J.0527

X-5.138 Y-.0527 Z-1.7338 I.038 J.0527

X-5.0465 Y.0369 Z-1.8 I.038 J.0527

X-5.0465 Y.0369 I-.0535 J-.0369

X-5.1 Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

G41 X-5.1 Y.075 I0. J-.075

G0 Z.25

X-.038 Y-.0527

Z.1

G1 Z.05

G3 X-.038 Y-.0527 Z-.0987 I.038 J.0527

X-.038 Y-.0527 Z-.2473 I.038 J.0527

X-.038 Y-.0527 Z-.3959 I.038 J.0527

X-.038 Y-.0527 Z-.5446 I.038 J.0527

X-.038 Y-.0527 Z-.6932 I.038 J.0527

X-.038 Y-.0527 Z-.8419 I.038 J.0527

X-.038 Y-.0527 Z-.9905 I.038 J.0527

X-.038 Y-.0527 Z-1.1392 I.038 J.0527

X-.038 Y-.0527 Z-1.2878 I.038 J.0527

X-.038 Y-.0527 Z-1.4365 I.038 J.0527

X-.038 Y-.0527 Z-1.5851 I.038 J.0527

X-.038 Y-.0527 Z-1.7338 I.038 J.0527

X.0535 Y.0369 Z-1.8 I.038 J.0527

X.0535 Y.0369 I-.0535 J-.0369

X0. Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

X0. Y.075 I0. J-.075

G0 Z.25

X5.062 Y-.0527

Z.1

G1 Z.05

G3 X5.062 Y-.0527 Z-.0987 I.038 J.0527

X5.062 Y-.0527 Z-.2473 I.038 J.0527

X5.062 Y-.0527 Z-.3959 I.038 J.0527

X5.062 Y-.0527 Z-.5446 I.038 J.0527

X5.062 Y-.0527 Z-.6932 I.038 J.0527

X5.062 Y-.0527 Z-.8419 I.038 J.0527

X5.062 Y-.0527 Z-.9905 I.038 J.0527

X5.062 Y-.0527 Z-1.1392 I.038 J.0527

X5.062 Y-.0527 Z-1.2878 I.038 J.0527

X5.062 Y-.0527 Z-1.4365 I.038 J.0527

X5.062 Y-.0527 Z-1.5851 I.038 J.0527

X5.062 Y-.0527 Z-1.7338 I.038 J.0527

X5.1535 Y.0369 Z-1.8 I.038 J.0527

X5.1535 Y.0369 I-.0535 J-.0369

X5.1 Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

X5.1 Y.075 I0. J-.075

G0 Z.25

 

 

******************************************

 

After changing the code as you suggested

 

 

N235(.250, 1/4 CEM 2FLTS 2.00LOC )

G0 G17 G40 G49 G53 G80 G90 Z0

T235 M6(DRILL 6X .386 HOLES, CUT#6)

M11 G90 G54 B0.

M10

X-5.138 Y-.0527 S2139 M3

M56 H1 D9

G43 H1 D9 Z.25 T316 M8(DOC= Z-1.8)

Z.1

G1 Z.05 F6.42

G3 Y-.0527 Z-.0987 I.038 J.0527 ==================> X value is missing

Y-.0527 Z-.2473 I.038 J.0527 ==================> Y value is redudant

Y-.0527 Z-.3959 I.038 J.0527

Y-.0527 Z-.5446 I.038 J.0527

Y-.0527 Z-.6932 I.038 J.0527

Y-.0527 Z-.8419 I.038 J.0527

Y-.0527 Z-.9905 I.038 J.0527

Y-.0527 Z-1.1392 I.038 J.0527

Y-.0527 Z-1.2878 I.038 J.0527

Y-.0527 Z-1.4365 I.038 J.0527

Y-.0527 Z-1.5851 I.038 J.0527

Y-.0527 Z-1.7338 I.038 J.0527

X-5.0465 Y.0369 Z-1.8 I.038 J.0527

Y.0369 I-.0535 J-.0369

X-5.1 Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

G41 I0. J-.075

G0 Z.25

X-.038 Y-.0527

Z.1

G1 Z.05

G3 Y-.0527 Z-.0987 I.038 J.0527

Y-.0527 Z-.2473 I.038 J.0527

Y-.0527 Z-.3959 I.038 J.0527

Y-.0527 Z-.5446 I.038 J.0527

Y-.0527 Z-.6932 I.038 J.0527

Y-.0527 Z-.8419 I.038 J.0527

Y-.0527 Z-.9905 I.038 J.0527

Y-.0527 Z-1.1392 I.038 J.0527

Y-.0527 Z-1.2878 I.038 J.0527

Y-.0527 Z-1.4365 I.038 J.0527

Y-.0527 Z-1.5851 I.038 J.0527

Y-.0527 Z-1.7338 I.038 J.0527

X.0535 Y.0369 Z-1.8 I.038 J.0527

Y.0369 I-.0535 J-.0369

X0. Y.075 I-.0792 J-.0547

Y-.075 I0. J-.075

Y.075 I0. J.075

I0. J-.075

G0 Z.25

X5.062 Y-.0527

Z.1

Link to comment
Share on other sites

So if your pcirout postblock looks like this:

 

pcirout		 #Output to NC of circular interpolation
  if not(arccomp), pcompwarn
  if full_arc_flg$,
    [
    if plane$ = zero, result = force(xabs,yabs)   #force coordinate on full arc			 
    if plane$ = one,  result = force(yabs,zabs)   #force coordinate on full arc			 
    if plane$ = two,
	  [
	  result = force(xabs,xabs)   #force coordinate on full arc			 
	  result = force(zabs,zabs)   #force coordinate on full arc			 
	  ]
    ]
  if hel_2100 = one, pcirout2
  else, pcirout1

 

Your control def is set to output full arcs (as I can see from your code)

 

the full_arc_flg$ is true, so it enters the square bracket are and sets the force xabs and yabs for plane zero (top)

That value is being forced out.

I recall this being done by design "for safety reasons"

If you indeed have tried the code without the redundant values on the full arcs, and wish to proceed:

 

Change that post block to this:

pcirout		 #Output to NC of circular interpolation
  if not(arccomp), pcompwarn
  #if full_arc_flg$,
  #  [
  #  if plane$ = zero, result = force(xabs,yabs)   #force coordinate on full arc			 
  #  if plane$ = one,  result = force(yabs,zabs)   #force coordinate on full arc			 
  #  if plane$ = two,
  #    [
  #    result = force(xabs,xabs)   #force coordinate on full arc			 
  #    result = force(zabs,zabs)   #force coordinate on full arc			 
  #   ]
  #  ]
  if hel_2100 = one, pcirout2
  else, pcirout1

Link to comment
Share on other sites
If you indeed have tried the code without the redundant values on the full arcs, and wish to proceed:

He only wants it on Helical bores not full 3D Surfacing from what I could gather in this thread. So wouldn't you need to throw some op_id$ codes in there so for the operations he want it will post like your example and for the others it will post safe?

 

For X7 These are the following:

op_id$ 18 is circle mill.

op_id$ 100 is Threadmill.

op_id$ 106 is Helix Bore.

Link to comment
Share on other sites

He only wants it on Helical bores not full 3D Surfacing from what I could gather in this thread. So wouldn't you need to throw some op_id$ codes in there so for the operations he want it will post like your example and for the others it will post safe?

 

For X7 These are the following:

op_id$ 18 is circle mill.

op_id$ 100 is Threadmill.

op_id$ 106 is Helix Bore.

 

Would make no difference; if the x or y or z values are different than the previous x y or z values the value will output.

The code I removed only applies for full 360 deg arcs/helicies.

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