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 12-20-2008, 05:28 PM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road
path code to S post

I'm hoping someone can help me out here...
I am trying to get a 4 axis post working with Surfcam for our Mazak 510C.
I have been messing around for hours trying to figure this all out and I'm stumped. I aquired two files for the S post and can't seem to get them put in the right place to work when I click on the "post" button in Surfcam. The files I have are:
Uncx01.p2380 and Uncx01.f2380. I found several locations where there is a PostLib folder and I'm not sure which one to put them in. I messed around with this and changed the path in the PST file to:

BeginPost 4 Axis Default:1
PostItem MAZAK NEXUS 510
Status Display all posts in postform.m
ChDir "C:\SURFCAM\Velocity3\SPOST"
Delete "%p%N.NCC"
Command "C:\SURFCAM\Velocity3\SPOST\MPOSTWIN" "%p%n" 2380
Task "C:\SURFCAM\Velocity3\editNC\editNC" "%p%N.ncc"
EndPost

I have something messed up, and can't figure it out. Could someone shed a little light on this?

Thanks,
Steve
Reply With Quote

  #2   Ban this user!
Old 12-21-2008, 07:57 AM
 
Join Date: Dec 2007
Location: USA
Posts: 29
Darinbee is on a distinguished road
RE: Problem path code to S post

You have modified an Mpost PostItem instead of an Spost

Make sure your UNCX files are in your C:\SURFCAM\Postlib\Spost folder

Note, the INC2APT switches my not be correct for your Post

Try this instead.

PostItem MAZAK NEXUS 510
Status MAZAK NEXUS 510
Command "C:\SURFCAM\Velocity3\INC2APT" -w -5 -I "%p%n" -O "%p%N.apt"
ChDir "C:\SURFCAM\Velocity3\SPOST"
Delete "%p%N.NCC"
Command "C:\SURFCAM\Velocity3\SPOST\SPOSTM" "%p%N.apt" 2380 "%p%N.ncc"
Task "C:\SURFCAM\Velocity3\editNC\editNC" "%p%N.ncc"
Reply With Quote

  #3   Ban this user!
Old 12-21-2008, 11:18 AM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road
Success!

Darinbee...Thanks for your help! That did the trick.

Regards,
Steve
Reply With Quote

  #4   Ban this user!
Old 12-21-2008, 12:23 PM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road
Hmmmm not quite right yet...

Well, I can post a program now, but I'm not seeing any "A" axis moves in the program. I'm not sure if the UNCX files are any good for 4 axis milling though. I got them from Surfcam a few weeks ago. They said they were "public domain" and they may need to "contact your reseller for manipulation of this post if you need it changed". I sure would like to be able to do this myself, rather than be at the mercy of technical support. Our maintenance contract is up so we're screwed as far as help from Surfcam.

Steve
Reply With Quote

  #5   Ban this user!
Old 12-22-2008, 12:07 AM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road

Well, I messed around with this stuff all day and I have an understanding of how to modify MPosts. In the POSTFORM.M file you make your changes. As far as the Spost goes, I'm totally confused when I look at the UNCX files. It looks like there is an "s", "p", and "f" file with the same preceding number, but when you open the file, it's just an assload of numbers that don't make sense to me. I played around with the Option File Generator and was able to iron out my "A" axis positive and negative degree stuff. I don't want ANY sequence numbers in my program and I was able to get rid of all but the one at the first tool call. I also would like to be able to use G93 (inverse timing) for "A" axis work. Would anyone know how I can achieve this? Will it require a different UNCX file? Where exactly is the G93 command handled?

Any help would be appreciated.
Steve
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-22-2008, 01:03 AM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road

I feel like I'm talking to myself here...LOL

I did a little more digging and figured out where the G93 inverse timing is handled. I think I have a working post now! I still didn't figure out that sequence # problem though.
Reply With Quote

  #7   Ban this user!
Old 12-22-2008, 01:53 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

"SEQNO


SEQNO/k,INCR[,m[,n]]

k Is the starting sequence number.

m Is the incremental value.

n Causes sequence number output every nth block.

This is the default condition assumed with k,m,n=1.



SEQNO/k

Generates a sequence number k for the next block only.



SEQNO/0

Causes sequence numbers to be same as .INC and CL record numbers.



SEQNO/OFF

Terminates sequence number output.



SEQNO/NEXT

Generates the next block as an alignment block with the address selected by the Configuration Tool in the sequence number.

Related Commands:

PLABEL/OPTION,30"

From SPOST help menu. Maybe try using SEQNO/OFF? And yes, Surfcam forum here seems pretty dead, specially compared to Mastercam's. Which could mean that Surfcam is easypeesy to use and Mastercam is difficult or that user base of Surfcam is really small.
Reply With Quote

  #8   Ban this user!
Old 12-22-2008, 06:59 PM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road

Excelmachine...Thanks a lot for the info!

