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 03-10-2009, 07:09 AM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road
need 5 decimal places

I started thinking about a macro for cutting an angled plane on the top of a block
say I've got a 1x3 block 6" long and I want to cut back and forth in X with a positive Y-Z stepover at the end of each pass.
The slope of the plane is ΔZ/ΔY
The problem arises when the step-up in Z requires more than 4 decimal places
For instance,
If ΔZ is .75"
and ΔY is 1"
and the stepover is .005,
thats 200 cuts in the X direction
and each Z step needs to be .00375
If this is rounded up or down. then the slope won't be true

one thing I just thought of,
what if I round the Z value up and down alternately each loop of the macro, then if the last step is .00005 off, I won't really care about that, and the slope might be "irregular", but immeasurably so. (at least, I couldn't measure it)

These blocks I cut all the time are for vise jaws that have the irregular profile of an aluminum extrusion cut into them. So far I've been using bobcad-cam for this and cutting them on our Tree mill, which lets you input as many decimal places as you want. But I hate using that program and I'm always lookin for a reason to write my next macro.

So waddya think?
any different ideas out there?
Reply With Quote

  #2   Ban this user!
Old 03-10-2009, 07:51 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

Just because the numbers on the screen are only displayed to 4 places does not mean that the variables are limited to that.
Code:
#100=[0.750/200]
#101=[1.0/200]

G0Y-1.1
#102=-0.7500
#103=-1.0000
WHILE [#102 LT 0.0]DO1
G1Z#102F10.0
G1Y#103
G1X-1
#102=#102+#100
#103=#103+#101
G1Z#102F10.0
G1Y#103
G1X1
#102=#102+#100
#103=#103+#101
END1
The variable #100 will have a value of 0.00375 and if used in a while loop to increment the Z position you will get what you want.
Reply With Quote

  #3   Ban this user!
Old 03-10-2009, 08:06 AM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road

thank you Andre
my macro was finished and I didn't even know it!
Reply With Quote

  #4   Ban this user!
Old 03-10-2009, 02:15 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Make sure that your machine can position to 5 places. Your servos may only position in .0001 increments. Just a thought.
Reply With Quote

  #5   Ban this user!
Old 03-10-2009, 02:26 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by JWK42 View Post
Make sure that your machine can position to 5 places. Your servos may only position in .0001 increments. Just a thought.
The specs on Haas machines say +/-0.0001 for positioning (repeatability), worrying about 0.00005 is a bit pointless; do the round up round down on alternate passes.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-10-2009, 02:37 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,041
Kiwi is on a distinguished road

Originally Posted by kendo View Post
...... for cutting an angled plane on the top of a block.........any different ideas out there?
You should be able to use code for XY plane and rotate that plane.
Fanuc G68 'Coordinate System Rotation'
Reply With Quote

  #7   Ban this user!
Old 03-10-2009, 04:52 PM
 
Join Date: Jun 2006
Location: usa
Posts: 236
kendo is on a distinguished road

someone would have to really explain to me how to do that.

I've never used G68, because my understanding of it is you can rotate coordinates on a plane, but not the plane itself
The section in the Haas manual seems pretty clear about it and I've never had any use for it

but I did find some chatter on the web about a 3D rotation option for some fanuc controls that allows this
Reply With Quote

  #8   Ban this user!
Old 03-10-2009, 06:55 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,041
Kiwi is on a distinguished road

Originally Posted by kendo View Post
........I've never used G68, because my understanding of it is you can rotate coordinates on a plane, but not the plane itself....
Rotating the coords on a plane has the same outcome as rotating the plane.
I have never used a Fanuc. Maybe only one plane/coordinates can be rotated at the same time?
With a Fagor, one, two or three planes can rotated at the same time. eg. G49 A30 B10 C5

For a Fanuc try this:
G19 (YZ Plane)
G68 Y0 Z0 R36.87 (Centre of rotation. R = Atan(0.75/1.0)
.....Code......
G69 (Cancel rotation)
G17 (XY Plane)

Last edited by Kiwi; 03-10-2009 at 07:28 PM. Reason: added Fanuc code
Reply With Quote

  #9   Ban this user!
Old 04-09-2009, 03:05 PM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

I dont know if my issue is the same or not but I have a bunch of code for 3d pockets to be cut for injection molds that have been generated in mastercam x2 that are 5 decimal place ( 1.99999 and the like) the HAAS controller comments these lines out and says its not a number .

Is there a setting I can change to allow me to run my existing programs?
Reply With Quote

  #10   Ban this user!
Old 04-09-2009, 03:24 PM
 
Join Date: Apr 2006
Location: usa
Posts: 128
JWK42 is on a distinguished road

Suburban Machinery has a very good CNC Code Editor that will search a very large file and format the different X, Y, Z commands to 4 place decimals.
I have used it for about 12 years and really like it. I think they have a demo version to download and try before you buy it. Google "Suburban Machinery Software" and it comes right up at the top
I don't have any interest in their company other than a satified user.

They are--

Suburban Machinery
3777 Harlow Drive
Willoughby, Ohio 44094
216 951-8974

subsoft@buckeyeweb.com

Last edited by JWK42; 04-09-2009 at 03:28 PM. Reason: added comment
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-09-2009, 06:00 PM
 
Join Date: Nov 2003
Location: USA
Posts: 231
Haas_Apps is on a distinguished road
MCEDIT

You already have a editor that will do what you want. Open X2, then select from the file menu OPEN/Edit External. In the dialog box press the editor button and select MCEDIT then select any file.

When MCEDIT opens select the file you want to modify. Once it is loaded select NC Utils, then select shift. In the shift dialog put 0 for the shift factor and enter 4 for the decimal places. Then select all of the axis you want to modify. Press OK and you should be done.


Originally Posted by panaceabea View Post
I dont know if my issue is the same or not but I have a bunch of code for 3d pockets to be cut for injection molds that have been generated in mastercam x2 that are 5 decimal place ( 1.99999 and the like) the HAAS controller comments these lines out and says its not a number .

Is there a setting I can change to allow me to run my existing programs?
Reply With Quote

  #12   Ban this user!
Old 04-10-2009, 04:44 PM
 
Join Date: Aug 2004
Location: us
Posts: 309
panaceabea is on a distinguished road

Thanks , I figured it was a simple setting in Mcam that would generate files with the correct number of decimal places .
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
Need Help!- putting in decimal places. G00 G-Code Programing 4 08-27-2008 02:27 PM
Favrite places to buy tooling? JDsto Mini Lathe 3 12-25-2007 09:47 PM
other places for RFQ/bids for work, etc.? theshooter Employment Opportunity 3 02-09-2007 10:08 AM
Pro/manufacture -number of decimal places arc events dsergison Post Processor Files 4 05-27-2005 12:50 PM
Places to buy metals online? Ben General Metal Working Machines 6 06-10-2003 07:27 PM




All times are GMT -5. The time now is 11:52 AM.





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