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 > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-06-2010, 10:33 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road
BIESSE Trig & Rotate/Repeat Problem?

Its a 3 day public holiday. I have been ill for 2 of them and the boss wants to know if I can program this by Wednesday? Can you guys help?

As you can see in the diagram I have broken it into 6 stages. The first is simple. Everything else is a bit harder. I am using 1 tool throughout so keeping the tool on the workpiece as often as possible gives me a completed workpiece faster.

What I do know are:-

STL=110

BAR=110(may change)

To get TG:-

GAP=(LPY-(STL*2))/100+1 SPA=_I(GAP) TG=(LPY-(STL*2))/SPA

Heres what I have for stage 1:-

N10 G71 LX=1980 LY=810 LZ=40 HC1 Z=PRK
N11 STL=110 BAR=110
N12 GAP=(LPY-(STL*2))/100+1 SPA=_I(GAP) TG=(LPY-(STL*2))/SPA
N20 X-5 Y=STL Z=PRK PRZ=2 F20 G40 TP1 L=PON
N30 G1 X=(LPX/2)+(BAR/2)
N40 G1 Y=LPY-STL
N50 G1 XI=-BAR
N60 G1 Y=STL
N70 G1 X=LPX+5
N90 G1 X=LPX-BAR
N100 G1 Y=LPY-STL
N110 G1 X=LPX+5
N120 G1 X-5
N130 G1 X=BAR
N140 G1 Y=STL

This completes stage 1
Attached Thumbnails
Click image for larger version

Name:	BARNDOOR.jpg‎
Views:	101
Size:	64.3 KB
ID:	108666  
Reply With Quote

  #2   Ban this user!
Old 06-06-2010, 11:43 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Stage 2

My Trig is very rusty. But this worked...

