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:

Why rapid in 4axis?


flippinjig
 Share

Recommended Posts

Hi guys,

 

Why do I get a rapid move in the line before compensation is turned off in 4axis taper?

 

Last lines of program (with fastmode set to zero):

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

X-1.17999 Y.18502 U-.01892 V-.00141 pedm prapid

X-1.18431 Y.15499 U-.01858 V.00025 pedm prapid

G0 X-1.18787 Y.12485 U-.01835 V.00193 pedm prapid

G40 X-.9 Y.1 U0. V0. pedm prapid

M50 pedm p__51:1125

M30 peof

% peof

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

 

last few lines of NCI code:

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

 

11

0 -1.184311 0.154986 -0. -1.202893 0.155238 2.125 0. 0

11

0 -1.187866 0.12485 -0. -1.206219 0.126778 2.125 0. 300

11

140 -0.9 0.1 -0. -0.9 0.1 2.125 0. 20000

1004

 

1003

-0.9 0.1 0.

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

 

pedm code:

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

pedm #4 Axis Taper

pcntr

if cntrflag = one, g20code = one

else, g20code = zero

g30code = g20code

prapid

 

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

 

I hope this helps someone to point me in the right direction.

 

Thad's rule:

ver 8.1.1 wire

fanuc 16W wire post

Link to comment
Share on other sites

mark, i don't know much about post but will this help.

 

pedm #4 Axis Taper

pcntr #Set control flags

if cntrflag = one, g20code = one

else,

[

if rapid_off = yes, # Force lead-off moves to be 'G0' rapid motions

g20code = zero

]

g30code = g20code prapidplinxy4 #Linear XY component - 4 axis direct and taper

# if RAPID_OFF = YES, Force linear lead-off moves to be 'G0' motions

if (rapid_off = yes & prv_cend = three)

& (g20code< two & g30code < two), g20code$ = zero

sg20code, pxout, pyout, pzout

!g30code

 

[ 08-24-2006, 09:42 AM: Message edited by: del ]

Link to comment
Share on other sites

I got it to work by putting # in front of these lines:

 

 

code:

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

if cntrflag = one, g20code = one

else, g20code = zero

g30code = g20code

 

(I don't understand what these lines do but it didn't change anything other than removing the G0.)

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

 

 

 

 

code

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

 

cntrflag : 0 #Contour flag, 0 = before, 1 = contour, 2 = after

#3 = single move case.

 

(I tried changing to 1, 2 or 3 but it didn't make any difference.)

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

 

NCI code:

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

11

0 -1.192674 0.064355 -0. -1.210884 0.069664 2.125 0. 0

11

0 -1.190654 0.094633 -0. -1.208883 0.098248 2.125 0. 0

11

0 -1.187866 0.12485 -0. -1.206219 0.126778 2.125 0. 300

11

140 -0.9 0.1 -0. -0.9 0.1 2.125 0. 20000

1004

 

1003

-0.9 0.1 0.

 

 

I think it has something to do with ".300" which is a rapid feedrate but where does that come from?

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

 

 

Thanks for your help.

 

Thad's rule:

ver 8.1.1 wire

fanuc 16W wire post

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