587,086 active members*
2,920 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2011
    Posts
    72

    Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    I need to change parameter #3772 from within a macro. I have been trying G10 L52, but cant seem to get the parameter to change. I think there may be a another parameter preventing the rewrite.

    I need to change the parameter to the value of macro variable setting #720

    G10 L52 N3772 R[=720]

    or something similar.

    The goal is to use a set of macro variables for max RPM of each tool, then have the macro change setting #3772 to the corresponding max RPM for the tool that's been called.

    Any thoughts are appreciated. Thanks

  2. #2
    Join Date
    Sep 2010
    Posts
    1230

    Re: Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    Quote Originally Posted by Chriseg1 View Post
    I need to change parameter #3772 from within a macro. I have been trying G10 L52, but cant seem to get the parameter to change. I think there may be a another parameter preventing the rewrite.

    I need to change the parameter to the value of macro variable setting #720

    G10 L52 N3772 R[=720]

    or something similar.

    The goal is to use a set of macro variables for max RPM of each tool, then have the macro change setting #3772 to the corresponding max RPM for the tool that's been called.

    Any thoughts are appreciated. Thanks
    Hello Chriseg1,
    The syntax should be as follows when using a Macro Variable.

    G10L52
    N3772 R#720
    G11

    Regards,

    Bill

  3. #3
    Join Date
    Aug 2011
    Posts
    72

    Re: Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    thank you for your reply,

    I am getting an "illegal expression" error with the code on the line with N3772 R=#720

    here is my code:

    %
    O9022(MAX RPM)
    #720=#[#149+400] (sets #720 to value of #500-510 depending on t code value in #149)
    G10 L52
    N3772 R=#720
    G11
    IF[#720LT24001]GOTO100
    #3000=100(RPM TO HIGH)
    N100IF[#149EQ0]GOTO200
    IF[#720EQ0]GOTO190
    GOTO200
    N190#3000=101(NO MAX RPM)
    N200M99M30

    %

  4. #4
    Join Date
    Feb 2006
    Posts
    1792

    Re: Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    "=" symbol after R is not given.
    Read Bill's post again.

  5. #5
    Join Date
    Aug 2011
    Posts
    72

    Re: Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    removed the"=" after R

    code is:
    G10 L52
    N3772 R#720
    G11

    now getting a "missing axis error" ? no axis on this parameter. its just a single input box.

  6. #6
    Join Date
    Aug 2011
    Posts
    72

    Re: Need to change parameter #3772 from macro, G10 L52 or G314 or ??? 31i-B

    GOT IT!

    its a spindle parameter and has to have a P value before the R

    so final code looks like:

    %
    O9022(MAX RPM)
    #720=#[#149+400] (sets #720 to value of #500-510 depending on t code value in #149)
    G10 L52
    N3772 P1 R#720
    G11
    IF[#720LT24001]GOTO100
    #3000=100(RPM TO HIGH)
    N100IF[#149EQ100]GOTO200
    IF[#720EQ0]GOTO190
    GOTO200
    N190#3000=101(NO MAX RPM)
    N200M99
    M30

    %

    This works and put the value where I need it.

Similar Threads

  1. 18i-TB Cannot change parameter 3772
    By hmeadows in forum Fanuc
    Replies: 4
    Last Post: 07-09-2015, 09:05 AM
  2. Replies: 5
    Last Post: 05-19-2015, 10:42 PM
  3. ZL-15 macro parameter
    By wmpy in forum Mori Seiki lathes
    Replies: 1
    Last Post: 12-04-2010, 07:21 PM
  4. Fanuc 18m Macro Parameter
    By fahque99 in forum Fanuc
    Replies: 7
    Last Post: 01-07-2009, 09:10 PM
  5. g65 macro parameter
    By firecat69 in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 05-24-2007, 02:50 PM

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
  •