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 > Fadal


Fadal Discuss Fadal machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-10-2010, 01:54 PM
 
Join Date: Jun 2010
Location: USA
Posts: 7
jpcaputo is on a distinguished road
Programming a Cone / Taper

Hi, I am hand coding a cone / taper program. Using a ball end mill, leaving everything parametric to be a universal code that can be copy - pasted into another program.

This is the first macro/parametric program for a fadal i have done. I have yet to try it, and would like some feedback as to any mistakes or what to be wary of, and any additions that would be usefull.

It is a 1995 4020HT with a 88HS -4 controller.

The code is below

Thank You in advance

John-Paul

CONE BAL END MILL ONLY
#SETDEG
#CLEAR V80-V99
#V97= ‘BIT DIA
#V96= ‘TAPER ANGLE IN DEGREES
#V95= ‘BASE DIA
#V93= ‘BASE DIST
#V92= ‘TOP DIST
#V91= ‘Z STEP SIZE
#V86= ‘CENT X
#V85= ‘CENT Y
#V84= ‘Z CLEARANCE

#V99=(V97/2)*SIN(V96) ‘X BIT OFFSET POS
#V98=((V97/2)*COS(V96))-(V97/2) ‘Z BIT OFFSET NEG

#V87=INT(ABS((V92-V93)/V91) ‘TOTAL # STEPS

#R1=V86 ‘X LOCATION
#R2=V85 ‘Y LOCATION
#R3=V84 ‘Z CLEARANCE LOCATION
#R4=0 ‘X DIST TO CENTER
Z+R3
X+R1Y+R2

#V90=0 ‘CURRENT STEP

:TAPER

#V89=(V95/2)-((V91*V90)*TAN(90-V96)) ‘X POSITION 0 CENTER
#V88=V93+(V91*V90)+V98 ‘Z ACT POS W/ BIT COMP
#V83=V89+V86-V99 ‘X ACT POS W/ BIT COMP
#V82=-V89
#R1=V83
#R3=V88
Z+R3
X+R1
G3 X+R1 Y+R2 I+R3 J0

IF V90<V87 THEN GOTO :INCREMENT
IF V90>=V87 THEN GOTO :END

:INCREMENT
#V90=V90+1
GOTO :TAPER

:END

Last edited by jpcaputo; 08-10-2010 at 02:56 PM.
Reply With Quote

  #2   Ban this user!
Old 08-10-2010, 04:42 PM
 
Join Date: Jun 2010
Location: USA
Posts: 7
jpcaputo is on a distinguished road

Latest version of the code, im trying it, and finding some bugs. I found out that fadal does not have Tangent, just sin, cos and arctan. with that bug found, its working. somewhat...

N1%
N306969(TAPER TEST)
N5F20.
N9M6T3H3L3D3()
N11G0 G40 G90 S750 M3
N13(CONE BAL END MILL ONLY)
N15(SET DEGREES)
N19#V97=.375'BIT DIA
N21#V96=30. 'TAPER ANGLE IN DEGREES
N23#V95=2. 'BASE DIA
N25#V93=3. 'BASE DIST
N27#V92=4. 'TOP DIST
N29#V91=.5 'Z STEP SIZE
N31#V86=0. 'CENT X
N33#V85=0. 'CENT Y
N35#V84=4.25 'Z CLEARANCE
N39#V99=(V97/2)*SIN(V96) 'X BIT OFFSET POS
N41#V98=((V97/2)*COS(V96))-(V97/2) 'Z BIT OFFSET NEG
N45#V87=INT(ABS((V92-V93)/V91)) 'TOTAL # STEPS
N47#V90=0. 'CURRENT STEP
N49#R1=V86 'X LOCATION
N51#R2=V85 'Y LOCATION
N53#R3=V84 'Z CLEARANCE LOCATION
N55#R4=V86-(V95/2) 'X DIST TO CENTER
N57Z+R3
N59X+R1 Y+R2
N61#:TAPER
N63#PRINT',V87,'
N65#PRINT',V90,'
N69#V80=V95/2
N70#V81=(V91*V90)*(SIN(90-V96)/COS(90-V96))
N71#V89=V80-V81 'X POSITION 0 CENTER
N73#V88=V93+(V91*V90)+V98 'Z ACT POS W/ BIT COMP
N75#V83=V86-V89-V99 'X ACT POSI W/ BIT COMP
N77#V82=-V89
N79#R1=V83
N81#R3=V88
N82#R4=-V89
N83Z+R3
N85X+R1
N87G3 X+R1 Y+R2 I+R4 J0
N91#IF V90<V87 THEN GOTO:INC
N93#IF V90>=V87 THEN GOTO:END
N97#:INC
N99#V90=V90+1
N101#GOTO:TAPER
N105#:END
N109Z2.
N111M5
N113M30
%
Reply With Quote

  #3   Ban this user!
