587,118 active members*
2,918 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > How can I use the macro defined by DEFINE...AS
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    3

    How can I use the macro defined by DEFINE...AS

    Hi, everyone

    I'm using SINUMERIK 840D.

    If I define a macro by using "DEFINE....AS" instructor in "_N_UMAC_DEF", what should I do next in order that I can use it in my other main and subprograms?

    For example:
    In "_N_UMAC_DEF"
    DEFINE FixUnclamp AS (($A_DBB[160] B_AND 1)<>0)

    And I want to use the FixUnclamp in my main program.

    Or is the macro automatically ready to use because it is defined in default manufacturing macro define file "_N_UMAC_DEF"?

    Thanks.

  2. #2
    Join Date
    Jan 2009
    Posts
    19
    I will try to look in my manuals today for some more info. Another way to do this is just put that program in the subprogram file and you can call it from any main or subprogram by simply entering the name of the program. For example you can call your sub. FIXUNCLAMP
    then in your main programs just write FIXUNCLAMP and it will jump to the sub run it then go back to the main. Hope this helps

Similar Threads

  1. DEFINE REPEATABILITY ?
    By sharpshooter90 in forum Uncategorised MetalWorking Machines
    Replies: 4
    Last Post: 01-06-2009, 01:00 AM
  2. MC9-Define Plane menu. Where is it?
    By neilw20 in forum Mastercam
    Replies: 14
    Last Post: 05-09-2008, 04:41 PM
  3. Please define our hobby -
    By Stepper Monkey in forum Benchtop Machines
    Replies: 36
    Last Post: 07-10-2007, 01:32 AM
  4. Extra User Defined M functions
    By automizer in forum Haas Mills
    Replies: 7
    Last Post: 03-11-2006, 07:32 AM
  5. HAAS Mill G68 Not Defined Problem
    By arlenw in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 01-20-2006, 06:19 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
  •