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:

Tailstock output position


Recommended Posts

What would I need to add or change in my ptailstock post section here

ptailstock$      #NCI code = 904 available variables:
                #tlstck_on, stck_init_z, stck_final_z
                if toolchng <> two, ptoolend$
                toolend_flg = zero  #Do not execute ptoolend again after xfer
                [
                 !spaces$
                 spaces$ = zero
                 pbld, n$, "M01",e$
                 if prv_spaces$ > 0, " ",e$
                 if tlstck_on$ = 0,
                 [
                 pbld, n$, "M05",e$
                 pbld, *sm26, "(Retract Tailstock)", e$
                 pbld, n$, "M712", "(Tailstock Interlock Off)", e$
                 ]
                 if tlstck_on$ = 1,
                 [
                 pbld, n$, "M05", e$
                 pbld, n$, "M625", "(Work 1)", e$
                 pbld, n$, "M434", "(Thrust 1)", e$
                 pbld, *sm25, "(Engage Tailstock)", e$
                 pbld, n$, "M713", "(Tailstock Interlock On)", e$
                 ]
                 if prv_spaces$ > 0, " ",e$
                 spaces$ = prv_spaces$
                ]

 

To get it to output after my header section like this


%
O0000(TEST)
(PROGRAM NAME - TEST)
(DATE=DD-MM-YY - 01-06-18 TIME=HH:MM - 08:34)
(MCX FILE - V:\POST DEVELOPMENT FOR CRAIG)
(NC FILE - C:\USERS\MCCLAY\DOCUMENTS\MY MCAM2018\LATHE\NC\TEST.NC)
(MATERIAL - ALUMINUM MM - 2024)
(POST DEV - IN-HOUSE SOLUTIONS INC.)
(TOOL - 12  - MVJNR 2525M 16 - R08 - OFFSET - 12  - INSERT - VNMG 16 04 08 - HOLDER - MVJNR 2525M 16)
(TOOL - 2   - MVJNL 2525M 16 - R12 - OFFSET - 2   - INSERT - VNMG 16 04 12 - HOLDER - MVJNL 2525M 16)
(TOOL - 4   - MVJNL 2525M 16 - R12 - OFFSET - 4   - INSERT - VNMG 16 04 12 - HOLDER - MVJNL 2525M 16)

M01
 
M05
M625(Work 1)
M434(Thrust 1)
M25(Engage Tailstock)
M713(Tailstock Interlock On)

G21
(TOOL - 12 OFFSET - 12)
(MVJNR 2525M 16 - R08 INSERT - VNMG 16 04 08)
(ROUGH)
G54
N12 T1212
M611
G0Y0
G18 G99
M46
G97 S56 M03
G0 Z-1.263 M8
G0 X254.
G50 S4000
G96 S45

 

Is currently out putting above the % sign at the top of the NC code.

 

Thanks

 

 

Link to comment
Share on other sites

It will depend on "where" in the NCI data stream, the "NCI Gcode 904" is located.

If the location in the NCI File is "after the 1st tool change", then you won't be able to get 'ptailstock$' to do what you are asking. In this case, you would be better off using a "Manual Entry" Toolpath, as the 1st Operation in the Ops Manager, and customizing your Post to "save the Operation Comment, if still processing 'pheader'".

Link to comment
Share on other sites
On 6/2/2018 at 5:39 AM, Colin Gilchrist said:

It will depend on "where" in the NCI data stream, the "NCI Gcode 904" is located.

If the location in the NCI File is "after the 1st tool change", then you won't be able to get 'ptailstock$' to do what you are asking. In this case, you would be better off using a "Manual Entry" Toolpath, as the 1st Operation in the Ops Manager, and customizing your Post to "save the Operation Comment, if still processing 'pheader'".

Hi Colin

 

Is before the first tool change in this instance, works fine if it is an operation after other operations, ie. face then centre then call the tailstock.

In this instance the parts are pre faced and centred, but we would still like the program to control the tailstock entry.

Anyway here is the nci stream for the start of the program through to the first tool change, any ideas ?

