586,121 active members*
3,493 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > How to read two M-codes in same line
Results 1 to 15 of 15
  1. #1
    Join Date
    Sep 2011
    Posts
    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
    Join Date
    May 2004
    Posts
    4519
    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.

  3. #3
    Join Date
    Aug 2011
    Posts
    2517
    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
    Join Date
    Feb 2006
    Posts
    1792
    From 0i parameter manual

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

  5. #5
    Join Date
    Jan 2009
    Posts
    52
    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. #6
    Join Date
    Sep 2011
    Posts
    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. #7
    Join Date
    Jun 2008
    Posts
    1511
    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. #8
    Join Date
    Sep 2011
    Posts
    0

    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. #9
    Join Date
    Apr 2011
    Posts
    69
    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: [email protected] Skype:lisaseekcn

  10. #10
    Join Date
    Jun 2008
    Posts
    1511
    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. #11
    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. #12
    Join Date
    Sep 2011
    Posts
    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

  13. #13
    Join Date
    Jun 2008
    Posts
    1511
    My best guess would be then that the ladder does not support these 2 codes in the same line.

    Stevo

  14. #14
    Join Date
    Apr 2006
    Posts
    125
    Yep, Stevo - bang on.
    It is 100% a ladder issue with the robi. Ours is the same.
    And as said earlier, if you have 2 (or 3) M Codes in a row, the robi will process the 1st only.
    You have to have your Sxxx and then on the next line the M8.
    Mod your post and all will be well.
    HTH

  15. #15
    Join Date
    Sep 2011
    Posts
    0

    Solved it

    Hello

    Our fanuc dealer found the solution to this issue. The problem was the settings of keep relay #5, I changed it to 0 and finally it worked. That keep relay means "coolant trought tool" or something like that. I don´t undestand the relation between reading 2 Mcodes in the same line and that keep relay. But it was the solution

    Thanks for your advices, Best regards

Similar Threads

  1. 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, 05:22 PM
  2. Limit 'G' codes to one per line
    By drsick in forum Post Processors for MC
    Replies: 3
    Last Post: 10-22-2010, 02:54 AM
  3. 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, 05:27 PM
  4. M-codes and G-codes 4 Matsuura ES-1000V
    By maximusek in forum G-Code Programing
    Replies: 2
    Last Post: 11-27-2007, 01:41 PM
  5. G codes how does works at one line?
    By bunalmis in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 07-27-2003, 02:49 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
  •