603,793 active members*
3,153 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > BobCad-Cam > Adding in G/M codes after BobCAD post. How do you Re-Sequence the line numbers?
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    255

    Re: Adding in G/M codes after BobCAD post. How do you Re-Sequence the line numbers?

    By the way, I haven't physically tested this yet to see if you can have 2 M codes on the same line: N05 G43 H1 D1 Z1. M88 M08

  2. #2
    Join Date
    Jun 2008
    Posts
    1838

    Re: Adding in G/M codes after BobCAD post. How do you Re-Sequence the line numbers?

    Quote Originally Posted by Rotax91 View Post
    By the way, I haven't physically tested this yet to see if you can have 2 M codes on the same line: N05 G43 H1 D1 Z1. M88 M08

    Hmmm, that will be interesting, I don`t have any experience of HAAS controls so maybe you can have two M codes on the same line but it isn`t normally allowed on any control that I have come across so far

    Regards
    Rob
    :rainfro: :rainfro: :rainfro:

  3. #3
    Join Date
    Jun 2008
    Posts
    1838

    Re: Adding in G/M codes after BobCAD post. How do you Re-Sequence the line numbers?

    Quote Originally Posted by Rotax91 View Post
    By the way, I haven't physically tested this yet to see if you can have 2 M codes on the same line: N05 G43 H1 D1 Z1. M88 M08
    OK, I have done a little bit of work on a simple Advanced PP for you, I`m not very good at this, really needs SBC on it if he has the time

    It does work here on my V28, but as I don`t know what version you are running (It`s probably in a post somewhere that I haven`t read properly ) I haven`t uploaded the BobCAD file

    Anyway I`ve attached thePP and the two Custom files in a Zip file, all you should need to do is to open the Zip and simply copy and paste the three files into your MillPst Folder in whatever Version you have.

    You can then open a new BobCAD drawing and set the PP in your tree to the new Custom.MillPst and road test it

    All the files you can open to view and edit in Notepad but always remember to just "Save" them, don`t do any "Save As" just for safety

    You can alter any PP (A copy of your HAAS one if you like) to output as the attached PP by just typing in any number/text you want to appear in your code line.



    I have also set up an M89 to cancel the M88 and it should work, if not then you might need to hand edit a little However if it is anything like my machines the unless the M88 command is already "Active" in the control it should ignore the M89 without any errors

    See the code below for a couple of pockets one with a finish and one without and a drill cycle, when you use the PP it will create an "Adv Posting" tab in your feature where you can select the correct type of coolant for every different tool

    (BEGIN PREDATOR NC HEADER)
    (MACH_FILE=3AXVMILL.MCH)
    (MTOOL T1 S1 D12.7 C0. A0. H127. HT1 HD1.5 HH.5 DIAM_OFFSET 1 = 6.35)
    (MTOOL T2 S1 D8. C0. A0. H127. HT1 HD1.5 HH.5 DIAM_OFFSET 2 = 4.)
    (MTOOL T3 S1 D10. C0. A0. H76.2 HT1 HD1.5 HH.5 DIAM_OFFSET 3 = 5.)
    (MTOOL T51 S4 D12.7 C0. A118. H152.4 HT1 HD1.5 HH.5 DIAM_OFFSET 51 = 6.35)
    (END PREDATOR NC HEADER)

    (PROGRAM NAME: BOBCAD1.NC)
    (DATE: TUE. 04/05/2016)
    (TIME: 09:52PM)

    N10 G90 G80 G40 G20 G17

    (POCKET 1)

    (TOOL #1 12.7 ENDMILL ROUGH)
    N20 T1 M06
    N30 S120 M03
    N40 M08
    N50 G54 X0.381 Y4.3815
    N60 G00 G43 H1 D1 Z25.4
    N70 Z5.08
    N80 Z2.54
    N90 G01 Z0. F35.5208
    N100 Z-12.7
    N110 Y0.381 F71.0417
    N120 X4.3815
    N130 Y4.3815
    N140 X0.381
    N150 Y10.7315
    N160 X-5.969
    N170 Y-5.969
    N180 X10.7315
    N190 Y10.7315
    N200 X0.381
    N210 G00 Z5.08
    N220 Z25.4

    (POCKET 2)

    N230 M05
    N240 M09
    N250 M89
    (TOOL #2 8. ENDMILL ROUGH)
    N260 T2 M06
    N270 M88
    N280 S191 M03
    N290 G54 X-0.319 Y5.082
    N300 G43 H2 D2 Z25.4

    N310 G00 Z5.08
    N320 Z2.54
    N330 G01 Z0. F56.3893
    N340 Z-12.7
    N350 Y-0.319 F112.7787
    N360 X5.082
    N370 Y5.082
    N380 X-0.319
    N390 Y9.082
    N400 X-4.319
    N410 Y-4.319
    N420 X9.082
    N430 Y9.082
    N440 X-0.319
    N450 X-4.319
    N460 Y13.082
    N470 X-6.35
    N480 G17 G03 X-8.319 Y11.113 R1.969
    N490 G01 Y-6.35
    N500 G03 X-6.35 Y-8.319 R1.969
    N510 G01 X11.113
    N520 G03 X13.082 Y-6.35 R1.969
    N530 G01 Y11.113
    N540 G03 X11.113 Y13.082 R1.969
    N550 G01 X-4.319
    N560 G00 Z5.08
    N570 Z25.4

    (POCKET 2)

    N580 M05
    N590 M09
    N600 M89
    (TOOL #3 10. ENDMILL FINISH)
    N610 T3 M06
    N620 M07
    N630 S153 M03
    N640 G54 X-7.7 Y11.113
    N650 G43 H3 D3 Z25.4

    N660 G00 Z5.08
    N670 Z2.54
    N680 G01 Z-12.7 F22.5557
    N690 Y-6.35 F45.1115
    N700 G17 G03 X-6.35 Y-7.7 R1.35
    N710 G01 X11.113
    N720 G03 X12.462 Y-6.35 R1.35
    N730 G01 Y11.113
    N740 G03 X11.113 Y12.462 R1.35
    N750 G01 X-6.35
    N760 G03 X-7.7 Y11.113 R1.35
    N770 G00 Z5.08
    N780 Z25.4

    (STANDARD FEATURE MILL HOLE - 12.7000)

    N790 M05
    N800 M09
    N810 M89
    (TOOL #51 12.7 DRILL)
    N820 T51 M06
    N830 M88
    N840 S120 M03
    N850 G54 X-16.598 Y16.919
    N860 G43 H51 D51 Z25.4

    N870 G00 Z5.08
    N880 G81 X-16.598 Y16.919 Z-16.515 R2.54 F8.8802
    N890 G80
    N900 Z5.08
    N910 G00 Z25.4

    N920 G53 Z0
    N930 G53 Y0
    N940 M05
    N950 M09
    N960 M89
    N970 M30
    %



    Best I can do for you with my limited expertise, as I said before SBC is the man for this stuff

    Regards
    Rob
    :rainfro: :rainfro: :rainfro:

Similar Threads

  1. Replies: 2
    Last Post: 07-31-2014, 06:44 PM
  2. POST 2 SEQUENCE NUMBER ON THE SAME LINE
    By MAINVIST in forum Post Processors for MC
    Replies: 3
    Last Post: 11-06-2013, 10:31 AM
  3. Replies: 3
    Last Post: 09-27-2013, 08:48 AM
  4. Line Numbers
    By qnet2 in forum Post Processors for MC
    Replies: 3
    Last Post: 12-08-2010, 04:39 PM
  5. Line numbers
    By batmill in forum G-Code Programing
    Replies: 11
    Last Post: 09-16-2007, 09:25 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
  •