I gave my test program a shot after work tonight and I was disappointed. The tool path was real jerky...almost like it read a line stopped, then went on to the next. G9 is an "exact-stop check" and at first I thought maybe I had that in there causing this. I checked and there are no G9's. Here is a sample of my program:

O1000
T13 M06
G54 G90
S1459 M03
G00 G43 Z3.1 H13
X.956 Y0. A-148.355
Z3.03
G01 Z3. F5.
G93
G01 X.979 F326.087 A-143.79
X.9951 F326.831 A-138.865
X1.0048 F314.342 A-133.511
X1.0083 F279.942 A-127.384
X1.0046 F359.909 A-122.627
X.994 F395.84 A-118.458
X.9765 F409.97 A-114.776

blah,blah,blah

G94
G00 Z3.1
M6 T13
G91 G28 Z0
G28 Y0
%

Anyone have any ideas?

Steve
Reply With Quote

  #9   Ban this user!
Old 12-23-2008, 08:56 AM
Cammotion's Avatar  
Join Date: Nov 2004
Location: USA
Posts: 166
Cammotion is on a distinguished road

Originally Posted by Steve Manthey View Post
Excelmachine...Thanks a lot for the info!

I gave my test program a shot after work tonight and I was disappointed. The tool path was real jerky...almost like it read a line stopped, then went on to the next. G9 is an "exact-stop check" and at first I thought maybe I had that in there causing this. I checked and there are no G9's. Here is a sample of my program:

O1000
T13 M06
G54 G90
S1459 M03
G00 G43 Z3.1 H13
X.956 Y0. A-148.355
Z3.03
G01 Z3. F5.
G93
G01 X.979 F326.087 A-143.79
X.9951 F326.831 A-138.865
X1.0048 F314.342 A-133.511
X1.0083 F279.942 A-127.384
X1.0046 F359.909 A-122.627
X.994 F395.84 A-118.458
X.9765 F409.97 A-114.776

blah,blah,blah

G94
G00 Z3.1
M6 T13
G91 G28 Z0
G28 Y0
%

Anyone have any ideas?

Steve
Steve, I've had this problem before with Fadal machines, and it was because it wanted a G8, which made the controller "look ahead", and not do a line at a time. We were getting the jerky toolpath as you describe. I edited the post to put the G8 in, and no more problems with the Fadal. Haas machines don't seem to have this problem. It sounds like your Mazak needs the G code for this. Perhaps some one can enlighten us on which code your machine needs. Good luck.
__________________
Hey, why's it going over there?!!
Reply With Quote

  #10   Ban this user!
Old 12-23-2008, 11:52 AM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

I agree with Cammotion, I also used to run a Fadal and G8 made the countours a lot smoother. I now run an Excel with a Fanuc 21M controller and a G8 doesn't do anything on this controller. The rest of your code doesn't ring any alarms with me, although I am more used to G54 G90 being in the same line with your X,Y and A location.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-24-2008, 12:19 AM
 
Join Date: Dec 2008
Location: USA
Posts: 19
Steve Manthey is on a distinguished road

Thank you both for your replies. Yes, the G8 thing was the very first thing that entered my mind. I too had this experience with a Fadal. Mazak doesn't use G8. I might give it a try anyway...worse thing that can happen is it will alarm out and not work. I didn't have any time to play with this problem today, but I really need to resolve this.

Steve
Reply With Quote

  #12   Ban this user!
Old 12-24-2008, 11:59 AM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

I'm not familiar with a Mazak but I know that some machines use custom G codes for certain things. I remember using a 4th axis on a Fadal and one of the things we did for the code was always have it spit out the code for the air brake release even if we weren't using the brake.
I also just checked my Fanuc 21M manual and there is a code called G64. The manual states that this is the cutting mode. Some of the comments in the manual say "Once specified, this function is valid until G61,G62 or G63 is specified. The description for this code is stated as, " The tool is not decelerated at the end point of a block, but the next block is executed." G61 being exact stop mode, G62 automatic override for inner corners and G63 for tapping mode. I have never used this command in the 3 years I have been running this machine and we do a lot of 3D surfacing.
If you can find your Mazak manual, maybe check their G code list for anything referencing inverse time or 4th axis moves? Maybe try running your post without any 4th axis moves and see if it acts the same way?
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
Newbie- post code trouble, or me? Martin 007 BobCad-Cam 7 07-30-2008 01:52 AM
g-code path visualization ... deadalvs Europe Club House 4 05-10-2007 04:43 PM
Gibbs post for EZ-Path lathe Michael Esch Post Processor Files 0 04-09-2007 10:41 PM
Change - from linear path control to CNC path control fidibus42 General Electronics Discussion 1 12-04-2005 10:43 AM
Post Processor (ISO G-Code) CNCadmin Carken Products (Deskam, DeskCNC etc) 0 01-29-2005 07:33 AM




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