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


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-28-2008, 11:32 AM
 
Join Date: Feb 2007
Location: Porto
Posts: 65
casta-baga is on a distinguished road
G65 P9510 A0 B18.5 C16. D81. R.1 Z-2.00 F6.7 W98.

G65 P9510 A0 B18.5 C16. D81. R.1 Z-2.00 F6.7 W98.

G65 = calls the P
P = macro
A = starting angul
B = diameter
C = number of holes to be drilled
D =
R = returning point in canne cycle
Z = depth
F = feed
w =

bolt circle programming that the previous programmer left me, I'm used to
work with a software and generate the codes but this looks more advanced...

can anyone please let me know what means the D and W

thanks
Reply With Quote

  #2   Ban this user!
Old 11-28-2008, 12:23 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

If I had to guess...

D = cycle type like "G81"
W = Clearance plane select like "G98"

Without seeing the macro itself though, not 100% sure. You need to post the sub routine (program number O9510) and any other sub calls it might have.
The only thing is that if I'm right, it seems awfully strange to have to write a drill macro like this when a standard canned cycle call can do basically the same thing. Maybe there's more to the macro? This might be a pattern macro. Anyway... need to see the macro....
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 11-28-2008, 01:01 PM
 
Join Date: Feb 2007
Location: Porto
Posts: 65
casta-baga is on a distinguished road

this is it.....

%
O9510(BOLT CIRCLE MACRO)
#2=#2/2
#1=#1-[360/#3]
N10#11=#11+1
#1=#1+[360/#3]
M1
IF[#11GT#3]GOTO20
#15=#25+[SIN[#1]*#2]
#16=#24+[COS[#1]*#2]
G#23G#7X#16Y#15R#18Z#26Q#17F#9
GOTO10
N20G80M99
%

my question is, can I just edit the main PGM (G65P9510A0B18.5C16.D81.R.1Z-2.00F6.7W98.)
withe a new A,B,c and Z values?
Reply With Quote

  #4   Ban this user!
Old 11-28-2008, 03:14 PM
samu's Avatar  
Join Date: Feb 2007
Location: quebec
Posts: 216
samu is on a distinguished road

psychomill is right, D is drill cycle and W is retract plane selection. You can change A B C and any value you want in the G65 line (except G65 and P9510) But, after reading macro, I can tell you that you have to add X (x coordinate of bolt circle center) and Y(y coordinate of bolt cicle center) in the G65 line.
Reply With Quote

  #5   Ban this user!
Old 11-29-2008, 09:21 PM
 
Join Date: Feb 2007
Location: Porto
Posts: 65
casta-baga is on a distinguished road

Originally Posted by samu View Post
psychomill is right, D is drill cycle and W is retract plane selection. You can change A B C and any value you want in the G65 line (except G65 and P9510) But, after reading macro, I can tell you that you have to add X (x coordinate of bolt circle center) and Y(y coordinate of bolt cicle center) in the G65 line.
hello guys,
I understood that if I change the A B C values in the G65 line I do have to add a X -.- and Y -.- in the same line.

I'm I right or not?

hey guys...
good weekend
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-01-2008, 10:00 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

You do not need to add the X,Y in the G65 line you can just specify G54-G59 in your macro program(these being set to the center of your part). If you choose not to use the G54-G59 then you have to do as Samu said and put the X,Y center of part in the G65 line. Given the fact that you did not post a X,Y value in the first post and the macro shows no G54-G55 value in it I would assume that the previous programmer was using G54 defualt for every part. This is being programmed off the center of the part and the X,Y location for the holes are triged out in the macro with the (SIN & COS). You can change all of the values in the G65 line except the P for the program. Change these to fit what you need. Don’t forget the Q value in the G65 line. This is your pick value. This will be used if you use a G73 or G83 peck cycle for your “D” value. If you are not using these cycles just set Q0.

I typically never use the G98 in the macro call. My control is set as G98 default. If you always want G98 either have your control default to this or hard code it right in the macro. It is just one less number you have to set in the program then.

What kind of control are you using??

Stevo
Reply With Quote

  #7   Ban this user!
Old 12-01-2008, 12:44 PM
 
Join Date: Feb 2007
Location: Porto
Posts: 65
casta-baga is on a distinguished road

I got it all, thank you guys.

I'm already thinking about getting some books from the library on this topic and etc...

seicos control
Reply With Quote

  #8   Ban this user!
Old 12-01-2008, 01:00 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Seicos controls are pretty user friendly and similar style to Fanuc programming.

Is that all of the macro that you posted in post #3? There should be more to it. I would have went a little different style but all in all the same. There should be something for a clearance plane(initial level). A few other things as well.

I have all my VMC work written in the style of that macro. However I set up S&F's in 1 program for all tools so you don't have to program that in the macro line. If you are intrested I have programs for tapping, threadmill, counterbore, single flute thread, backchamfer,ect. all in the same style as what you have. I also have all of these programmed for a rotary axis.

Stevo
Reply With Quote

  #9   Ban this user!
Old 12-01-2008, 01:36 PM
 
Join Date: Feb 2007
Location: Porto
Posts: 65
casta-baga is on a distinguished road

Yes Seicos controls are pretty user friendly; with my Fanuc experience I can learn these machines very easy.

I posted all the macro, I notice some programs are using the exact same macro for tapping; I also got macro for chamfering, set the tools, probing, tool change and etc….

I’m curious about your macro; can you please post it with the initial level plane and etc?

I think I’m interested on those macros you got for tapping, threadmill, counterbore, single flute thread, I’m very curious, I like to learn new things all the time.

Reply With Quote

  #10   Ban this user!
Old 12-01-2008, 02:17 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

A=number of holes
C=starting angle
K=G-code for drilling
D=angle between holes
R=radial distance of holes
Q=pick size
W=starting depth
T=tool number
Z=final depth
U=next tool(pre call)
M=coolant code


O0001(MAIN PROG.)
#525=3.(CLEARANCE PLANE)
G65P8000A12C0K81D30R9.25Q0W.05T5Z1.3U12M8
M30

O8000(RAD. DRILL)
M6T#20
T#21
G90G80
#2=SIN[#3]*#18
#4=COS[#3]*#18
G55G0X[#24+#4]Y[#25+#2]Z#525M3
#10=0
#11=#3
#12=#11
N1#2=SIN[#11]*#18
#4=COS[#11]*#18
G#6X[#24+#4]Y[#25+#2]Z-#26R#23Q#17M#13
#10=#10+1
#16=#7*#10
#11=#12+#16
IF[#10NE#1]GOTO1
G80M9
#3006=10(CHECK HOLE WITH GAUGE)
M99

Speeds & Feeds are set in a sperate program that way they only have to be changed 1 time. This program is called with every tool change. The H-value's are also set in the tool change macro with no tool movement. The M6 code is bypassed if the tool being called is already in the spindle. The reason I use #525 for the clearance plane(initial level) instead of using a variable(A,B,D,R ect) is because if you write a macro line and forget the clearance plane in the line it will not have a clearance. Variables #1-#33 are cleared at reset. #100-#199 are cleared at power down. #500-#999 stay until changed.

I will post more programs.

Stevo
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





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