Old 08-11-2010, 12:35 AM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

I have some spiral and conical spiral macros that I wrote years ago. If you e-mail me I'll send you a copy. I'll just need to find them first.

xyzpro@sbcglobal.net

Neal
Reply With Quote

  #4   Ban this user!
Old 08-11-2010, 11:39 AM
 
Join Date: Jun 2010
Location: USA
Posts: 7
jpcaputo is on a distinguished road

Thank You Neal,

Ill take you up on the offer and sent you an email, im interested in seeing how a pro writes macros for these applications.

You also might want to edit your post to not have your email, since there are lots of bots on the net that look for email addresses to send spam to.

I just got the code running, not sure about putting the right angle on the bot to the place on the part. havent tried running a part, just dry runs.

N15(SET DEGREES)
N19#V97=.375'BIT DIA
N21#V96=60. 'TAPER ANGLE IN DEGREES
N23#V95=2. 'BASE DIA
N25#V93=3. 'BASE DIST
N27#V92=4. 'TOP DIST
N29#V91=.5 'Z STEP SIZE
N31#V86=0. 'CENT X
N33#V85=0. 'CENT Y
N34#V90=1. 'CURRENT STEP
N35#V84=4.25 'Z CLEARANCE
N39#V99=(V97/2.)*SIN(V96) 'X BIT OFFSET POS
N41#V98=((V97/2.)*COS(V96))-(V97/2.) 'Z BIT OFFSET NEG
N45#V87=INT(ABS((V92-V93)/V91)) 'TOTAL # STEPS
N49#R1=V86 'X LOCATION
N51#R2=V85 'Y LOCATION
N53#R3=V84 'Z CLEARANCE PLANE
N55#R4=V86+(V95/2.) 'X DIST TO CENTER UNCOMP
N57G0Z+R3
N59G0X+R1 Y+R2
N61#:TAPER
N63#PRINT',V87,'
N65#PRINT',V90,'
N69#V80=(-V95/2.)
N70#V81=(V91*(V90-1))*(COS(V96)/SIN(V96))
N71#V89=V80+V81 'X POSITION 0 CENTER
N73#V88=V93+(V91*(V90-1))+V98 'Z ACT POS W/ BIT COMP
N75#V83=V86+V89-V99 'X ACT POSI W/ BIT COMP
N77#V82=V89
N79#R1=V83
N81#R3=V88
N82#R4=-(V89-V99)
N83Z+R3
N85X+R1
N87G3 X+R1 Y+R2 I+R4 J0
N91#IF V90<V87 THEN GOTO:INC
N93#IF V90>=V87 THEN GOTO:END
N97#:INC
N99#V90=V90+1.
N101#GOTO:TAPER
N105#:END
Reply With Quote

  #5   Ban this user!
Old 08-11-2010, 06:58 PM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

People would be amazed at how effective redirecting spammers crap back on them selves can be. Whata would tie up some idiots server any faster?
Reply With Quote

Sponsored Links
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
Cone Cutting in 15 mm mdf SuYoG FAQ of CNC Machine building 3 12-16-2010 03:54 PM
Text on cone. KVD GibbsCAM 4 05-27-2010 09:50 AM
Need Help!- Flattening out a cone ??? Mr. LocoMartin BobCad-Cam 9 04-09-2009 09:04 PM
I need help milling a cone! dynoman CNCzone Club House 1 01-21-2009 02:56 PM
Need Help!- Macro Programming for Taper Bore machining yaji63 G-Code Programing 30 05-21-2008 10:26 PM




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