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:

ROTARY POST HELP


HEAVY METAL
 Share

Recommended Posts

it has been awhile but john summers and Slepy Dremr helped me with this post for a indexer. i need the rotary code to look like this N5M80

N6 M80

N7 M80 for 0 deg

 

N10 M90

N11 M99

N12 M90 FOR 90 DEG ETC

the post has worked great . i had not used the indexer in awhile and something has got missed up in the post when i tried to output code

i ran the debug and cant figure what has changed but it is putting two N numbers on the same line and posting out angle again between holes. on the same plane. from what i can tell it is something in this section (ptlchg0) im going to put the txt and post file on the ftp under the name hillyer in the txt and psot file folder. if anyone could help i would be grateful.

 

 

psof 44

(PROGRAM NAME - T ) psof 44

(DATE=DD-MM-YY - 08-10-06 TIME=HH:MM - 19:48 ) psof 44

N1 G90 psof 44

( M6 BY 1 FORM TAP DRILL ) psof ptoolcomment 44

( DRILL ) psof pcomment2 44

N2 G0 G17 X0 Y0 S400 M3 psof 44

N3 G80 T0101 psof 44

N4 G0 S1746 M3 psof 44

N5 M80 psof p__22:888 44

N6 M80 psof p__22:888 44

N7 M80 psof p__22:888 44

N8 G0 G90 X-29372 Y-8003 psof 44

N9 Z30000 psof 44

N10 G83 X-2000 Y-2000 Z-10000 R1000 F1746 ppeck 48

N11 G80 F30000 Z30000 ppeck_2 pcanceldc 50

N12 G00 X19215 Y-2093 ppeck_2 puppeck 50

N13 G83 X-2000 Y-2000 Z-10000 R1000 F1746 ppeck_2 puppeck 50

N14 G80 F30000 Z30000 pcanceldc 52

N15 M90 ptlchg0 p__24:911 78

N16 M99 ptlchg0 p__24:911 78

N17 M90 ptlchg0 p__24:911 78

N18 X-14034 Y-24988 Z50606 confused.gif N18 M90 ptlchg0 p__24:911 78

N19 M99 ptlchg0 p__24:911 78

N20 M90 ptlchg0 p__24:911 78

N21 G83 X-2000 Y-2000 Z10606 R21606 F1746 ppeck 82

N22 G80 F30000 Z50606 ppeck_2 pcanceldc 84

N23 G00 X19230 Y-23827 ppeck_2 puppeck 84

N24 G83 X-2000 Y-2000 Z10606 R21606 F1746 ppeck_2 puppeck 84

N25 G80 F30000 Z50606 pcanceldc 86

N26 Z30000 peof pretract 88

N27 X0 Y0 Z30000 peof pretract 88

N28 G0 S400 M3 peof 88

N29 M5 peof 88

N30 M02 peof 88

Link to comment
Share on other sites

Sorry, I've been busy

 

here try this

 

change

 

code:

prapidout       #Output to NC of linear movement - rapid               

pbld, n$, pccdia, e$

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, e$

pbld, n$, sgcode, pxout, pyout, pzout, pcout, pindex, strcantext, e$

to

code:

prapidout       #Output to NC of linear movement - rapid               

pbld, n$, pccdia, e$

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, e$

pbld, n$, sgcode, pxout, pyout, pzout, strcantext, e$

pbld, pcout, pindex, strcantext, e$

I think you need to break the xyz and rotary moves.

Link to comment
Share on other sites

hi slepy that seemed to work on breaking up the moves. but for some reason the 90 deg angle outputs then positions over hole then outputs angle again??????

 

(PROGRAM NAME - T )

(DATE=DD-MM-YY - 09-10-06 TIME=HH:MM - 13:21 )

N1 G90

( M6 BY 1 FORM TAP DRILL )

( DRILL )

N2 G0 G17 X0 Y0 S400 M3

N3 G80 T0101

N4 G0 S1746 M3

N5 M80

N6 M80

N7 M80

N8 G0 G90 X-29372 Y-8003

N9 Z30000

N10 G83 X-2000 Y-2000 Z-10000 R1000 F1746

N11 G80 F30000 Z30000

N12 G00 X19215 Y-2093

N13 G83 X-2000 Y-2000 Z-10000 R1000 F1746

N14 G80 F30000 Z30000

N15 M90

N16 M99

N17 M90

N18 X-14034 Y-24988 Z50606

N19 M90

N20 M99

N21 M90

N22 G83 X-2000 Y-2000 Z10606 R21606 F1746

N23 G80 F30000 Z50606

N24 G00 X19230 Y-23827

N25 G83 X-2000 Y-2000 Z10606 R21606 F1746

N26 G80 F30000 Z50606

N27 Z30000

N28 X0 Y0 Z30000

N29 G0 S400 M3

N30 M5

N31 M02

Link to comment
Share on other sites

here just try this

code:

prapidout       #Output to NC of linear movement - rapid

pbld, n$, pccdia, e$

pcan1, pbld, n$, sgplane, `sgcode, sgabsinc, e$

pbld, n$, sgcode, pxout, pyout, pzout, strcantext, e$

# pbld, pcout, pindex, strcantext, e$

it appears you don't need the index call here.

Link to comment
Share on other sites

quote:

dave i set the fastmode value in the post to 0 and this post the debugg info


Heavy,

Thats what I thought I remeber doing that at school years ago to learn how posts worked.

 

I have this...

# --------------------------------------------------------------------------

# Debugging and Factory Set Program Switches

# --------------------------------------------------------------------------

fastmode$ : 0$ #Posting speed optimizition

bug1$ : 2 #0=No display, 1=Generic list box, 2=Editor

bug2$ : 1 #Append postline labels, non-zero is column position?

bug3$ : 0 #Append whatline no. to each NC line?

bug4$ : 0 #Append NCI line no. to each NC line?

whatno$ : yes$ #Do not perform whatline branches? (leave as yes)

linktolvar$ : 1 #Associate X tolerance variables to V9- variable?

linkplnvar$ : 1 #Associate X plane specific variables to V9- variable?

linklvar$ : 1 #Associate X lathe specific variables to V9- variable?

 

But I dont get the post blocks in the posted G-gode?

Link to comment
Share on other sites

I have tried 0 and 1 and still no post blocks in the posted G-code?

 

# --------------------------------------------------------------------------

# Debugging and Factory Set Program Switches

# --------------------------------------------------------------------------

fastmode$ : 0 #Posting speed optimizition

 

PS sorry for the Hijack mate cheers.gif

Link to comment
Share on other sites

# --------------------------------------------------------------------------

# Debugging and Factory Set Program Switches

# --------------------------------------------------------------------------

fastmode$ : 0 #Posting speed optimizition

bug1$ : 2 #0=No display, 1=Generic list box, 2=Editor

bug2$ : 1 #Append postline labels, non-zero is column position?

bug3$ : 0 #Append whatline no. to each NC line?

bug4$ : 1 #Append NCI line no. to each NC line?

whatno$ : yes$ #Do not perform whatline branches? (leave as yes)

linktolvar$ : 1 #Associate X tolerance variables to V9- variable?

linkplnvar$ : 1 #Associate X plane specific variables to V9- variable?

linklvar$ : 1 #Associate X lathe specific variables to V9- variable?

 

Still no post blocks headscratch.gif

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