Page 1 of 2 12 LastLast
Results 1 to 12 of 15

Thread: How to read two M-codes in same line

  1. #1
    Registered
    Join Date
    Sep 2011
    Location
    mexico
    Posts
    6
    Downloads
    0
    Uploads
    0

    Question How to read two M-codes in same line

    Hello

    I have a fanuc robodrill alpha T21 with control fanuc 31i-A5. I want the control to be able to read 2 M-codes (M03 M08) in the same line. I have followed the instructions shown in the manual, but it doesnīt work. Any suggestion will be accepted.


  2. #2
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4,519
    Downloads
    0
    Uploads
    0
    Won't work. Can't put 2 M-codes on a line in Fanuc. Look up M13 instead. Might work on a lathe. Works on mills.
    http://www.kirkcon.com/


  3. #3
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,668
    Downloads
    0
    Uploads
    0
    there's really no need to do that anyway. Put M8 first if you want the coolant on a bit earlier then M3 after on the next line.
    One of the hard rules of programming on Fanuc controls is only 1 M-code is allowed per line. No exceptions.


  4. #4
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    From 0i parameter manual

    Parameter 3404#7 (M3B) = 0 : only one M-code in a block is permitted
    =1 : up to three permitted


  • #5
    Registered
    Join Date
    Jan 2009
    Location
    USA
    Posts
    22
    Downloads
    0
    Uploads
    0
    Newer controls can handle more than 1 M code at a time. BUT the machine tool manufacture's ladder must also handle it. M-codes are generally operated by the PMC(ladder) and designed by the MTB. Contact the manufacture to see if it is available. My guess if it was not turned on then it is not supported and you should leave it off to head of any other issues with it.
    Regards,


  • #6
    Registered
    Join Date
    Sep 2011
    Location
    mexico
    Posts
    6
    Downloads
    0
    Uploads
    0
    Hi, sure thatīs what manual say. I have tried several times, but it doesnīt work. The tool just hold in that line. Maybe other parameter may be related.


    Quote Originally Posted by sinha_nsit View Post
    From 0i parameter manual

    Parameter 3404#7 (M3B) = 0 : only one M-code in a block is permitted
    =1 : up to three permitted


  • #7
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    It sounds like it is a MTB issue that is not going to allow these 2 particular M-codes to be in the same line. You are programming the S() along with the M3 in the same line correct?

    Sinha is correct there are parameter settings to allow more then 1 M-code in the same line. It is really only some of the older Fanuc models that may have some limitations on this. I program many M-codes in the same line all the time so you should not have any issues especially on a 31i control unless the ladder does not allow it.

    Have you tried switching the order of the M-codes in the block.
    M3S()M8
    M8M3S()

    I guess on the other hand I never really tried any other M-codes with the M3.....just G-codes. You may just be SOL and have to program the M8 after or before.

    Stevo


  • #8
    Registered
    Join Date
    Sep 2011
    Location
    mexico
    Posts
    6
    Downloads
    0
    Uploads
    0

    Thumbs up

    hi, the postprocessor i want to use has those settings: m03 m08 Sxxxx. Weird thing is that i have coleagues in romania, they use same control and have no trouble using those settings. For know i use a modified postprocessor, but will be out of date soon. So i need to find a solution. Sorry but i don't know what is mtb? Motherboard? Thanks for your help.
    Quote Originally Posted by stevo1 View Post
    It sounds like it is a MTB issue that is not going to allow these 2 particular M-codes to be in the same line. You are programming the S() along with the M3 in the same line correct?

    Sinha is correct there are parameter settings to allow more then 1 M-code in the same line. It is really only some of the older Fanuc models that may have some limitations on this. I program many M-codes in the same line all the time so you should not have any issues especially on a 31i control unless the ladder does not allow it.

    Have you tried switching the order of the M-codes in the block.
    M3S()M8
    M8M3S()

    I guess on the other hand I never really tried any other M-codes with the M3.....just G-codes. You may just be SOL and have to program the M8 after or before.

    Stevo


  • #9
    Registered hanzlaser's Avatar
    Join Date
    Apr 2011
    Location
    china
    Posts
    48
    Downloads
    0
    Uploads
    0
    read, than you!

    If any requirements about laser equipment, please feel free to contact me!
    always provide the good resolution of laser cutting,laser marking,laser welding equipment for you. www.hanzlaser.com MSN: zgzg1125@hotmail.com Skype:lisaseekcn


  • #10
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    MTB stands for Machine Tool Builder. Just because you have the same model control does not mean that the ladder written by the MTB processes the M-codes in the same manner. Did you try different orders of the M-codes in the same block as I suggested?

    Stevo


  • #11
    Registered
    Join Date
    Apr 2011
    Location
    USA
    Posts
    72
    Downloads
    0
    Uploads
    0
    In accordance with the 31i CONNECTION MANUAL (FUNCTION) you must "FIN" out the three M-Codes separately within the PMC (Ladder logic). Standard M-Codes use MF to FIN the M-Code. When using multiple M Codes you also must FIN out MF2 and MF3 in case of 2 or 3 M-Codes in the same block. Bottom line, you need to contact the machine manufacturer and ask if your machine can handle the multiple M-Codes. If not,what can be done to make that happen.


  • #12
    Registered
    Join Date
    Sep 2011
    Location
    mexico
    Posts
    6
    Downloads
    0
    Uploads
    0
    hello

    I tried with different order M3 S() M8= the tool just gets in stand by
    M8 S() M3= The coolant turns on and the tool gets in stand by

    I tried to simulate the nc code in graphic mode with the order M3 M8 S() and the simulatation goes fine. No message of error showed up

    Quote Originally Posted by stevo1 View Post
    MTB stands for Machine Tool Builder. Just because you have the same model control does not mean that the ladder written by the MTB processes the M-codes in the same manner. Did you try different orders of the M-codes in the same block as I suggested?

    Stevo


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Need Help!- G codes and M codes for Mazak Quick Turn T-2
      By sauli in forum Mazak, Mitsubishi, Mazatrol
      Replies: 0
      Last Post: 05-23-2011, 12:22 PM
    2. Limit 'G' codes to one per line
      By drsick in forum Post Processors for MC
      Replies: 3
      Last Post: 10-21-2010, 09:54 PM
    3. Need Help!- Need full list of G CODES AND M CODES FOR FANUC 21I
      By SonnyTees.com in forum G-Code Programing
      Replies: 3
      Last Post: 02-23-2010, 11:27 AM
    4. M-codes and G-codes 4 Matsuura ES-1000V
      By maximusek in forum G-Code Programing
      Replies: 2
      Last Post: 11-27-2007, 07:41 AM
    5. G codes how does works at one line?
      By bunalmis in forum General CAM Discussion
      Replies: 3
      Last Post: 07-26-2003, 09:49 PM

    Tags for this Thread

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.