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:

Okumawiz

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Okumawiz

  1. Typically you will want to install the tool change macro into your machine so that it can be used in MDI or from any program and it will always be memory resident. Some use G116, some use G111. You will need to go to your G/M code macro page and set the G111/G116 to OTCHK.

     

    Then you will need to register the following library program: (TOOL.LIB)

     

     

    OTCHK
    ( SET GCODE PARAM. G111 TO OTCHK )
    ( AT TOOL CHANGE KEY IN G111 T= TOOL NO. Q = NEXT TOOL  EX: G111 T1 Q2)
    IF [ VTLCN EQ PT ]NST1 (ACTIVE TOOL)
    IF [ VTLNN EQ PT ]NRT1 (NEXT TOOL)
    IF [ VTLNN EQ 0 ]NOT1  (NEXT TOOL) 
    M64
    NOT1 T=PT
    NRT1 M06
    NST1
    IF [ PQ EQ EMPTY ]NEND (IF READY TOOL EMPTY/JUMP )
    IF [ VTLNN EQ PQ ]NEND (IF PREP TOOL IS AT NEXT TOOL POS./JUMP)
    IF [ VTLNN EQ 0 ]NTT1  (IF NEXT TOOL HAS NO VALUE)
    M64  (NEXT TOOL POT RETURN)
    NTT1
    T=PQ    
    M356 (NEXT POT ADVANCE)
    NEND G56 H=VTLCN
    D=VTLCN
    RTS
    PQ DEF: WHEN P IS ATTACHED TO A LETTER IT BECOMES READABLE
     
    Once registered, it will be available to all programs and even MDI upon power up. This will save you lots of headaches and errors/alarms by making your tool change macro "intelligent".
     
     
    Best regards,
    • 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...