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-25-2007, 11:23 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road
Post edit help?

Just started a new job. First time with Surfcam. 2003
Now where is the Pst file that I have to edit, because the "Old man" wants circle done in simple two lines, so the program will be short, easy to transfer, cuz we dont have and DNC setup to transfer, still doing old fashion way.
I Guess I have to change ByQuad value to "N". But where is that file??
Surfcam is a bit straight forward, doent let you do a lot of things, or maybe I havent gone that far (its 4 days I am using it).
Oh Yeah! How do I disable "infinite look ahead" in Surf?
Anyway first thing is to know how do I get to the pst file, open it in what?

There are tons of pst file in Mpost? folder, and I have to edit fanuc pst. In one directory there are 3 exe files one for wire, mill and lathe, and when I post the program, one of these files execute and ask me bunch questions like for which machine? program number? and work offset.

If anyone can help me, plz reply. I am on a weeks trail and its going to be over. And employers dont like new guys doning mistakes and look clueless. Though its ok for someone who's been working there for long time.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 01-26-2007, 09:45 AM
 
Join Date: Dec 2004
Location: USA
Posts: 11
JimW is on a distinguished road

The Surfcam.pst file is a file that Surfcam uses to direct the file your posting to the post. The actual post that your wanting to change is called postform.m and it is located in the PostLib folder. But as always make a backup copy before changing, an inadvertent change to either of these files can be a real headache.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 01-26-2007, 10:39 AM
ltmquik's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 249
ltmquik is on a distinguished road

You need to open the PostForm.m file and find the post file name that you intend to edit. Depending on the number of posts you have added to SurfCAM there could be alot. I found that the newest posts are loaded at the end of the PostForm.m file. Look for the titles "name [the post name that appears in SurfCAM]". These are basically the same as the files in the POSTLIB, MPOST folder. You have to change the PostFrom.m file as SurfCAM does not even look at the .M3 files.

I made a backup of the PostForm.m file and then deleted all the posts that we do not regularly use from the PostForm.m file. This makes it alot easier to edit the posts when you need to.
__________________
Jeff Lange
Lightning Tool & Manufacturing, Inc.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 01-27-2007, 02:16 AM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road

Thanks guys, it really helped me. Found that post file and edit that, most of the thing is as I want except one thing.

1stToolChange # First tool change
G0 x0.0 y0.0
T[Tool] M6 (0 e[ToolDiam] f[corner]
Comments
G0 X[H] Y[V] # "G90 G[Work]" Taken out
G43 H[Lcomp] Z[D] M03 M08 S[Speed]
End

In here I am getting tool dia and corner rad in this format.
( Tool dia: 1 C Rad: .2
But it is missin a ) to close it
In The bigening of Post processor I have ( 00
But there is no entry about )
I put a line ) 00 and edit that line to T[Tool] M6 (0 e[ToolDiam] f[corner])
but it didnt work got error, any idea how can I get a ) to close it?
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 01-27-2007, 02:11 PM
ltmquik's Avatar  
Join Date: Aug 2005
Location: USA
Posts: 249
ltmquik is on a distinguished road

We should know what the controller is you are trying to fix. Some controllers don't need closed comment lines.
__________________
Jeff Lange
Lightning Tool & Manufacturing, Inc.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-27-2007, 02:32 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road

They are fanuc, haas and fadal. As I have been told by the superviser, he want them to be closed, even if the controller dont need it.
Any suggestion what is suppose to be fixed in it?

I am posting the post file here, it has all my edit too that I did yesterday.

name FANUC

