585,741 active members*
5,238 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Surfcam > Mpost/Spost Tips and Tricks
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    259

    Mpost/Spost Tips and Tricks

    Figured I'd start a thread on this, there's some things that make running out the code a bit easier and cleaner.

    This is for mpost:

    I wanted the R value to be model in drill cycles, but not in G02/G03 lines.
    Code:
    ModalLetters X Y Z F R  
    
    CwCode Force? Y
    G02 X[h] Y[v] R[arcrad] 
    end
    
    CCwCode Force? Y
    G03 X[h] Y[v] R[arcrad]
    end

    Edited the toolchange code to go ahead and check to make sure the spindle speed wasn't set higher than what my machine can handle.
    Code:
    1stToolChange                               # First tool change   
    Comments
    T[Tool] M06
    N[BLOCK] G00 G[Work] G90 X[H] Y[V]
    if [Speed] > 7500
    S7500 M[Direct]
    else
    M[Direct] S[Speed]
    endif
    G43 H[Lcomp] Z[D] M[Cool] 
    End
    I know its nothing special, but if it helps out one person, it was worth the post

  2. #2
    Join Date
    Aug 2006
    Posts
    259
    for mpost:
    for on the fly editing of a current post added to surfcam , edit the PostForm.* file directly, not the post file that sits in the MPost dir. the Post Menu Wizard doesn't automagically update PostForm.* to your newly edited post file.

Posting Permissions

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