Can't change Macro variables while running program.


Results 1 to 13 of 13

Thread: Can't change Macro variables while running program.

  1. #1
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Can't change Macro variables while running program.

    I use #740-#750 variables for my program...While running program (auto mode), I can't assign it any number, it comes up "write protected". How do I disable it ?
    Thanks

    Similar Threads:


  2. #2
    Member
    Join Date
    Dec 2009
    Location
    ROMANIA
    Posts
    953
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by trangt143 View Post
    I use #740-#750 variables for my program...While running program (auto mode), I can't assign it any number, it comes up "write protected". How do I disable it ?
    Thanks
    Why don't you use from #1-#500?
    I think from #500 to #1000 are used to read inputs or outputs.



  3. #3
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Is it fanuc?
    You obviously want to use permanent common variables.
    Do you observe the same thing for variables in a lower range, say, #500-#600?
    You may test in MDI mode also.



  4. #4
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Quote Originally Posted by trangt143 View Post
    I use #740-#750 variables for my program...While running program (auto mode), I can't assign it any number, it comes up "write protected". How do I disable it ?
    Thanks
    What model Fanuc is it?
    When you display the variables (OFS/SET) [ > ] [ MACRO ] how many variables does the control have?



  5. #5
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    GE Fanuc Series 16i-T,

    I can't change #743=1 while running program, it notes "Write Protect", only I can change it at MDI/EDIT/MPG mode...
    Thanks

    Below is my ID Grind program.
    ID GRIND **

    #740 = Z TOP POSITION

    #741 = Z BOTTOM POSITION

    #742 = FEEDRATE

    #743 = 1 WHEEL UP **

    *********= *-1 WHEEL DOWN

    *********= 2 END OF PROGRAM

    #744 = INFEED

    #745 = TOTAL AMOUNT TO REMOVE

    #746 = DWELL

    #749 = TOUCH X (ID OF THE PART)

    #750 = AWAY FROM THE PART (.002)

    *

    *

    N10

    G90G54G70G97

    *

    N20

    #749=#749-#750

    M3 (WHEEL ON)

    M53 (TABLE ON)

    *

    N30 *

    #745=#745-#744

    #748=#749+#744

    G01 X#748 Z#740 F#742

    G04 X#746

    G01 X#748 Z#741 F#742

    G04 X#746

    #749=#748

    IF [#743 EQ 1] GOTO40

    IF [#745 EQ 0] GOTO40

    GOTO20

    *

    N40 ********

    G91 G54 Z1.

    #743=0

    M5 (WHEEL OFF)

    M52 (TABLE OFF)

    IF [#743 EQ -1] GOTO20

    IF [#743 EQ 2] GOTO50

    GOTO40

    *

    N50

    M30



  6. #6
    Member
    Join Date
    Jul 2010
    Location
    South Africa
    Posts
    118
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    see parm 3290 bit 6



  7. #7
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Quote Originally Posted by norbert.barnard View Post
    see parm 3290 bit 6
    I tried set 0 at all bits in #3290, it still not working...

    Can't change Macro variables while running program.-20150830_122900-jpg

    Last edited by trangt143; 08-31-2015 at 09:00 PM.


  8. #8
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Do you mean to say that you can define / redefine these variables in MDI mode but not in AUTO mode?
    If ever you come to know the reason, pl do share with us. This is unexpected. Maybe a parameter issue.



  9. #9
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by sinha_nsit View Post
    Do you mean to say that you can define / redefine these variables in MDI mode but not in AUTO mode?
    If ever you come to know the reason, pl do share with us. This is unexpected. Maybe a parameter issue.
    If I find out the solution, I will share it...now I am reading parameter manual book...



  10. #10
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Just curious, what was #3290 set to before you set it to all 0's?



  11. #11
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by dcoupar View Post
    Just curious, what was #3290 set to before you set it to all 0's?
    only MCM, I change 1 to 0...

    Attached Thumbnails Attached Thumbnails Can't change Macro variables while running program.-20150902_045404-jpg  


  12. #12
    Registered
    Join Date
    Nov 2005
    Location
    USA
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Quote Originally Posted by trangt143 View Post
    only MCM, I change 1 to 0...
    MCM set 0, and need to turn off the power.... turn it on again, it is working now....
    thanks everyone for helping...



  13. #13
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Can't change Macro variables while running program.

    Thank you for sharing information.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Can't change Macro variables while running program.

Can't change Macro variables while running program.