586,022 active members*
4,175 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Fadal Subroutine Help....what to modify in this code??
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2014
    Posts
    5

    Fadal Subroutine Help....what to modify in this code??

    Hey guys. I have an older 1989 Fadal 4020 with CNC88 controller running Format 2.

    This is my current post that is spit out when wanting a simple face feature done on three duplicated parts.

    TA,1
    %
    O0001 (OP1)
    (T1 D=3. CR=0. - ZMIN=0. - FACE MILL)
    N10 G90 G94 G17
    N15 G20
    N20 G28

    (FACE (1))
    N25 M9
    N30 T1 M6
    N35 S7000 M3
    N40 G4 P26
    N45 E1
    N50 M8
    N60 G0 X0. Y3.95
    N65 G43 Z0.72 H1
    N70 Z0.32
    N75 G1 Z0.3 F75.
    N80 G19 G2 Y3.65 Z0. J-0.3
    N85 G1 Y3.5
    N90 Y-3.5 F40.
    N95 G2 Y-3.8 Z0.3 K0.3 F75.
    N100 G0 Z0.72
    N105 G17
    N110 G28

    (FACE (1))
    N115 E2
    N120 M8
    N130 G0 X0. Y3.95
    N135 G43 Z0.72 H1
    N140 Z0.32
    N145 G1 Z0.3 F75.
    N150 G19 G2 Y3.65 Z0. J-0.3
    N155 G1 Y3.5
    N160 Y-3.5 F40.
    N165 G2 Y-3.8 Z0.3 K0.3 F75.
    N170 G0 Z0.72
    N175 G17
    N180 G28

    (FACE (1))
    N185 E3
    N190 M8
    N200 G0 X0. Y3.95
    N205 G43 Z0.72 H1
    N210 Z0.32
    N215 G1 Z0.3 F75.
    N220 G19 G2 Y3.65 Z0. J-0.3
    N225 G1 Y3.5
    N230 Y-3.5 F40.
    N235 G2 Y-3.8 Z0.3 K0.3 F75.
    N240 G0 Z0.72
    N245 G17

    N250 M9
    N255 M5
    N260 G28
    N265 G53 G0 X0. Y0.
    N270 M0
    N275 M99


    Can someone modify my current working post for it to now call out subs? I need something to present to the Post Development Team at HSMWorks on what exactly needs to be done so that post processing can handle this.

    This old machine can't ingest a huge number of lines and duplicating parts is getting line intensive.

    Thanks SO much!

  2. #2
    Join Date
    Oct 2014
    Posts
    5
    Well since no one bit at this, my got to guy for HSMWorks (and Fadals in general), Rob Lockwood, figured it out. He's been super helpful along the way. Figured others could benefit from this bit. It sure cut down on the lines....which is what we were after.

    This is a simple facing op done on three duplicate parts.

    TA,1
    %
    N10 O0001 (OP1)
    N15 (T1 D=3. CR=0. - ZMIN=0. - FACE MILL)
    N20 G90 G94 G17
    N25 G20
    N30 G28

    N35 (FACE (1))
    N40 M9
    N45 T1 M6
    N50 S7000 M3
    N55 G4 P26
    N60 E1
    N65 M98P2

    N70 (FACE (1))
    N75 E2
    N80 M98P2

    N85 (FACE (1))
    N90 E3
    N95 M98P2

    N100 G0Z8.M9M5
    N105 G28
    N110 G53Y8.5X-10.
    N115 T1M6
    N120 M0 (**** NEW PARTS *****)
    N125 M99

    N130 O0002 (FACE SUBROUTINE)
    N135 M8
    N140 G0 X0. Y3.95
    N145 G43 Z0.72 H1
    N150 Z0.32
    N155 G1 Z0.3 F75.
    N160 G19 G2 Y3.65 Z0. J-0.3
    N165 G1 Y3.5
    N170 Y-3.5 F40.
    N175 G2 Y-3.8 Z0.3 K0.3 F75.
    N180 G0 Z0.72
    N185 G17
    N190 G28
    N195 M99

    Thanks Rob!

  3. #3
    Join Date
    Jan 2004
    Posts
    3154

    Re: Fadal Subroutine Help....what to modify in this code??

    Technically what you did is a subprogram a subroutine is simpler than that.
    I have posted examples if you wish to read them in the FADAL section
    www.integratedmechanical.ca

Posting Permissions

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