585,938 active members*
3,097 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Custom M Code without M30 or M02 ?
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    157

    Question Custom M Code without M30 or M02 ?

    Is it possible to make a custom program M Code without end of program which is M30 or M02 ?

    The requirement is such that the operator needs to login into the machine when he arrives for his shift and if a part program (a long cycle time one) is already running on the machine then he has to run the login M code from MDI mode after executing feed hold in single block (after completion of the block under execution). Any M30 or M02 at the end of custom M Code program will end up resetting the auto cycle which defeats the whole purpose.

    Thanks
    yaji

  2. #2
    Join Date
    Feb 2006
    Posts
    1792

    Re: Custom M Code without M30 or M02 ?

    Since the program execution is line-by-line, you may choose not to have M30/M02 at the end of a program.

  3. #3

    Re: Custom M Code without M30 or M02 ?

    How about M00? Or you can use block skip (Block delete)

    /M30 will skip if block skip is on.
    M00

  4. #4
    Join Date
    May 2008
    Posts
    157

    Re: Custom M Code without M30 or M02 ?

    Quote Originally Posted by sinha_nsit View Post
    Since the program execution is line-by-line, you may choose not to have M30/M02 at the end of a program.
    This does not work as any program has to have either M30, M02 or M99 at the end Or any custom M Code which is defined in ladder as end of record M Code.

    - - - Updated - - -

    Quote Originally Posted by drdos View Post
    How about M00? Or you can use block skip (Block delete)

    /M30 will skip if block skip is on.
    M00
    I havent tried this but even otherwise this will dependant on operator being conscious of having to switch on block skip on machine which is not desirable.

  5. #5
    Join Date
    May 2008
    Posts
    157

    Re: Custom M Code without M30 or M02 ?

    Any custom M Code program can end with M99. Since the M Code will either be called from a main program Or from MDI mode, the M99 will make it return to the main program Or MDI screen. MDI screen inputs need not have M30 and hence the problem of resetting is solved.

    Got this reply from Fanuc which was an obvious solution but it never occurred to me. One look at the standard M6 macro (used of most Fanuc machines) would have given this idea.

  6. #6
    Join Date
    Dec 2012
    Posts
    22

    Re: Custom M Code without M30 or M02 ?

    Hello yaji63,

    I'm curious about this ... how exactly does the operator login at the machine?


    Regards,

    Paul

Similar Threads

  1. Level Change Custom Code
    By dtheweather9 in forum EdgeCam
    Replies: 1
    Last Post: 02-23-2014, 04:00 AM
  2. How do I set a Custom G code?
    By MCImes in forum Fanuc
    Replies: 10
    Last Post: 10-28-2011, 11:22 PM
  3. Writing a custom M code?
    By greeder88 in forum Dynapath
    Replies: 1
    Last Post: 06-24-2009, 02:52 PM
  4. inserting custom code
    By beartrax in forum Mastercam
    Replies: 3
    Last Post: 08-29-2008, 04:53 PM
  5. Is there any G-code for custom using?
    By david_geng in forum G-Code Programing
    Replies: 3
    Last Post: 02-11-2007, 03:56 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
  •