585,663 active members*
3,044 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > FeatureCAM CAD/CAM > Need someone to review
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2005
    Posts
    238

    Need someone to review

    Just wanting to know if this post would work with mach3 for tool change position.
    It is for 4 Axis Fanuc.
    When I simulate in FC, it doesn't show that the machine moves in Y to home for the tool change.
    Z retracts and X remains put. Which is what I want. But really I need the Y axis to move back, or go Home to facilitate tool changes.
    Am I forgetting something here? Here is the 2 processes of interest.

    Program start

    <INCLUDE:FixtureFix>
    (<PROG-NAME> <DATE>)<EOB>
    ( <MCSID> - <REGION-DATE> - <TIME> )<EOB>
    ( FEATURECAM - Journeyman 300 )<EOB>
    ( MACHINE TIME = <MACH-TIME> )<EOB>
    <10>
    G90 G64<EOB>
    <BOL> M6 T<TOOL> (TOOL CHANGE <TOOL-NAME>) (MSG, LOAD TOOL # <TOOL>)<EOB>
    <MOTION> G<FIXTURE> G90 X<X-COORD> Y<Y-COORD>
    <IF><INDEXING><THEN>
    <BOL> A[<ROT1-WIND>%360]
    <ENDIF>
    <BOL> S<SPEED> <SPINDLE><EOB>
    M01<EOB>
    G43 H<TOOL> Z<Z-COORD> <EOB>
    <COOLANT> <EOB>


    Tool Change

    M09<EOB>
    G28 G91 Z1.25 <CANCEL-COOL><EOB>
    G28 G91 Y0. M5<EOB>
    M1<EOB>
    ( <OP-PASS> <OP-TYPE> <SEGM-ID> )<EOB>
    <MOTION> <PLANE> G40 G80 <F-UNITS><EOB>
    M6 T<TOOL> (TOOL CHANGE <TOOL-NAME>) (MSG, LOAD TOOL # <TOOL>)<EOB>
    G<FIXTURE> G90 X<X-COORD> Y<Y-COORD>
    <IF><INDEXING><THEN>
    <BOL> A[<ROT1-WIND>%360]
    <ENDIF>
    <BOL> S<SPEED> <SPINDLE><EOB>
    M01<EOB>
    <MOTION> G<FIXTURE> X<X-COORD> Y<Y-COORD><EOB>
    G43 H<TOOL> Z<Z-COORD> <EOB>
    <COOLANT> <EOB>

  2. #2
    Join Date
    Jul 2010
    Posts
    369
    hjl4

    Maybe something like this?
    You can keep your rotary the same as you have it.
    [: prgm_stop=false] There is no space between the : and prgm, if I did not put one it would show up as a smiley face like this

    Good Luck~!:cheers:

    ##### BEGIN PROGRAM START FORMAT #####
    <INCLUDE:FixOffset>
    <INCLUDE:INITTOOLINCREMENT>
    <INCLUDE:InitMaxDepths>
    [: prgm_stop=false]
    [:clamp_on=0]
    %<EOB>
    <MCSID>( [uppercase(<FM-NAME>)] )<EOB>
    ( [uppercase(<MCSID>)]- <REGION-DATE> - <TIME> )<EOB>
    ( MACH 3 - MACH TIME: <MACH-TIME> )<EOB>
    <32><EOB>
    (STOCK-DIMS)<EOB>
    (SETUP-INFO)<EOB>
    ()<EOB>
    (TOOLING)<EOB>
    (TOOL-LIST)<EOB>
    <32><EOB>

    <INCLUDE:TOOLINCREMENT><EOB>
    ([uppercase(<TOOL-NAME>)])<EOB>
    [:segm_str=subst(<SEGM-ID>,"_"," ")]
    [:segm_str=subst(segm_str,"X",".")]
    ( <OP-PASS> <OP-TYPE> [segm_str])<EOB>
    <MOTION> G40 G<FIXTURE> G80 G90<EOB>
    G91 G28 Z0.<EOB>
    G0 G90<EOB>
    T<TOOL><EOB>
    M6<EOB>
    T<NEXT-TL><EOB>
    S<SPEED> <SPINDLE><EOB>
    <IFNOT><INDEX><THEN>
    <MOTION> X<X-COORD> Y<Y-COORD><EOB>
    <ENDIF>
    <IF><INDEX><THEN>
    {N<SEQ> }M11<EOB>
    [:clamp_on=0]
    {N<SEQ> }<MOTION> X<X-COORD> Y<Y-COORD> A<ROT1-MATH><EOB>
    <IFNOT><DRILLING><THEN>
    {N<SEQ> }M10<EOB>
    [:clamp_on=1]
    <ENDIF>
    <ENDIF>

    G43 H<TOOL> Z<Z-COORD> <COOLANT><EOB>
    ##### END PROGRAM START FORMAT #####

    ##### BEGIN TOOL CHANGE FORMAT #####
    <IFNOT>[prgm_stop]<THEN>
    <CANCEL-COOL><EOB>
    G0 G91 G28 Z0.<EOB>
    /G28 Y0<EOB>
    M01<EOB>
    <32><EOB>
    <10>
    <ENDIF>
    <IF>[prgm_stop]<THEN>
    G0 G91 G28 Z0. <CANCEL-COOL><EOB>
    G28 Y0<EOB>
    <IF>[:clamp_on=1]<THEN>
    M11<EOB>
    [:clamp_on=0]
    <ENDIF>
    M00<EOB>
    <32><EOB>

    (***PROGRAM-STOP***)<EOB>
    (**** [uppercase(<MCSID>)] ****)<EOB>
    <UDF-TEXT> {( <UDF-COMMENT> )}<EOB>
    <32><EOB>
    <10>
    <ENDIF>
    [: prgm_stop=false]

    <INCLUDE:TOOLINCREMENT><EOB>
    ([uppercase(<TOOL-NAME>)])<EOB>
    [:segm_str=subst(<SEGM-ID>,"_"," ")]
    [:segm_str=subst(segm_str,"X",".")]
    ( <OP-PASS> <OP-TYPE> [segm_str])<EOB>
    <MOTION> G40 G<FIXTURE> G80<EOB>
    G0 G91 G28 Z0.<EOB>
    G0 G90<EOB>
    T<TOOL><EOB>
    M6<EOB>
    T<NEXT-TL><EOB>
    S<SPEED> <SPINDLE><EOB>
    <IFNOT><INDEX><THEN>
    <MOTION> X<X-COORD> Y<Y-COORD><EOB>
    <ENDIF>
    <IF><INDEX><THEN>
    {N<SEQ> }M11<EOB>
    [:clamp_on=0]
    {N<SEQ> }<MOTION> X<X-COORD> Y<Y-COORD> A<ROT1-MATH><EOB>
    <IFNOT><DRILLING><THEN>
    {N<SEQ> }M10<EOB>
    [:clamp_on=1]

    <ENDIF>
    <ENDIF>

    G43 H<TOOL> Z<Z-COORD> <COOLANT><EOB>
    ##### END TOOL CHANGE FORMAT #####

  3. #3
    Join Date
    Jan 2005
    Posts
    238
    Thanks fo the reply and the code. I will try it today and see what happens. Their is no quicker way to destroy a cnc machine than to mess with the post processor. I hope everything goes well.

  4. #4
    Join Date
    Jul 2010
    Posts
    369
    YES! Please Make a Copy of your current post and mess around with the copy.
    Be safe!
    Do you know how to use the debug mode in FC?
    Ctrl right click the bottom bar and a window opens, there will be the option.

    "Set XBuild debug options"

  5. #5
    Join Date
    Jan 2005
    Posts
    238
    Ok, I'll give it a try. Thanks again.

  6. #6
    Join Date
    Jan 2005
    Posts
    238
    Works. Thanks Perfect Circle.

  7. #7
    Join Date
    Jul 2010
    Posts
    369

    Re: Need someone to review

    Awesome!
    Happy to help.

Similar Threads

  1. HF 8 X 12 review ????
    By Dan S in forum Mini Lathe
    Replies: 1
    Last Post: 09-09-2004, 03:57 AM
  2. HF 8 X 12 review ????
    By Dan S in forum Community Club House
    Replies: 1
    Last Post: 09-09-2004, 03:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •