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:

Craig-B

Verified Members
  • Posts

    437
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Craig-B

  1. Hey Mavusi,
    They need to enable and use the post debugger. It will give you the ability to click on a G-code block in a .nc file and it will point you to the exact place in the .pst where that routine is defined. 


    In the Mastercam configuration enable the post debugger.

    image.thumb.png.08a11528d97809e1caeca4d6423315e0.png

    Instead of just posting run the debugger by selecting the bug
    image.png.1de1252d3977627644a95ea67a051046.png
    When the debugger is launched press play run the file. In the NC window you will see the G-code if you double click the line of code it will show you where the code comes from in the post. Please note that if you have an encrypted post if will only show you the portion that is not encrypted.
    image.thumb.png.6baf26f069dc68a814fc4139b569e341.png

    • Like 1
  2. Your reseller, would be the best contact to help you with the edits unless you have experience in MP post. Not sure about your file sets,  you could may be just needed to regenerate the selected operation and not delete it. 

    Adding the safety line before every tool change you would need to create a line before the (pbld, n$, *t$, sm06, e$)  following post blocks.

    psof$            #Start of file for non-zero tool number
    ptlchg$          #Tool change

    • Like 1
  3. Can you make an example file showing the issue if you cant share the actual part.  Some machines are setup different on the sub spindle and some changes may needed to get the correct output on the sub. I would make a Z2G file and include a marked up copy the expected output and send it to your reseller and share it here.

  4. If you are using an updated copy of the Generic Fanuc 5X Mill from CNC Software, it has new switch that might help if you set it to yes$.
    use_tool_plane_as_bias : no$  # Use the tool plane XY orientation as a bias when tool is vertical?
                                                         # When set to 'yes$' the operations' tool plane will be use to calculate
                                                          # the primary axis angle.

    Link to Tech Exchange:
    https://community.mastercam.com/TechExchange/Parts/3544#partTitle

    • Like 2
  5. You will have to keep them in Inch, and modify you post to output  to Metric.  This is the easiest way to do it I think, because changing the system will scale the part but not all the inputs, resulting in you converting all of your inputs for every toolpath by putting "IN" each field after the number to convert from inch to metric.

    Safely convert inch to metric outputs in a post. You can have your reseller help you with this. 
    https://my.mastercam.com/knowledgebase/how-to-safely-convert-inch-to-metric-output-in-a-post/ 

    • Like 2
  6. Its could be the PC graphics card or the RAM, I do very large complex parts with no issue here.

    Windows 11 Enterprise

    • Processor: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz   2.30 GHz
    • RAM 32.0 GB
    • 64-bit operating system
    • NVIDIA Quadro RTX 3000
       
  7.      

     

    In my experience a lot of opinfo function do not work in wire, but you can try something like the following with opinfo to read the next op. I hope this helps.  

    current_op : 0
    next_op: 0

     

          current_op = opinfo(op_id$, 0)
          next_op = opinfo(op_id$, 1)
          if current_op = next_op, # First operation   
            [
                "First_op",  ~threadx$, ~thready$, ~threadz$, e$
            ]
          else, if next_op = (current_op + 1), # Next operation
            [
                "Next_op", ~threadx$, ~thready$, ~threadz$, e$
            ]
            else, # Last operation next_op =  -99999.
            [
                "Last_op",  ~threadx$, ~thready$, ~threadz$, e$
            ]

    • Thanks 1
  8. Try removing pspindleout, after the  [if not(opcode$ = 3 & nextdc$ = 7), pspindleout], e$ see example below. Please note you may need to do this at psof$ and ptlchg$ depending on your post.

            if safe_index,
                [
                if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
                pbld, n$, pgear, e$
                pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, [if not(opcode$ = 3 & nextdc$ = 7)],  e$
                if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$
                pbld, n$, pfxout, pfyout, e$
                pbld, n$, pspindleout, e$    #NEXT LINE 
                ]
              else,
                [
                if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
                pbld, n$, pgear, e$
                pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, pfxout, pfyout, [if not(opcode$ = 3 & nextdc$ = 7)],  e$
                if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$
                pbld, n$, pspindleout, e$    #NEXT LINE 
                ]
              phsm1_on        #must remain before G43
              pbld, n$, "G43", *tlngno$, pfzout, scoolant, e$
              ]

    • Like 1
  9. Back in 2015 when I was in manufacturing, we setup 32 machine with the Moxa devices and Cimco DNC this system seem to work well and was easy to manage. It worked better with the machine being wireless, because when we rearrange the shop we didn't have to run any ethernet to any of the machine that had this setup, they all just came back online. 

  10. The system likes Metric, it is the default in the file header. If you build the machine in inch, after you save it, open the XML file in an editor and make sure that the header says inch or it will scale it when you go to use  it.

    Example:
    <?xml version="1.0" encoding="UTF-8" ?>
    <machine_definition>
        <machine_data name="Fanuc_Robodrill" version="1.8" units="metric" controller="">

    Change it to the following:
    <?xml version="1.0" encoding="UTF-8" ?>
    <machine_definition>
        <machine_data name="Fanuc_Robodrill" version="1.8" units="inch" controller=""> 

    • Like 3
  11. Format head space in the format section in the post, and when you want it to output just put the following.

    fmt  ""  2  head_space  #Head Space

          head_space = mr6$     # This line says put the value of mr6$ on head_space variable. 
          if mr6$, pbld, "(HEAD SPACING ", *head_space, ")", e$     # This line says if there is a value on mr6$ then output.

    • Like 1

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