AN1 = TAN((LPX/2-(BAR*1.5)/(LPY-(STL/2)))

AN2 = 90-AN1

VE1 = (VEE/2)/(SIN(AN1))

VE2 = (VEE/2)/(SIN(AN2))

In Biesse Speak:-

N13 VEE=110
N14 AN1= _A((LPX/2-(BAR*1.5))/(LPY-(STL*2) AN2=90-AN1
N15 VE1=(VEE/2)/(_S(AN1)) VE2=(VEE/2)/(_S(AN2))

Code for stage 2:-

:1
N140 G1 X=STL+VE1
N150 BS+ BA=AN2
N160 G1 X=BAR Y=LPY-STL-VE1 BA=AN1+90
N170 G1 X=(LPY/2)-(BAR/2)-VE2 Y=STL
N180 BS+ BA=AN1+90
N190 G1 X=BAR+VE2 Y=STL BA=AN2
; 1/2 CROSS TO BE ROTATED AND REPEATED

Last edited by bigz1; 06-08-2010 at 03:01 AM.
Reply With Quote

  #3   Ban this user!
Old 06-07-2010, 12:20 AM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

For stage 3 and 4 I am hoping to use a toolpath as in attached both starting from the top rh corner of each path. I could use SPA as a counter for the to stop the lines overiding LPY-STL and trig for their length. But have no idea how to stop the lines overiding the VEE in the other toolpath parametrically.

Any ideas would be appreciated.
Attached Thumbnails
Click image for larger version

Name:	BARNDOOR2.jpg‎
Views:	44
Size:	11.2 KB
ID:	108676  
Reply With Quote

  #4   Ban this user!
Old 06-08-2010, 03:04 AM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

I have edited post 2. Too correct the code and my maths.

I tried and failed to rotate the code to complete the cross any ideas?
Reply With Quote

  #5   Ban this user!
Old 06-15-2010, 03:39 AM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Stage 3 and 4 have taken longer than expected, but now work. Stage 4 could have less jumps if I used L=PSU(but I try and avoid lifting the bit as it slows the time to complete the piece).

Stage 3

N200 HI3=HI2
:HI3 = 0 OR LESS STAGE 3 FINISHES
N210 JM!(HI3=>0):6
N220 G1 XI=HI YI=TG
:2
N230 JM!(HI3=>0):6
N240 XI=HI3
N250 JM:5
:3
N260 JM!(HI3=>0):6
N270 XI=-HI3
N280 JM:4
:4
N290 HI3=HI3-(2*HI)
N300 JM!(HI3=>0):6
N310 XI=HI YI=TG
N320 JM:2
:5
N330 HI3=HI3-(2*HI)
N340 JM!(HI3=>0):6
N350 XI=-HI YI=TG
N360 JM:3
:5
N370 L=PSU



Stage 4

N380 BB=1 LET(TG-VE1)/_C(AN1) LEN=LET*_S(AN1)
;BB=GAP COUNTER LEN IS STARTING LENGTH

(couldn't get tan(posibly my poor maths) so I used COS then SIN)

N390 X=BAR Y=STL+TG PRF=2 F20 G40 TP1 L=PON
N400 G1 XI=LEN
:7
N410 JM!(BB=SPA/2-0.5):8
;IF LAST ASCENDING LINE IS NOT CENTRE OF APEX? LIFT BIT AND MOVE
N420 L=PSU
N430 YI=TG PRF=2 F20 G40 TP1 L=PON
N440 BB=BB+1
N450 JM:10

(Section 7 could be deleted if I used PSU and PON for the diagonal moves)

:8
N460 JM!(BB=<SPA/2):9
;ARE HORIZONTAL LINES LESS THAN HALFWAY?
N470 JM(BB=SPA-1):12
;IS SECTION 4 COMPLETE?
N480 XI=HI YI=TG
;ASCENDING GAP MOVE
N490 BB=BB+1
N500 JM:10
:9
N510 JM(BB+SPA-1):12
:IS SECTION COMPLETE?
N520 XI=-HI YI=TG
;DESCENDING GAP MOVE
N530 BB=BB+1
:10
N540 G1 X=BAR
; LINE TO LEFT
N550 JM(BB=SPA-1):12
;IS SECTION COMPLETE?
N550 YI=TG
:GAP MOVE IN Y AXIS
N560 BB=BB+1
N570 JM(BB=SPA-1):12
;IS SECTION COMPLETE?
N580 JM!(BB<SPA/2):1
N590 XI=LEN+((BB-1)*HI)
;ASCENDING HORIZONTAL LINE LENGTH
N600 JM:7
:11
N610 XI=LEN+((SPA-(BB+1))*HI)
;DESCENDING HORIZONTAL LINE LENGTH
N620 JM:9
:12
N630 L=PSU

The pprogram works well the only problem I could forsee is if the cross got really WIDE or the door height was really small some extra jumps would be necessary in Section 4. Otherwise it works perfect.

Still working out the rotate comand but getting close to an answer.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-16-2010, 03:54 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

someone is having fun! waking up in the night with biesse codes floating in front of your eyes? lol

just received my new 335 biesse (93 model) -easier to convert than the 321 model as it doesnt have serial comms.
started the mach/galil conversion on it last night.
then stuff like this will be easy! imagine a nicely v carved door. mmmmmmm
__________________
so much to learn, so much to pass on.
Reply With Quote

  #7   Ban this user!
Old 06-18-2010, 01:02 AM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Originally Posted by battwell View Post
someone is having fun! waking up in the night with biesse codes floating in front of your eyes? lol

just received my new 335 biesse (93 model) -easier to convert than the 321 model as it doesnt have serial comms.
started the mach/galil conversion on it last night.
then stuff like this will be easy! imagine a nicely v carved door. mmmmmmm
You know your going to miss spending a week on figuring out a simple program.

Instead of teasing me. How about figuring out how to mirror code in the y axis?????? So i can complete the final stage.

I think it has something to do with working tables and the fixed cycle PM.

Good luck with the conversion an how about a thread on it?
Reply With Quote

  #8   Ban this user!
Old 06-18-2010, 05:14 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

have you tried the rt command rt180?
__________________
so much to learn, so much to pass on.
Reply With Quote

  #9   Ban this user!
Old 06-18-2010, 10:33 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Yeap i have got the rotate to work to complete stage 5:-

:12
N630 L=PSU
N640 X=LPX/2-(BAR*0.5) Y=LPY-STL-VE1 G40 TP1 L=PON
N650 X0=LPX/2+(BAR+0.5) YO=LPY
N660 RT=180
N670 CC=CC+1
N680 L=PSU
N690 JM(CC=1):1

What I need to do is now mirror stages 2,3,4 and 5 to complete stage 6.
Reply With Quote

  #10   Ban this user!
Old 06-19-2010, 01:37 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

change the x offset and repeat code?
thats how i do numerous jobs on a sheet

does it have to be mirrored or can you do a same way repeat?
__________________
so much to learn, so much to pass on.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-19-2010, 03:06 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

for anything im going to repeat i normally start at the centre of the repeat job so its simply a matter of changing xo= to xo= (new position) this way you can also use it as a sub routine and call with just xo and yo = coordinates

in your case the second offset is twice your bar plus the hatch code width.

id like the full code listing when its done. i could do with some new doors!

bigz has cracked biesse code ! in a strange sort of way. well done you have learnt well.
do you get extra beer and chips for this? find me a job over there
__________________
so much to learn, so much to pass on.
Reply With Quote

  #12   Ban this user!
Old 06-19-2010, 03:11 AM
 
Join Date: Feb 2008
Location: uk
Posts: 384
battwell is on a distinguished road

just noticed youve already used xo.
you would have to add to it to shift to right place for second runs.
__________________
so much to learn, so much to pass on.
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
840D control - repeat problem Finndus Siemens Sinumerik CNC controls 0 04-19-2010 06:19 AM
Need Help!- Biesse Rover A3.30 problem rliovic WoodWorking 0 02-09-2010 01:33 PM
Biesse pendular machining problem majstor76 CNC Machining Centers 3 01-26-2009 01:13 PM
10M Can not Helical repeat L(x) Problem the professor Fanuc 3 10-31-2007 10:52 AM




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