586,409 active members*
3,096 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Post Processors for MC > Help using Misc. Real or Misc Integer to change retract value?
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2012
    Posts
    0

    Question Help using Misc. Real or Misc Integer to change retract value?

    I am editing a MPLFAN post for a Mori-lathe and trying to use a Misc. Real to set the retract point. I Prefer to use ABS Machine coordinates on my retracts and refrence points (g53) but the post keeps showing the "mr5$" withe its value?? what am i doing wrong?

    Code from post:
    0000
    (PROGRAM NAME - GEN ID TOOL)
    (DATE=DD-MM-YY - 05-08-12 TIME - )
    (MCX FILE - C:\USERS\JOSEPH\DESKTOP\GEN ID TOOL.MCX-5)
    (NC FILE - C:\USERS\JOSEPH\DOCUMENTS\MY MCAMX5\LATHE\NC\GEN ID TOOL.NC)
    (MATERIAL - STEEL INCH - 1030 - 200 BHN)
    G20
    (TOOL - 3 OFFSET - 3)
    (ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)
    ( LATHE DEFAULT )
    G0 T0303
    G18
    G97 S750 M03
    G0 G54 X.8624 Z.2726 M8
    G99 G1 Z.1726 F.01
    X.751 Z.0309
    G18 G3 X.6602 Z0. I-.0454 K.0179
    G1 X.224
    G2 X.0015 Z-.1113 K-.1113
    G1 Z-.1123
    X.0106 Z-.5937
    X-.1309 Z-.523
    M9
    G0 G53 Z mr5$ -8.
    M05
    T0300
    M30


    Code in post process:

    pl_retract #Retract tool based on next tool gcode, lathe (see ptoolend)
    cc_pos$ = zero
    if home_type = one,
    [
    pmap_home #Get home position, xabs
    ps_inc_calc #Set inc.
    pbld, n$, psccomp, e$
    pcan1, pbld, n$, *sgcode, pfxout, pfyout, pfzout, *toolno, e$
    pbld, n$, pnullstop, strcantext, e$
    ]
    else,
    [
    #Retract to reference return
    #**#
    pbld, n$, `sgcode, psccomp, e$
    if home_type = m_one, pbld, n$, *toolno, e$
    pcan1, pbld, n$,*sg00, *sg53, "Z", mr5$, e$
    pnullstop, strcantext, e$
    if home_type > m_one, pbld, n$, *toolno, e$

  2. #2
    Join Date
    Oct 2006
    Posts
    21
    Try this : *mr5$,

  3. #3
    Join Date
    Jul 2012
    Posts
    0
    i've tried every combination of character used in this post and cant get any output different than this, or an illegal character error during posting??

  4. #4
    Join Date
    Oct 2006
    Posts
    21
    try this: *mr5, e$

  5. #5
    Join Date
    Jul 2012
    Posts
    0

    Red face

    no output after z on g53 line & post err.

    PST LINE (1732) - Label has not been defined[44]

    ive tried: !, (), [], "()" *, *()$, more i can't remeber trying im sure!

    IDK?

    btw im using x5 if it matters.
    everything in the rest of the post uses misc integers as mi2$ and reals are a similar function? and i don't get a post error either? i dont get that.


    here's the current post proc if anyone wants to take a stab at it.

    Thanks
    Attached Files Attached Files

  6. #6
    Join Date
    Jul 2012
    Posts
    0

    Smile SOLVED!

    SOLVED!

    Under Format Assignments and Initializations:
    fmt Z 2 mr1$ (where z is the axis output and 2 is the style of the format)

    Then it works in statement here:

    #Retract to reference return
    #**#
    pbld, n$, `sgcode, psccomp, e$
    if home_type = m_one, pbld, n$, *toolno, e$
    pcan1, pbld, n$,*sg00, *sg53, mr1$, e$
    pnullstop, strcantext, e$
    if home_type > m_one, pbld, n$, #*toolno, e$


    Thanks for the help though!!

Similar Threads

  1. Misc.
    By pejaer in forum SprutCAM
    Replies: 15
    Last Post: 06-19-2012, 03:20 PM
  2. misc. values / set op defaults
    By PRINT_FX in forum Post Processors for MC
    Replies: 4
    Last Post: 03-25-2011, 11:17 PM
  3. Misc. stuff on the G540
    By revwarguy in forum Gecko Drives
    Replies: 6
    Last Post: 07-17-2010, 02:38 AM
  4. My KX3, tweaks and misc. stuff
    By Guldberg in forum Benchtop Machines
    Replies: 3
    Last Post: 03-26-2009, 04:20 PM
  5. Misc surplus controllers, need help
    By Hobbiest in forum CNC Machine Related Electronics
    Replies: 7
    Last Post: 03-19-2005, 07:54 AM

Posting Permissions

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