CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-25-2011, 08:59 PM
 
Join Date: Sep 2011
Location: mexico
Posts: 5
varrtrix is on a distinguished road
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.
Reply With Quote

  #2   Ban this user!
Old 09-25-2011, 09:46 PM
 
Join Date: May 2004
Location: United States
Age: 48
Posts: 2,217
txcncman is on a distinguished road

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/
Reply With Quote

  #3   Ban this user!
Old 09-26-2011, 03:28 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

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.
Reply With Quote

  #4   Ban this user!
Old 09-26-2011, 03:36 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

From 0i parameter manual

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

  #5   Ban this user!
Old 09-26-2011, 06:27 AM
 
Join Date: Jan 2009
Location: USA
Posts: 22
gwiz is on a distinguished road

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,
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-26-2011, 11:54 PM
 
Join Date: Sep 2011
Location: mexico
Posts: 5
varrtrix is on a distinguished road

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.


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
Reply With Quote

  #7   Ban this user!
Old 09-27-2011, 09:07 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

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
Reply With Quote

  #8   Ban this user!
Old 09-27-2011, 10:34 PM
 
Join Date: Sep 2011
Location: mexico
Posts: 5
varrtrix is on a distinguished road
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.
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
Reply With Quote

  #9   Ban this user!
Old 09-27-2011, 10:45 PM
hanzlaser's Avatar  
Join Date: Apr 2011
Location: china
Age: 28
Posts: 32
hanzlaser is on a distinguished road

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
Reply With Quote

  #10   Ban this user!
Old 09-28-2011, 07:22 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

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
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-28-2011, 08:21 PM
 
Join Date: Apr 2011
Location: USA
Posts: 36
drdos is on a distinguished road

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.
Reply With Quote

  #12   Ban this user!
Old 10-03-2011, 10:15 PM
 
Join Date: Sep 2011
Location: mexico
Posts: 5
varrtrix is on a distinguished road

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

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
Reply With Quote

Reply

Tags
control, fanuc, m codes




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 07:24 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361