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


Surfcam Discuss Surfcam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-26-2011, 01:49 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road
Postform.m in Surfcam Vel 4.0

Just recently I got involved with Surfcam Velocity 4 (coming from Powermill ) and I have a few questions about adding a custom post. Got part time work from a company who has Leadwell Fanuc OM-A (older model). Would like to edit an existing post in Surfcam. I was told Postform.m is where the change needs to be.

The reason being-On rigid tap none of the generic post Haas or Fanuc etc. comes up with a M29 Sxxx
and two theres a "Q" or a "P" in the line of code-need changes in both places.
Would like to stay from manual editing.
Ex:
T5 M6
M3 S500 (Add M29 before S)
G00 G54 X0.5 Y0.688
G43 Z1. H5
M8
G93
G84 G98 X0.5 Y0.688 Z-0.3539 R0.1 P0 F27.778 (No Q or P after G84)

Thanks
JC
Reply With Quote

  #2   Ban this user!
Old 01-26-2011, 02:53 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

This is how I have my Surfcam set up with a Fanuc 21M:

Tap # Tapping canned/manual cycle
if [Rigid] > 0
M29 S[SPEED]
G84 G[RetPlane] X[H] Y[V] Z[D] R[VClear] F[FRate]
else
G84 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate]
Endif
end cancel

and when it posts, the ouptut looks like this:

T1
M6
S1000
G0 G90 G54 X-4.0784 Y2.4499
G43 Z1.1 H1 M8
M29 S1000
G84 G98 X-4.0784 Y2.4499 Z-0.375 R0.1 F27.6
G80
M9
M5
G0 G90 G49 G28 Z0
M19
M30

Just make sure when you choose your drill cycle, to use rigid tap, then it will post with the M29. I like to have it post with the spindle speed right after the tool change in case it needs to do a gear change, ie low range.
Reply With Quote

  #3   Ban this user!
Old 01-26-2011, 07:04 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road

Thanks for the help. Do you have any thoughts on that second issue where the Q & P is coming up in that line of code with the G84.

Thanks
JC
Reply With Quote

  #4   Ban this user!
Old 01-26-2011, 07:29 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

Open up your postform.m file with editNC or notepad and copy and paste the section where it talks about tapping and post it here. That way we can suggest how to change your particular post to make it work for you. You don't need to show us the whole post, just the relevant section.
Reply With Quote

  #5   Ban this user!
Old 01-26-2011, 07:33 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

Another reason for the P to show up would be if you put a dwell amount in the hole processing box. It's the box right under "cycle type" .
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-26-2011, 08:37 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road

Here is that section we are dicussing:
as far as the Dwell I understand that Thanks for letting me know where it is..- wasnt sure if that Fanuc OM will accept it- I wasnt sure about "Q"

Tap # Tapping canned/manual cycle
if [Rigid] > 0
G93 G93 to lock Z to spindle rotation.
G84 G[RetPlane] X[H] Y[V] Z[D] P[Dwell] R[VClear] F[FRate]
else
G84 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate]
Endif
end cancel

JC
Reply With Quote

  #7   Ban this user!
Old 01-26-2011, 08:43 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road

Tap
if [Rigid] > 0
G93 G93 to lock Z to spindle rotation.
G84 G[RetPlane] X[H] Y[V] Z[D] P[Dwell] R[VClear] F[FRate]
else
G84 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate]
Endif
end cancel

Last edited by Jerseycnc; 01-26-2011 at 08:48 PM. Reason: copy & paste not good
Reply With Quote

  #8   Ban this user!
Old 01-27-2011, 01:10 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

The easiest thing to do to get rid of posting the dwell if you never plan on using it is to modify your post. Before you do that, make a copy of it and put it somewhere safe so that you always have a "virgin" copy somwhere.

In this section:
Tap
if [Rigid] > 0
G93 G93 to lock Z to spindle rotation.
G84 G[RetPlane] X[H] Y[V] Z[D] P[Dwell] R[VClear] F[FRate]
else
G84 G[RetPlane] X[H] Y[V] Z[D] R[Vclear] F[FRate]
Endif
end cancel

