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! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-01-2008, 10:20 PM
 
Join Date: Jul 2008
Location: usa
Posts: 25
josh591 is on a distinguished road
help using custom M codes and M-FIN on haas

I've been reading the manual and trying to figure out what the M-FIN switch does.

Right now, M21 is hooked up to the outside M function connector on the side of the haas.

If I issue:
M51;

Then the M21 relay is closed.

If I use M61; then M21 relay is turned off.

Questions:
1) What does M-FIN do? In the technical manual it says it is normally open (connected to +12V) and closed if connected to gnd.

2) Does the issue of "M51;" wait until it receives a closing of "M-FIN" before processing the next line OR does one need to poll read M-FIN somehow in a loop?

4) How does one "read" M-FIN? Like how would one write the following in G-Code:
-turn on M21 relay
-if M-FIN is closed then turn off M21 relay
-else wait and continuously recheck M-FIN

3) Why is M51 mapped to turn on M21 instead of M21 directly? What does "M21;" do if issued in MDI mode?

Thanks in advance for any help!
Reply With Quote

  #2   Ban this user!
Old 09-03-2008, 08:41 PM
serviceman's Avatar  
Join Date: Apr 2007
Location: usa
Posts: 178
serviceman is on a distinguished road

51 61 do not wait for the mfin and basically stay where you put them until you reset 21 wairts for the m fin you would wire a switch to the m fin and when you close the switch the machine will open the contact basically m21 close contact wait for m fin mfin received open contact m51 close until reset or 61
__________________
REYTECH Machine Service Corp. CNC repair NY, NJ
http://www.reytechmachine.com
Reply With Quote

  #3   Ban this user!
Old 09-04-2008, 04:26 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by josh591 View Post
4) How does one "read" M-FIN? Like how would one write the following in G-Code:
-turn on M21 relay
-if M-FIN is closed then turn off M21 relay
-else wait and continuously recheck M-FIN
!
If you write M21 the machine will close the M21 relay contacts and then stop waiting for the M-Fin circuit to be closed. In the bottom corner of the screen you will see the word MFIN or something like that.

When the MFin circuit is closed then the machine will continue and you have to program the M code to open the relay contacts.(I forget which it is)
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4   Ban this user!
Old 09-15-2008, 10:15 AM
 
Join Date: Sep 2008
Location: Canada
Posts: 11
Mechboy is on a distinguished road

M51 turn M21 Relay On
M61 Turn M21 Relay Off (reset or m30 will also do this)
M121 Turn M21 Relay On and Wait for M-fin Input before continuing the program

I use the M121 Input with a Robot I/O sending the M-fin signal.

Edit* There is also a M-fin Parameter so the M/C will always wait for M-fin at all M21-28 codes. I personally Use M121 so i control when the M/C needs to wait and when it does not.
Reply With Quote

  #5   Ban this user!
Old 09-22-2008, 05:00 PM
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 1
R5GTT is on a distinguished road

Ok, as I read this (and please correct me if I'm wrong) you are trying to use an M21 (or 22 or.. ) in combination with a robot system. The way this works in the company I work at is as follows:

The M21 calls the robot system, making it load a product. When the robot is done it calls off the M21, making the machine continue it's cycle. So the machine will be stuck in M21 until it get's a signal from the outside to continue.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-22-2008, 09:22 PM
 
Join Date: Feb 2008
Location: USA
Posts: 6
Fido57 is on a distinguished road
Little help, more question

It's not the same application you're using, but it's similar. We use a limit switch as a broken tool detector. We program the VF5 to drive to the switch, and depress it. Then we fire the M21. We have the switch wired into the M21 relay and the M-fin circuit. That way, if the switch (normally open) is closed by the tool, as soon as we fire the M21, it reads the signal and goes on. If the tool is broke, no switch closes, so the machine sits there and waits. Here's my question. Does anyone know of a way to make the machine alarm out (blink red) is the M-fin isn't made after a certain amount of time? As to the robot, if you fired the M21, the machine would wait for a signal. Once the robot does it's thing, fire an output from it to the M-fin circuit, and the machine would then continue.
Reply With Quote

  #7   Ban this user!
Old 09-30-2008, 12:14 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 11
Mechboy is on a distinguished road

Originally Posted by Fido57 View Post
It's not the same application you're using, but it's similar. We use a limit switch as a broken tool detector. We program the VF5 to drive to the switch, and depress it. Then we fire the M21. We have the switch wired into the M21 relay and the M-fin circuit. That way, if the switch (normally open) is closed by the tool, as soon as we fire the M21, it reads the signal and goes on. If the tool is broke, no switch closes, so the machine sits there and waits. Here's my question. Does anyone know of a way to make the machine alarm out (blink red) is the M-fin isn't made after a certain amount of time? As to the robot, if you fired the M21, the machine would wait for a signal. Once the robot does it's thing, fire an output from it to the M-fin circuit, and the machine would then continue.
Assuming you don't have a tool probe.
M96 Jump if no Input

(your program here)
N50 M21 (m21 for tool check)
N60 M96 P100 Q27 (Loop to N100 if spare input [#27] is 0, 0=open)
.
M30

N100 #3000=1(TOOL BROKEN), programmable alarm

that should work for you, Just have to change the Q27 to whatever spare input your M21 is on in diagnostic screen.think its 27 :P

Cheers
Reply With Quote

Reply




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
Haas Quick Codes MetalMolder Haas Mills 3 04-27-2008 08:16 PM
Nc PLot and Haas G71 G72 codes PaintItBlue NCPlot G-Code editor / backplotter 10 12-08-2007 12:42 PM
M-codes and G-codes 4 Matsuura ES-1000V maximusek G-Code Programing 2 11-27-2007 06:41 AM
custom toolholders for Haas lathes ? Mike Braddock Haas Lathes 4 10-02-2007 08:56 AM
Haas HL-4 ERROR Codes altcan Haas Mills 27 09-13-2005 09:33 AM




All times are GMT -5. The time now is 02:41 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