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 > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-21-2010, 08:01 PM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
Need M19 advise

Hi All

I am looking for a little advise concerning the use of M19, spindle orientation, on my VMC. I have a Sharp 2412 with a Fanuc Oi-Mate controller.

Here’s what I want to do: I have a 1” X 1” X 1” pocket in a piece of aluminum. The corners have a 0.0625 radius. I want to clean up the corners with a broaching tool that I had made for me. I realize that there are different schools of thought in terms of broaching with a milling machine. For now, I would like to put those thoughts aside.

The broaching tool has a 0.5” X 0.5” square end (bottom cutting surface) that has a concave bottom for cutting and chip removal. It has a tapered shank 1.5” (upwards) to a 1” shank that will fit into a tool holder.

I want to move the tool to line up the corner of the tool with the corner of the pocket. This is assuming that that the tool is properly positioned in the tool holder. I want to drop the tool down in Z just to shave off the about 0.002” off of a wall and then retract it to a safe distance above the pocket, and then move it again to shave off the adjacent wall. Then onto another corner.

Here is a simple program. 0,0 is in the center of the square. You will see that for this example, I am not concerned about exact X and Y coordinates. I am more interested in the format of what I am attempting.

%
O02500 (CORNER BROACHING)
N1 G20
N2 G00 G17 G40 G49 G80 G90
N3 T1 M06 (broaching tool)
N4 G00 G90 G54 X-0.25 Y0.25 M08
N5 G43 H1 Z0.1
N6 G01 Z-1.0 F20
N7 Z0.1F100
N8 M09
N9 M30
%

For the life of me, I can not find any information on how or where to put M19. I want to lock the spindle in one position. There is no spindle lock on my machine. I know that if I press the SPINDLE ORIENTATION button on the machine, it will rotate the spindle back and forth and then lock it in place. The only way that I can find to unlock it is to hit the reset button. But then I really do not know what I am doing!

Any advise will sure be welcome. Many thanks in advance!!!!!

Larry Myers
http://www.colfaxtactical.com


I also posted this in the Sharp machine forum here in CNCzone. But it is usually pretty quite there.
Reply With Quote

  #2   Ban this user!
Old 07-22-2010, 03:14 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Without spindle lock, your method may not work.

M19 is given before tool change.
Reply With Quote

  #3   Ban this user!
Old 07-22-2010, 09:30 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

If the spindle has a brake (not necessarily a "lock") then you should be able to command it at any given time after tool change. If you have an ATC and it's a flange taper machine (like CAT, BT, HSK (some forms), etc), it should "lock". Code it here:

%
O02500 (CORNER BROACHING)
N1 G20
N2 G00 G17 G40 G49 G80 G90
N3 T1 M06 (broaching tool)
N4 G00 G90 G54 X-0.25 Y0.25 M08
M19
N5 G43 H1 Z0.1
N6 G01 Z-1.0 F20
N7 Z0.1F100
N8 M09
N9 M30
%

You can check it by hand to make sure it "locked". Just be careful because "lock" and "brake" are two different things. Generally, "lock" is a different M code but most verticals don't have this. Need to be sure you don't overcome the brake when broaching. Might need to add a bit of dwell if your machine starts moving before orient is complete.

As for releasing it, some MTBs write in the ladder to release the brake when commanded a M5. Some release if you command a M3S0. For sure if you command a M3 with a low speed (like S30) then the orient will release. But if all you're doing here is broaching with this tool, then you don't need to release it. Just tool change to the next tool and move on.

note: Another option some spindles have is the ability to orient to a specific angle. Generally something like "M19S900" for example would orient the spindle at 90°. Codes can change a bit depending on the builder. Not all machines have this. There's another way to do this through parameters which you can write over then change back in a program but that's a bit more sketchy if not careful.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #4   Ban this user!
Old 07-22-2010, 10:44 AM
 
Join Date: Jul 2007
Location: US
Posts: 59
Larry Myers is on a distinguished road
M19

Thanks Psycomill

I'll try it

Larry
Reply With Quote

  #5   Ban this user!
Old 07-23-2010, 01:55 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Can we have more info about the difference between lock and brake?
In layman's language, how can the spindle be locked without a brake?
What is the mechanism?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-23-2010, 07:24 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,555
Superman is on a distinguished road
Buy me a Beer?

My understanding of LOCK and BRAKE

Lock is where the position is held stationary by a motor, the motor would pulse +ive and -ive to keep it close to the set position. Likening it to keeping the car in gear on a slope and using the accelerator (just) to stop rolling forward or backward.

Brake is where the rotation is restricted by a physical clamp, like using the handbrake on a car. It must be released before motion is resumed.

Rotary axes on a machine are usually held in position by a "lock", but if higher cutting forces are experienced, which could make the axis move, an M-code can be applied to activate a physical "brake"
Reply With Quote

  #7   Ban this user!
Old 07-23-2010, 11:06 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Superman explains one type of distinction..... This can also be reversed.....

Machine builders describe "lock" and "brake" and even "clamped" slightly different from another builder. The point is to understand what is being described for each word with each machine and/or builder.

For the most part, it is as Superman describes. Brakes are also used when feeding on a rotary axis. Some 5X and Mill/Turn machines have this (sometimes referred to Mid-Brake). On those machines, they'll often have another setting for locking which may be called "Clamp".

On other machines, the builder may refer to a locked condition, but the reality is that is an electrical brake (motor pulse).

Bottom line, understand the equipment you're using.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #8   Ban this user!
Old 07-23-2010, 05:15 PM
 
Join Date: Jul 2010
Location: United States
Posts: 30
jamesu229 is on a distinguished road
Possible lock code

I do not know if it will apply to your machine or not, but our new fadals have the fanuc oi and the lock code is 189, 19 is only orientation.
Reply With Quote

  #9   Ban this user!
Old 07-23-2010, 05:56 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Larry,

Your machine uses M19 Spindle Orientation ON and M20 Spindle Orientation OFF.

There is no clamp or lock on your spindle, only orientation.
Reply With Quote

  #10   Ban this user!
Old 07-24-2010, 03:14 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

So, after commanding M19 (only), is it possible to change the spindle orientation manually by applying
1. virtually no torque, or
2. some torque, or
3. large torque?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-25-2010, 01:47 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Originally Posted by sinha_nsit View Post
So, after commanding M19 (only), is it possible to change the spindle orientation manually by applying
1. virtually no torque, or
2. some torque, or
3. large torque?
I believe that while oriented with M19 applying too much torque will cause an alarm (over current or some such thing).
Reply With Quote

  #12   Ban this user!
Old 07-26-2010, 05:01 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

This means that M19 is only for alignment purpose where one wants to have a particular orientation for the tool in the spindle. A separate mechanical brake (actuated by some M-code) is necessary if the spindle is required to remain locked in this position even in case of large torque. If so, an application like broaching may not be possible without a brake.
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
Looking for M19 advise Larry Myers Sharp CNC 3 07-21-2010 10:05 PM
looking for advise phill05 General CNC (Mill and Lathe) Control Software (NC) 0 03-09-2010 02:19 AM
1st CNC - Need Advise gerryv Benchtop Machines 2 10-31-2007 02:29 AM
need some advise joey1117 Benchtop Machines 0 09-01-2007 09:47 PM
New some advise. fishmasterdan CNCzone Club House 3 07-05-2006 06:02 PM




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