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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2006, 05:30 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road
chuck/tailstock barriers

Its been a while since I've been programming in Camsoft, but it is a lot of fun to try to make hazy notions work out correctly in hardware operation

I finally came up with a method to set chuck barriers based on the tool number. I've always had a pet peeve about setting barriers on the lathes I've owned, since the barriers are typically too stupid to take into consideration the length of the tool.

For example, if you are OD turning right up close to the chuck, and then have to use a bar to bore inside the chuck jaws, a typical fixed Z barrier is useless because either it permits the turning tool to crash into the jaws or it prevents the boring bar from getting all the way into the bottom of the hole. This is because ordinary barrier limits are based on the carriage position, not the tool tip position.

My primary concern is the Z barrier, and fortunately, there are just enough empty parameters in the tool parameter table to accomplish this easily. I use custom1st and custom2nd for the forward and back limits in Z. Part of my tool offset measuring logic asks me to enter barrier distances for each tool as it is being set up, so I don't forget.

The X values of the barrier I simply leave the same all the time, and they are set just before the physical limit switches. Since my machine has front and rear toolposts, and machines in either CW or CCW this is about the only way to operate it.

The nice thing about the Camsoft soft limits is that the machine doesn't make the current move if it is not possible to reach the endpoint. So this can be expedient when proving a new program.

So with each tool call, I have a custom gcode written to call up the barrier values of the current tool. So my tool call looks like this:
T1 M6 G177

G177 contains logic to reset the softlimits forwards and backwards from the current tool number parameters, and turn them on. Its not rocket science to figure out once its done
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #2   Ban this user!
Old 09-01-2006, 12:44 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Hu,

This is a GREAT idea. I think I'll use this on my lathe also. Did you just use the TOOLHEIGHT parameter of your tool number for calculating the new softlimits? Set up a special new parameter in your tools setup screen?

I'm wondering how to allow for drills and boring tools to have more travel than turning and facing tools.

Karl
Reply With Quote

  #3  
Old 09-01-2006, 02:23 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Karl,
I used the available empty spots in my tool parameters table, called TOOLCUS1ST AND TOOLCUS2ND. I suppose you could use whatever you have open, as they are just providing data storage.

Thus far, I do not attempt to autocalculate the distance to the barrier. This is because I have 6 different chucks on the machine, and workpieces anywhere from 0 to 20 inches long in the chuck.

So, what I do is this: first move the carriage to machine zero, because this is the reference point for all barriers to be measured from. Then, with the help of a special machinist's tape measure , measure the distance from each tool to the right and to the left barrier (be it chuck or tailstock), and insert these values into the tool parameter table.

In cncsetup, I have zeros for the Z axis forward and back softlimits (which means they are disabled), but I do have fixed X softlimits. I turn softlimits on immediately after the machine is homed. This would still mean that there is no Z soft limits in place until the program runs, reads the G177 logic along with the T call.

Here is sample logic for the G177, which is pretty much the basic Camsoft examples given in G171 and G172 combined into one gcode.

' Set Chuck Tailstock Barriers
'use this gcode after a T call to calculate and install chuck barrier params for a given tool
\82=t
TOOLCUS1ST\82 \171
SOFTLIMITS BACKWARD \171;-2.85;0
' Set Foreward Crash Fixture or Chuck Barriers
TOOLCUS2ND\82 \172
SOFTLIMITS FOREWARD \172;2.9;0
SOFTLIMITS ON
BUTTON19 IN; SOFTLIMITS ENABLED

From what I read, all axis must be named in the SOFTLIMITS FOREWARD and SOFTLIMITS BACKWARD command syntax, thus I have restated my axis 2 (which is X on lathe) softlimits in constant radial distances.

My 'floating barrier' values (\171 and \172) are then pulled from the tool parameters table for the current tool in \82

After this is completed, then you can do whatever you wish so far as setting a new program home for the carriage to start from. All you need to consider when setting up the barrier length for the right, is that you take into account how far right the carriage has to travel to accomodate the longer drills. The unique barrier to the left never need change for each tool until you change chucks.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
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





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