just delete the P[Dwell] and save your post and then it won't post with that piece of code in it. Although if you ever want to have a dwell for whatever reason in the future, you will have to go back and add that section back in. Personally, I don't use a dwell for tapping. I think it might be useful if you were using a Tapmatic head in the CNC, but I'm not absolutely sure. On the Fanuc 21M I run, we just use the taps mounted directly into collets when tapping, we do the same on our Haas also.
Reply With Quote

  #9   Ban this user!
Old 01-27-2011, 03:04 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road

(TOOL_3 5/16-18 TAP PLUG)
(OPERATION_3 TAP THRU)
M9
G49 Z0 M5
T3 M6
M3 S297 --------move next line down--
G00 G54 X1.125 Y-0.5
G43 Z1.1 H3
M8
M29 S297
G84 G98 X1.125 Y-0.5 Z-0.3439 R0.1 P0 F16.5
X11.25
G80
G94
(TOOL_4 .125DIA EM 2FL)
(OPERATION_4 POCKET THRU)
M9
G49 Z0 M5


Just got in thanks for new reply-you"ve helped alot !!!
This is what I got right now as shown above. I will move the speed on next line of code. Didnt want to do too much @ one time. I keep reposting to see different changes and yes took a shot at taking out P[Dwell] but decided leave it in and dont but in a Dwell. Im agreeing in that a tapmatic. If you notice it has a G94 which Unlock Z if w/ rigid tap as stated in postform.m - I dont think its needed for this control. will look further unless you have insite............

Thanks again
JC
Reply With Quote

  #10   Ban this user!
Old 01-27-2011, 03:45 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

It looks like with that posted code, you shouldn't have any problems. One thing I did change on my post was to eliminate the m3 right after the tool change. If you look at yours, the tool changes, the spindle turns on, aproaches the position, goes to Z height, turns on coolant, then signals the controller the M29 code with the spindle speed. I changed mine to just set the speed after the tool change so it actually doesn't turn on until the M29 code. So with my post, it would look like this:

(TOOL_3 5/16-18 TAP PLUG)
(OPERATION_3 TAP THRU)
M9
G49 Z0 M5
T3 M6
S297
G00 G54 X1.125 Y-0.5
G43 Z1.1 H3
M8
M29 S297
G84 G98 X1.125 Y-0.5 Z-0.3439 R0.1 P0 F16.5
X11.25
G80
G94
(TOOL_4 .125DIA EM 2FL)
(OPERATION_4 POCKET THRU)
M9
G49 Z0 M5

This does present a "pucker" factor as the tool approaches the hole location with the spindle stationary. If you ever ran a Fadal, that was the same way they ran with rigid tapping.

If you are interested in setting it that way, you can modify your post after it says StartCode with this:


1stToolChange # First tool change
G0 G30 Z0
M1
T[Tool]
M6
if [Rigid] > 0
S[Speed]
G00 G90 G[WORK] X[H] Y[V] T[NextTool]
G43 Z[D] H[Lcomp] M[Cool]
else
S[Speed] M[Direct]
G00 G90 G[Work] X[H] Y[V] T[NEXTTOOL]
G43 Z[D] H[Lcomp] M[Cool]
Endif
End


BUT, use at your own risk of course.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-27-2011, 05:34 PM
 
Join Date: Jul 2005
Location: Usa
Posts: 44
Jerseycnc is on a distinguished road

I will experiment at this point I appreciate the direction , I try not to manually edit G-code which can cause error in the long run. The other choice would be to use a text editor ( I use Ultra-Edit ) and can write a macro to edit G-Code. I wanted to try this first ,
and I feel you got me to that point.


Thanks
JC
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
Problem- Can't remove post line #'s using postform.m MrBoss8 Surfcam 12 10-03-2009 07:36 AM
New to surfcam chrisng29 Surfcam 8 09-10-2009 12:57 PM
What is Surfcam SE? moldcore Surfcam 1 03-22-2007 10:53 AM
Postform.m moldcore Surfcam 13 04-05-2006 08:16 AM
Surfcam help jamesr General CAM Discussion 16 12-13-2005 07:10 AM




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