585,719 active members*
4,334 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > BobCad-Cam > editing post-vs 26
Results 1 to 13 of 13
  1. #1
    Join Date
    Jan 2007
    Posts
    172

    editing post-vs 26

    I am working on getting my post for my Mazak lined out, and I am using the "Mazak VTC Rev1" post.

    My question is why do I get an out of place
    "27. First Rapid Mo....."

    in my posted code? I know how to edit the post and put the G43 line after the G90 G54.... line, but how do I change the fact that it is adding that line AFTER the drill cycle is called and canceled, as in the example below? I am set to "machine comp in Z only", and my post for my Fanuc control is working great! (with some tweaking). I know how to make simple changes, but not how to change this order. Below is a pasted in example (with deBugg on):

    ************* 0 - Starting blocks//Program header **********
    ************* 15 - First Machine Setup. **********
    ************* 2 - Starting blocks//Standard start of program **********
    O1111 (BIT FOR CAM.TXT)
    (JOB 1 Center Drill)
    (CENTER DRILL)
    T1
    M8
    S4444 M3
    G90 G54 G0 X0. Y0.
    ************* 81 - Canned cycles//Standard drill **********
    G81 X0. Y0. Z-.02 R.1 F0.
    ************* 80 - Canned cycles//Canned cycle cancel **********
    G80
    ************* 27 - Rapid moves//First rapid move Z ********** (this line is out of order, must come before "81")
    G0 G43 H1 Z.2
    ************* 40 - Operations//Start of operation **********
    ************* 3 - Tool Change//Move to next cut change tool **********
    (JOB 1 Drill)
    (DRILL)
    T2
    M8
    S650 M3
    ......

  2. #2
    Join Date
    Jun 2008
    Posts
    1838
    Here is some code drilling 2 holes from my V26 using the same PP, I don`t see anything obviously wrong with it, looks OK to me

    I just let BC use whatever values were in as default in the Drilling Feature so don`t worry too much about feeds/speeds etc

    O1 (BOBCAD1.NC)
    (JOB 1 Center Drill)
    (CENTER DRILL)
    N001 T1
    M8
    S4000 M3
    G90 G54 G0 X-.4984 Y.1757 (First rapid to X Y position first hole)
    G0 G43 H1 Z.2 (Machine rapids to the "Feed Plane")
    G81 G99 X-.4984 Y.1757 Z-.08 R.1 F.003 (First hole drilled here)
    X-.5994 Y.4475 (Second hole drilled here)
    G80 (Drilling Canned cycle cancelled)
    G0 Z.2 (Machine rapids up to "Feed Plane")
    Z1. (Machine rapids to "Rapid Plane")
    M9
    G91 G30 Z0
    N002 T1
    M30

    What do you think is wrong with the above ? ?

    Regards
    Rob
    :rainfro: :rainfro: :rainfro:

  3. #3
    Join Date
    Jan 2007
    Posts
    172
    that is exactly what I need, looks perfect! Now, why am I not getting the same????? I downloaded the post (twice) and without any edits I get code out of order.........

  4. #4
    Join Date
    Dec 2008
    Posts
    4548
    Put the text from lines 2 and 3 of your post processor here:

  5. #5
    Join Date
    Jan 2007
    Posts
    172
    Customization file for MAZAK VTC
    Post variables listed in MillPostVariables.pst
    ****Version number MONTH DAY YEAR****
    1000. Version Information = Version Month Day Year? "10.0 10 23 2013"


    0. File header

    1. Start of file programmed zero
    "O",prog_n," (", prog_name,")"
    system_comment
    feature_name_comment
    n_forced, t
    coolant_on
    s, spindle_on
    force_x, force_y
    "G90",work_coord,"G0", xr, yr,rotary_xy_angle
    output_rotary_angle

    2. Start of file Standard
    "O",prog_n," (", prog_name,")"
    system_comment
    feature_name_comment
    n_forced, t
    coolant_on
    s, spindle_on
    force_x, force_y
    "G90",work_coord,"G0", xr, yr,rotary_xy_angle
    output_rotary_angle

    3. Tool change
    system_comment
    feature_name_comment
    n_forced, t
    coolant_on
    s, spindle_on
    force_x, force_y, force_z
    "G90", work_coord,"G0", xr, yr,rotary_xy_angle
    output_rotary_angle

  6. #6
    Join Date
    Dec 2008
    Posts
    4548
    What happens if you insert "n, cancel_drill_cycle" (no quotes) into program block 2? After the ""G90",work_coord,"G0", xr, yr,rotary_xy_angle" line"

    I would need a sample bbcd file to test the output of the post.

  7. #7
    Join Date
    Jan 2007
    Posts
    172
    well, I tried that and all I get is a G80, then everything else the same. I opened a new drawing, drew a couple holes and drilled them, code looks fine. I am attaching the file I was working with, just as it is. I can change to my Fanuc post and it is perfect. Anyway, if you look at the drilling feature I am using a center drill, a drill (drill 1), and an endmill (drill 2) to then make a flat bottom hole. I am going to play with it a bit and see if adding that extra "drill" in the feature is causing trouble.

  8. #8
    Join Date
    Jan 2007
    Posts
    172
    I cannot get the error to repeat with another file, and playing with the drill feature is not changing anything. The other tools in this file post correctly. I dearly hope that at least one of you gets the same error with this file/post combo.

  9. #9
    Join Date
    Apr 2008
    Posts
    1577
    I don't see length_offset called in Block 2 or 3. That invokes block 14 which has the G43 call.

  10. #10
    Join Date
    Jan 2007
    Posts
    172
    It is in my Fanuc post, I noticed. I did not take it out ( I promise!)

  11. #11
    Join Date
    Jun 2008
    Posts
    1838
    Quote Originally Posted by spock View Post
    It is in my Fanuc post, I noticed. I did not take it out ( I promise!)
    Check Blocks 2,3 and 80, see below, should look like this


    2. Start of file Standard
    "O",prog_n," (", prog_name,")"
    system_comment
    feature_name_comment
    n_forced, t
    coolant_on
    s, spindle_on
    force_x, force_y
    "G90",work_coord,"G0", xr, yr,
    n,length_offset,zr, (If this line is not there then insert as shown.)
    output_rotary_angle

    3. Tool change
    system_comment
    feature_name_comment
    n_forced, t
    coolant_on
    s, spindle_on
    force_x, force_y, force_z
    "G90", work_coord,"G0", xr, yr,rotary_xy_angle
    n,length_offset,zr, (If this line is not there then insert as shown.)
    output_rotary_angle

    80. Drill canned cycle cancel.
    n, rigid_tapping_end
    n, cancel_drill_cycle
    n,"G0",zr (If this line is not there then insert as shown.)

    Hopefully that should do the trick, don`t think it will be far off now

    P.S.

    Think this is what your are looking for, codes as per the mods to the PP above


    O1111 (SOCKET.TXT)
    (JOB 1 Center Drill)
    (CENTER DRILL)
    T1
    M8
    S794 M3
    G90 G54 G0 X0. Y0.
    G43 H1 Z.2
    G81 X0. Y0. Z-.02 R.1 F.001
    G80
    G0 Z.2
    (JOB 1 Drill)
    (DRILL)
    T2
    M8
    S650 M3
    G90 G54 G0 X0. Y0.
    G43 H2 Z.2
    G83 X0. Y0. Z-.4274 R.1 Q.05 F.002
    G80
    G0 Z.2
    (JOB 1 Drill)
    (DRILL 1)
    T3
    M8
    S2000 M3
    G90 G54 G0 X0. Y0.
    G43 H3 Z.2
    G81 X0. Y0. Z-.315 R.1 F.002
    G80
    G0 Z.2
    M9
    G91 G30 Z0
    T1
    M30




    Regards
    rob
    :rainfro: :rainfro: :rainfro:

  12. #12
    Join Date
    Jan 2007
    Posts
    172
    Thanks! that did it! I don't know why I was getting good code with other files, and not the one posted above, using the same post. Oh well, if someone smarter than me can figure it out, I'm all ears!

  13. #13
    Join Date
    Jun 2008
    Posts
    1838
    Quote Originally Posted by spock View Post
    Thanks! that did it! I don't know why I was getting good code with other files, and not the one posted above, using the same post. Oh well, if someone smarter than me can figure it out, I'm all ears!
    He He, not actually smarter, just been doing it longer

    Regards
    Rob
    :rainfro: :rainfro: :rainfro:

Similar Threads

  1. Help editing post
    By dkrenfrow in forum Mastercam
    Replies: 9
    Last Post: 04-12-2012, 09:10 PM
  2. need help editing post
    By laltec in forum Post Processors for MC
    Replies: 2
    Last Post: 04-16-2010, 05:28 AM
  3. Need help editing post
    By bugzpulverizer in forum Post Processors for MC
    Replies: 5
    Last Post: 08-25-2008, 05:35 PM
  4. Post Editing Help 2
    By jeffliu2 in forum GibbsCAM
    Replies: 7
    Last Post: 03-30-2008, 06:34 AM
  5. Post Editing
    By jybute in forum GibbsCAM
    Replies: 2
    Last Post: 09-16-2006, 10:44 PM

Posting Permissions

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