1050
20 74 17 4 2018 10 39 19 V:\DRAWINGS\DRAWINGS\C.N.C\TEST.MCAM
20600
3518 6A1B4B60-B7A7-11DB-9DF8-001422F4251F "" "" Machine Base
20600
3519 6A1B4B62-B7A7-11DB-9DF8-001422F4251F "Z" "Z" Lathe Right Spindle Z Axis (<--+)
20600
3520 6A1B4B64-B7A7-11DB-9DF8-001422F4251F "A" "A" Lathe Right Spindle C Axis
20600
3521 6A1B4B66-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Chuck
20600
3522 6A1B4B68-B7A7-11DB-9DF8-001422F4251F "Z" "Z" Lathe Left Spindle Z Axis (-->+)
20600
3523 6A1B4B6A-B7A7-11DB-9DF8-001422F4251F "X" "X" Lathe Upper Turret X Axis
20600
3524 6A1B4B6C-B7A7-11DB-9DF8-001422F4251F "Y" "Y" Lathe Upper Turret Y Axis
20600
3525 6A1B4B6E-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Upper Turret
20600
3526 6A1B4B70-B7A7-11DB-9DF8-001422F4251F "Z" "Z" Lathe Left Spindle Z Axis (-->+)
20600
3527 6A1B4B72-B7A7-11DB-9DF8-001422F4251F "X" "X" Lathe Lower Turret X Axis
20600
3528 6A1B4B74-B7A7-11DB-9DF8-001422F4251F "Y" "Y" Lathe Lower Turret Y Axis
20600
3529 6A1B4B76-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Lower Turret
20600
3530 6A1B4B78-B7A7-11DB-9DF8-001422F4251F "A" "A" Lathe Left Spindle C Axis
20600
3531 6A1B4B7A-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Chuck
20600
3532 84945F2A-683C-11E8-BA22-74D43583F18E "" "" Chuck Jaws (Left Spindle)
20600
3533 84945F2C-683C-11E8-BA22-74D43583F18E "" "" Stock
20600
3534 6A1B4B7C-B7A7-11DB-9DF8-001422F4251F "Z" "Z" Lathe Right Spindle Z Axis (<--+)
20600
3535 6A1B4B7E-B7A7-11DB-9DF8-001422F4251F "X" "X" Lathe Upper Turret X Axis
20600
3536 6A1B4B80-B7A7-11DB-9DF8-001422F4251F "Y" "Y" Lathe Upper Turret Y Axis
20600
3537 6A1B4B82-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Upper Turret
20600
3538 6A1B4B84-B7A7-11DB-9DF8-001422F4251F "Z" "Z" Lathe Right Spindle Z Axis (<--+)
20600
3539 6A1B4B86-B7A7-11DB-9DF8-001422F4251F "X" "X" Lathe Lower Turret X Axis
20600
3540 6A1B4B88-B7A7-11DB-9DF8-001422F4251F "Y" "Y" Lathe Lower Turret Y Axis
20600
3541 6A1B4B8A-B7A7-11DB-9DF8-001422F4251F "" "" Lathe Lower Turret
20600
3542 5400FA3C-9E81-11E7-BEE9-74D43583F18E "" "" Tailstock
20600
3543 84945F2E-683C-11E8-BA22-74D43583F18E "" "" Center
20601
3560 6A1B4B9B-B7A7-11DB-9DF8-001422F4251F 0 Left/Upper
20601
3563 6A1B4BA6-B7A7-11DB-9DF8-001422F4251F 0 Left/Lower
20601
3566 6A1B4BB1-B7A7-11DB-9DF8-001422F4251F 0 Right/Upper
20601
3569 6A1B4BBC-B7A7-11DB-9DF8-001422F4251F 0 Right/Lower
999
218 0 1
1016
1 0 218 1 0. 0. 0. 41 -1 1 0 0 0. 0 0 0 1 0. 1
950
0 0 0 3560 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1025
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1020
135. 19.05 19.05 -67.5 0. 0. 0 0. 0. 0. 0. 0 0 ALUMINUM mm - 2024
911
0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
912
0 0 0 0 0 0 0 0 0 0
904
1 100. -5.
999
60 0 2
1051
Mplmaster Generic 3/4 Axis Lathe - post testing
1053
Machine Group-2
1008
Rough
1011
0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
1012
0 0 0 0 0 0 0 1 0 0
1013
0 0.8 0. 0 5 0. 0. 0. 101 MVJNR 2525M 16 - R08
1014
0. 1. 0. 0. 0. 1. 1. 0. 0.
1016
2 0 60 1 0. 0. 0. 42 0 1 0 0 0. 12 1 2 2 0. 2
1017
1. 0. 0. 0. 1. 0. 0. 0. 1.
950
0 0 0 3560 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1025
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1027
1. 0. 0. 0. 1. 0. 0. 0. 1. 0. 0. 0.
1020
135. 19.05 19.05 -67.5 0. 0. 0 0. 0. 0. 0. 0 4000 ALUMINUM mm - 2024
20010
Top
20011

20012
Lathe upper left
20013

20014
Top
20015

20016
ALUMINUM mm - 2024
20017

20018
Toolpath Group-2
20019

20001
MVJNR 2525M 16 - R08
20002
NONE
20100
2 0 1 0 0. 1 12 12 1
20101

 

Thanks

Link to comment
Share on other sites
2 hours ago, Mick said:

Obvious question on my part.... It is an In-House post. Why not ask your reseller, and get them to process the modification through In-House? I'm sure they could action that pretty promptly.

Stop stirring Mike !!

