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:

Okuma lathe home position


MSL
 Share

Recommended Posts

Hi,
How can I change my Okuma lathe post to output G0 instead of G01 for home position? I get correct output on some operations. I think the post's output 
is base on nextop. 
Thank you.


N100
( OPERATION: 1 )
(TG=1 | OD ROUGH RIGHT - 80 DEG. | INSERT - CNMG-432)
(FACE)
M109
G136
G0 X40. Z10.
G0 T010101
G18
G97 S868 M03
G0 X2.2 Z0. M8
G96 S500
G95 G1 X-.0625 F.005
G0 Z.1
M9
G136
T000100
G0 X40. Z10.                 <---------- This output is correct
M05
M01
N110
( OPERATION: 2 )
(TG=1 | OD ROUGH RIGHT - 80 DEG. | INSERT - CNMG-432)
(ROUGH OD)
M109
G136
G50 S1200
G0 X40. Z10.
G0 T010101
G18
G97 S1190 M03
G0 X1.6048 Z.2 M8
G96 S500
G1 Z.1 F.01
Z-.598

G18 G3 X.496 Z-.0612 L.0332
G1 Z-.598
X.8345
X.9759 Z-.5273
M9
G136
T000100
G1 X40. Z10.              <---------- Need to change G1 to G0
M05
M01
N120
( OPERATION: 3 )
(TG=2 | OD FINISH RIGHT - 35 DEG. | INSERT - VNMG-431)
(FINISH OD)
M109
G136
G0 X40. Z10.
G0 T020202
G18
G97 S800 M03
G0 X.49 Z.07 M8
G1 Z-.03 F.003
Z-.6
X.6314 Z-.5293
M9
G136
T000200
G1 X40. Z10.           <---------- Need to change G1 to G0
M2
----------------------------------------------------------------------------------------------------


pl_retract      #Retract tool based on next tool gcode, lathe (see ptoolend)
      cc_pos$ = zero
      pmap_home   #Get home position, xabs
      ps_inc_calc #Set inc.
      pbld, n$, psccomp, e$
      if home_id, pbld, n$, "G20", *home_id, e$
      else,
        [
        pbld, n$, *toolno, e$
        pbld, n$, *sgcode, pfxout, pfyout, pfzout, e$
        ]
      if n1_gcode <> 1003, pcan1, pbld, n$, pnullstop, strcantext, e$

 

 

Thank you.

 

Link to comment
Share on other sites
Hi,
I get inconstant numbers and some negative numbers for my Sub spindle home position? How can I fix this?  
Please see G-Codes below.
Thank you.
N100
( OPERATION: 15 )
(TG=1 | SUB.80 DEG. | INSERT - CNMG-432)
(SUB FACE)
M109
G136
G0 X80. Z-22.4316             <--------------Should be X40. Z40.
G0 T010101
G18
G97 S200 M04
G0 X6.03 Z.01 M8
X2.2
G95 G1 X-.0625 F.01
G0 Z.11
X2.2
Z0.
G1 X-.0625 F.005
G0 Z.1
( OPERATION: 16 )
(ROUGH SUB)
G96 S500
X1.8045
Z.2
.
.
.
X.7929 Z-.5473
G0 X6.03
M9
G136
T000100
G00 X80. Z-22.4316                <--------------Should be X40. Z40.
M05
M01
N110
( OPERATION: 17 )
(TG=7 | 1/2 FLAT ENDMILL)
(SUB. HEX)
M110
G138
G0 X40. Y-40. Z-40.           <--------------Should be X40. Y40. Z40.
G0 T070707
G17
G94
G0 X.8604 Y.1061 Z-17.9384
C0.
M8
SB=5000 M13
Z-18.0884
.
.
.
G0 Z-17.9384
M9
G136
T000700
G00 X40. Y-40. Z-40. C0.           <--------------Should be X40. Y40. Z40. C0.
M12
M01
N120
( OPERATION: 18 )
(TG=8 | NO. 7 DRILL)
(SUB. FACE DRILL)
M110
G136
G0 X80. Z-40.                   <--------------Should be X40. Z40.
G0 T080808
G17
G94
G0 X1.5222 Z1.
C0.
M8
SB=2500 M13
G94
G183 X1.5222 Z-17.9384 C0. K18.6384 D.05 L.05 DA=.1 F3.
C300. M16
C240. M16
C180. M16
C120. M16
C60. M16
G180
G0 Z1.
M9
G136
T000800
G00 X80. Z-40. C0. M15                 <--------------Should be X40. Z40.  
M2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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