% 00
! 00
/ 00
O >4
N >4
G 2
X ->3.>4
x 1.1 X
Y ->3.>4
y 1.1 Y
Z ->3.>4
z 1.1 Z
A ->3.>4
I ->3.>4
J ->3.>4
K ->3.>4
Q ->3.>4
R ->3.>4
P >40
F >3.1
H >2
D >2
T >2
S >4
M >2
( 00
d >3.>4
e >3.>4
f >3.>4

SbackDoor SupressHeader

ModalLetters X Y Z F R # List of letters that are modal (Added R in modal -26/1/2007-)

ModalGs 0 1 73 74 76 80 81 82 83 84 85 # List of g codes that are modal

Sequence#s N 1 1 1 # Char, freq, incr & start
First#? N # Y or N 'Output 1st sequence no.
Last#? N # Y or N 'Output last sequence no.

HCode X # X or X U 'Horizontal char.
VCode Y # Y or Y V 'Vertical char.
Dcode Z # Depth char.
FeedCode F # Feed rate char.

Comment ( ) # Begin End comment char.

Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 61 62 63 64 # Flood, Off, Mist and Thru Spindle M codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes

Feed G01 # Linear move
Rapid G00 # Rapid positioning word
ArcPlane G 17 18 19 # G19, G18, G17 Arc Plane selection
ReturnPlane 98 99 # G98 G99 Return Plane selection
Cw G2 # Circular move clockwise
Ccw G3 # Circular move counter clockwise

Inc/Abs G 91 90 #Inc& Abs char. & values

CtrCode R # I J or R or I J K L
Helical? Y
Spaces? Y # Y or N 'Spaces between words

Incremental? Y # Y or N 'Inc or abs output
CtrIncremental? Y # Y or N 'Inc or abs I & J
ByQuadrants? N # Y or N 'Break arcs at quadrants (changed from 'Y' to'N")

UppercaseComments? Y # Y or N 'Require uppercase comments

Drill # Drilling canned/manual cycle
G81 Z[D] R[Vclear] F[FRate]
end cancel
# (Line "G[RetPlane] X[H] Y[V]" Taken out
# (From all Canned Cycles -26/1/2007-)
CSink
G82 Z[D] R[Vclear] F[FRate] P[Dwell]
end cancel

Peck # Pecking canned/manual cycle
G83 Z[D] Q[VBite] R[Vclear] F[FRate]
end cancel

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

LTap # Left handed tapping cycle
G74 Z[D] R[Vclear] F[FRate] Q[VBite]
end cancel

Ream # Reaming canned/manual cycle
G85 Z[D] R[Vclear] F[FRate]
end cancel

Bore # Boring canned/manual cycle
G86 Z[D] R[Vclear] F[FRate]
end cancel

Back # Back boring canned/manual cycle
G87 Z[D] R[Vclear] F[FRate]
end cancel

Cancel # Cancel a canned/manual cycle
G80
if [Rigid] > 0
G94 Unlock Z if w/ rigid tap.
endif
End

StartCode # Start of the program
%0
!0 O[Program#]
G17 G20 G40 G49 G54 G80 G90 G98
End

1stToolChange # First tool change
G0 x0.0 y0.0
T[Tool] M6 (0 e[ToolDiam] f[corner]
Comments
G0 X[H] Y[V] # "G90 G[Work]" Taken out
G43 H[Lcomp] Z[D] M03 M08 S[Speed]
End

Infeed # Enable cutter comp
G[Side] X[H] Y[V] D[DComp] F[FRate]
end

Outfeed # Disable cutter comp
G1 G40 X[H] Y[V]
end

ToolChange # Secondary tool changes
M9
G28 G49 Z0.0 M19
M1
T[Tool] M6 (0 e[ToolDiam] f[corner]
Comments
G0 X[H] Y[V] # ("G0 G[Work] X[H] Y[V]" Taken Out -26/1/2007-)
G43 Z[D] H[Lcomp] M03 M08 S[Speed]
End

EndCode # End of the program
M9
G28 G49 Z0.0 M19
G28 Y0.0
M30
%0
End

replace "d" with "Rad: " # (Brought down to short name -26/1/2007-)
replace "e" with "T DIA: "
replace "f" with "C RAD:"

Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 01-27-2007, 07:55 PM
 
Join Date: Dec 2004
Location: USA
Posts: 11
JimW is on a distinguished road

You need the ) 00 after the ( 00

Then try changing this line

T[Tool] M6 (0 e[ToolDiam] f[corner])

to this

T[Tool] M6 (0 e[ToolDiam] f[corner] )0
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 01-27-2007, 11:42 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road

I think I did that but did'nt write the line )0 instead just ).
And shorten it to just ) 0 in the first part of post this way I had to just write (T[Tool] M6 (0 e[ToolDiam] f[corner]) without 0 after it. Will try exctly as you saying and see the result.
Thanks for the help, really appreciated.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 01-29-2007, 11:28 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road

Originally Posted by JimW View Post
You need the ) 00 after the ( 00

Then try changing this line

T[Tool] M6 (0 e[ToolDiam] f[corner])

to this

T[Tool] M6 (0 e[ToolDiam] f[corner] )0
Now the result I got was ( ) Tool Dia: 1 Rad: 0
Any idea why?
What is the language these Posts are written in? Any web site link? so I can learn, I have done Oracle in the past so I know the concept.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 02-18-2007, 11:58 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 11
yanzeek is on a distinguished road

Thanks a lot guys for help. Lost my job anyway. The boss was looking for some kind of his right hand and I am not close to his pinki. I know I am not stupid or geek, but it gets tough when I have to work with ppl stuck in 80's and use DOS virsion cnc software.
I solved the issues they had with surfcam, in the mean time I was editing the NC files in note pad (like everyone there), and now the programs are posting flawless, ready to run on machine. Maybe my job is done fixing the bugs they had which I dont think was a big deal.
Now I am back to looking for job..
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-02-2009, 04:07 PM
 
Join Date: Sep 2009
Location: USA
Posts: 2
CADGUY7 is on a distinguished road
Problems with post.ini and surfcame.pst

I'm sure this should be a new thread but, I'll darned if I cant find the link to start one....

I have two post templates fanuc dam 0t.L and fanuc dam 10t.L
This is how it looks in the post.ini file:

[LPOST]
Format C:\SURFCAM\POSTLIB\fanuc dam 0t.L
AutoOpen? Yes

Format C:\SURFCAM\POSTLIB\fanuc dam 10t.L
AutoOpen? Yes

When I open the NC Operations manager the two templates are listed. But only the second template is selected regardless of which I select in the Operations manager... its got to just be a matter of syntax. Can anyone point out my error(s)?... Thank you for the help.

Here is the lathe section of surfcam.pst.

BeginPost Lathe Default:1
PostItem Fanuc D.A.M. 0T
Status Fanuc D.A.M. 0T
ChDir "C:\SURFCAM\Velocity3\MPOST"
Delete "%p%N.TAP"
Command "C:\SURFCAM\Velocity3\MPOST\LPOSTWIN" "%p%N"

PostItem Fanuc D.A.M. 10T
Status Fanuc D.A.M. 10T
ChDir "C:\SURFCAM\Velocity3\MPOST"
Delete "%p%N.TAP"
Command "C:\SURFCAM\Velocity3\MPOST\LPOSTWIN" "%p%N"
EndPost


Oh, I am using PostHaste.
Thanks again
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 09-03-2009, 08:58 AM
 
Join Date: Mar 2005
Location: USA
Posts: 10
NICK REESE is on a distinguished road
post items

Cadguy7,

Try changing this line in the first item:

Command "C:\SURFCAM\Velocity3\MPOST\LPOSTWIN" "%p%N"

to:

Command "C:\SURFCAM\Velocity3\MPOST\LPOSTWIN" "%p%N" 01

and the same line in the second item to:

Command "C:\SURFCAM\Velocity3\MPOST\LPOSTWIN" "%p%N" 02


good luck,

nick.

P.S. I forgot to say, the 01 and 02 should reflect the position of each post in the postform.l file.

Last edited by NICK REESE; 09-03-2009 at 10:29 AM. Reason: bad memory
Tweet this Post!Share on Facebook
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
Need to edit Haas post Shotout Post Processors for MC 13 12-07-2007 12:35 PM
Edit/Modify MC Post, Then Verify??? Dugg Mastercam 8 12-30-2006 08:16 AM
How to edit post to add a command line at .nc ekit Post Processor Files 0 01-08-2006 07:15 AM
Edit Haas VF Post trangt143 Post Processors for MC 1 11-22-2005 09:55 AM




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