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! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-03-2003, 07:38 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Rotate 3D Profile/Tool length Comp.

Hi
I have a 3Axis mill with a Fagor 8055 controller.
I am a newbie and trying to write G-Code to rotate a profile.
The profile is a 3D path of 450 lines which needs to be passed along 12 times at 1mm Z levels.
Rather then duplicate the profile 12 times with corrected Z figures, I want to repeat the profile and alter the Z level.
Can this be done by altering the Tool Length Compensation.
This is a sample of what I have (may be all wrong):
Many Thanks
Kiwi.

N100 (IF(P1 EQ -1)P1 = -2) ;??
(IF(P1 EQ 0)P1 = -1) ;??
N200 G00 X0 Y0 Z15
G43 ZP1 ;?? Set Z Compensation
;(Start of Path)
G01 X0 Y0 Z0 ;Sample Only
X20 Y5 Z-7 ;Sample Only
X30 Y8 Z-12 ;Sample Only
;(End of Path)
N400 G00 Z15
X0 Y0
(RPT N100, N400) N3
G44 ;?? Canel Z Compensation
N500 G73 Q10
(RPT N100, N500) N3
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 07-03-2003, 08:45 PM
hardmill's Avatar  
Join Date: Mar 2003
Location: United States
Posts: 499
hardmill is on a distinguished road
Huh?........

How about showing us a sketch and the code you have
so we can better understand.
PEACE
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 07-04-2003, 04:20 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi Hardmill, Thanks,

Shortened version.

JPEG & Txt files attached.

Regards
Kiwi
Attached Files
File Type: zip singlepass.zip‎ (21.0 KB, 92 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 07-05-2003, 06:29 AM
*Registered User*
 
Join Date: Jun 2003
Location: Stockholm / Sweden
Posts: 17
Per_N is on a distinguished road
Loop

Suggest.
Make a loop.
Set #1=0 (Loop counter)
Set #2=1 (Cutting depth)
While #1 LE 12 DO 1 (Something like this, not sure)
your countour comes here, and change all your Z levels to
Z[your value - #2]
#1=#1+1
End loop

Not sure about the exaxtly typing, have to look in the manual for that.

What do you think? could it work.

Per
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 07-06-2003, 07:29 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi Per_N,

Thankyou for your reply.
If I understand you correctly, your solution is stepping the Z value in increments to the value of #2?
If this is correct, I don't think that is what I need.
My problem is that this is a 3D profile, and the Z value is changing along the path.
I have found that my controller has a Zero Offset Table with Codes G58 & G59. I am still trying to find out if this is my answer.
If someone know a little about these codes I would appreciate any advise.

Regards
Kiwi
NZ
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-06-2003, 09:36 PM
Jennifer's Avatar  
Join Date: Jun 2003
Location: San Diego, CA
Posts: 129
Jennifer is on a distinguished road
Kiwi-

My machine uses these codes...incremental offsets (both G58 and G59). If you're looking to repeat the same program you'd change it to:
(ORGX58=?,ORGY58=?,ORGZ58=?) The ?s being the incremental moves...if you're looking to move the part over 1" in X only and repeat the program with a deeper Z depth of, say, .25 you'd change it to:
(ORGX58=1,ORGY58=0,ORGZ58=-.25)
G58
(RPT N100,N400)

Hope that helps.

Jen
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 07-07-2003, 08:46 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi Jen,

Thankyou for your help, this looks like what I'm looking for.

Earlier today I changed the Z setting in the Zero Offset Table under G58 from 0 to -2(mm) , but when I run the program it stops with a warning...over riding the soft limits.

I've had another read of the manual and it covers the (ORGZ 58=?) that you refer to.
I'll study this further and have another go tomorrow.

Regards
Kiwi
NZ.
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 07-07-2003, 10:16 AM
*Registered User*
 
Join Date: Jun 2003
Location: Stockholm / Sweden
Posts: 17
Per_N is on a distinguished road
Kiwi

If i get your question right, you wan't to repeat the same path a number of times. But change only the Z value. If this is correct the my loop will work perfectly if you understand what I ment.

Regards Per
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 07-07-2003, 11:49 AM
 
Join Date: Mar 2003
Location: United States
Posts: 106
E-Stop is on a distinguished road
If all you are wanting to do is run the exact same toolpath with a different tool length, try using the G10 command. You can incrementally change your tool length compensation by using:
G10G91L?P?Z-.1 ect
Check your manual to see what "L" you need for tool offsets (usually L10) and "P" will be the tool offset number.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 07-08-2003, 05:13 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi Per_N

My understanding from the code you supplied is that the Z value is constant for each pass. Correct me if I'm wrong.
I need the Z value to change as this is a 3D profile.
I want to make each pass 1mm deeper then the previous pass.

Thank you for your help.
Regards
Kiwi.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-08-2003, 05:25 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi E_Stop,

Thankyou for your help.
After trying to use (ORGZ 58=?) without any success, I now think your suggestion may be the answer.
Your G-Code must have some variations to what I use as G10 command for my controller is 'Mirror Image Cancellation'.
G43 is Tool Length Compensation which I am still trying is get to work.

Regards
Kiwi.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 07-08-2003, 05:32 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 992
Kiwi is on a distinguished road
Hi Jen,

Tried (ORGZ 58=?) but this appears to relate to the HOME Zero on my machine. Every time I ran the code I would lose my settings and it would run under the Home references.
This may be a factory setting?

Regards
Kiwi
Tweet this Post!Share on Facebook
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timing belt length calculator. dmgdesigns DIY-CNC Router Table Machines 2 01-05-2009 07:54 PM
Using control comp in lead in-outs badRandle Mastercam 22 08-07-2007 03:22 PM
FeatureCam cutter comp Jim Bass FeatureCAM CAD/CAM 10 03-28-2006 08:49 AM
Tool length sensing! Swede FlashCut CNC 15 10-12-2005 08:51 PM
Programming/Using tool length Fudd Fadal 7 06-24-2004 11:27 PM




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