I am doing this as a favor to another company who can't justify the expense of buying the post through our re-seller and it has also been a good learning curve for me. Have made a lot of post mods myself and they are pretty happy with how it is working so far.

Link to comment
Share on other sites
4 hours ago, MrFish said:

Stop stirring Mike !!

I am doing this as a favor to another company who can't justify the expense of buying the post through our re-seller and it has also been a good learning curve for me. Have made a lot of post mods myself and they are pretty happy with how it is working so far.

Actually, if you re-read it, I'm not stirring. I don't particularly care, but because it said "In House" the post was obviously from Inhouse, and as such, they should be able to make the mod, or show you, and as is always suggested here, that contact should be through your reseller.

Still, take it how you see it.... :)

Link to comment
Share on other sites

Ya need to do a bit of editing first get the ptailstock correct

ptailstock$      #NCI code = 904 available variables:
      #tlstck_on, stck_init_z, stck_final_z
      pheader$
      pmisc_op_comment
      if toolchng <> two, ptoolend$
      toolend_flag = zero  #Do not execute ptoolend again after xfer
      #pbld, n$, "M01", e$
      !spaces$
      spaces$ = zero
      if startflg,
            [
             bld = 1
             pbld, no_spc$, n$, "M157", e$
             pbld, no_spc$, n$, "G195", "SP=1", e$
             m157_flg = 1
             bld = 0
            ]     
      bld = 1
      if prv_spaces$ > zero, " ", e$
      if tlstck_on$ = zero, pbld, *sm26 " (RETRACT TAILSTOCK)", e$
      if tlstck_on$ = one, pbld, *sm25, " (ENGAGE TAILSTOCK)", e$
      if prv_spaces$ > zero, " ", e$
      bld = 0
      spaces$ = prv_spaces$
      pbld, n$, "M01", e$

 

Then add the misopflag to the header, Take a look at Generic Fanuc 4X MT_Lathe.pst

 

pheader$         #Start of file      
    if miscopflag = zero,
      [
      pheader_custom    
      !spaces$
      spaces$ = 0
      if lserial,
                 [
                  "$", sprogname$,".MIN", "%", e$
                  if autodoor, pbld, n$, "M90", e$ 
                  n$, "G270", e$
                  ]
      else, 
           [
            if autodoor, pbld, n$, "M90", e$
            n$, "G270", e$,
            "(", sprogname$,".MIN", ")", e$
            ]   
      n$, "(", "POST REV - 05", ")", e$
      n$, "(DATE - ", date$, ")", e$
      n$, "(TIME - ", time$, ")", e$
      spaces$ = prv_spaces$
      if use_graph, pgraph
      startflg = 1
      miscopflag = one
      if t$ = 0, t$ = 1
      ]
  • Like 1
Link to comment
Share on other sites
13 hours ago, Greg Williams said:

Ya need to do a bit of editing first get the ptailstock correct


ptailstock$      #NCI code = 904 available variables:
      #tlstck_on, stck_init_z, stck_final_z
      pheader$
      pmisc_op_comment
      if toolchng <> two, ptoolend$
      toolend_flag = zero  #Do not execute ptoolend again after xfer
      #pbld, n$, "M01", e$
      !spaces$
      spaces$ = zero
      if startflg,
            [
             bld = 1
             pbld, no_spc$, n$, "M157", e$
             pbld, no_spc$, n$, "G195", "SP=1", e$
             m157_flg = 1
             bld = 0
            ]     
      bld = 1
      if prv_spaces$ > zero, " ", e$
      if tlstck_on$ = zero, pbld, *sm26 " (RETRACT TAILSTOCK)", e$
      if tlstck_on$ = one, pbld, *sm25, " (ENGAGE TAILSTOCK)", e$
      if prv_spaces$ > zero, " ", e$
      bld = 0
      spaces$ = prv_spaces$
      pbld, n$, "M01", e$

 

Then add the misopflag to the header, Take a look at Generic Fanuc 4X MT_Lathe.pst

 


pheader$         #Start of file      
    if miscopflag = zero,
      [
      pheader_custom    
      !spaces$
      spaces$ = 0
      if lserial,
                 [
                  "$", sprogname$,".MIN", "%", e$
                  if autodoor, pbld, n$, "M90", e$ 
                  n$, "G270", e$
                  ]
      else, 
           [
            if autodoor, pbld, n$, "M90", e$
            n$, "G270", e$,
            "(", sprogname$,".MIN", ")", e$
            ]   
      n$, "(", "POST REV - 05", ")", e$
      n$, "(DATE - ", date$, ")", e$
      n$, "(TIME - ", time$, ")", e$
      spaces$ = prv_spaces$
      if use_graph, pgraph
      startflg = 1
      miscopflag = one
      if t$ = 0, t$ = 1
      ]

Thanks for pointing me in the right direction Greg, got it working now :cheers:

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