585,970 active members*
4,303 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Sinumeric Offset Value macro
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    22

    Question Sinumeric Offset Value macro

    Can i access or put offset value in sunumeric 840's individual axis that is X, y , z offset from g54...g599 to any variable like R2...

    I am making a macro there i am stuck...

  2. #2
    Join Date
    Jun 2008
    Posts
    3
    $P_UIFR[5]=CTRANS(X,-36.4, Y,225.25, Z,140.1, B,0);G505

    This will write the value X-36.4 Y225.25 Z140.1 B0 to work offset register
    G505

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Original setting
    $P_UIFR[6] =CTRANS(X,0,Y,495.3,Z,0,B,0) ; G506

    After probing
    R92 = 2.5
    R93 = 0.5
    R94 = (495.3+R93)
    R95 = -0.5

    Original setting can be changed thus
    $P_UIFR[6] =CTRANS(X,R92,Y,R94,Z,R95,B,0)


    Or to put the adjusted values in the FINE offset & leave
    your Original setting intact, this way you can see the adjustment
    $P_UIFR[6,X,FI] = R92
    $P_UIFR[6,Y,FI] = R94
    $P_UIFR[6,Z,FI] = R95

    Tom

  4. #4
    Join Date
    Dec 2008
    Posts
    22
    Thankyou TOM and mtak it was help full to me, and i have completed my macro for machine, now operators dont have to edit program, i am using empty offset to put variables, so that operator run same program that take variable from empty areas... Like mine Trans_6 etc...

Similar Threads

  1. Radius Offset and Length Offset
    By jim_stoll in forum Dolphin CAD/CAM
    Replies: 13
    Last Post: 10-15-2010, 01:47 AM
  2. tool offset macro
    By cnc-king in forum Fanuc
    Replies: 6
    Last Post: 09-22-2008, 04:43 AM
  3. macro program for work offset
    By cncwhiz in forum Fanuc
    Replies: 4
    Last Post: 12-14-2007, 01:28 PM
  4. Sinumeric
    By mr_electrician in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 4
    Last Post: 03-31-2007, 07:58 PM
  5. Macro for positive offset
    By qmas99 in forum Uncategorised CAM Discussion
    Replies: 0
    Last Post: 02-12-2006, 04:37 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
  •