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


Mastercam Discuss Mastercam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-11-2009, 05:13 PM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road
4th axis post problem

Hello there again,

I'am having some trouble with the post when using the rotary 4th axis ( x-axis).
I'am drilling holes on the top WCS and bottom WCS without a tool change.
Mastercam posts going from top to bottom all 4 axis's together and make my machine go on error cause it only takes 3 axis's at a time.
What I do to solve this is Force a Toolchange but this takes so much time.
Can someone help me solve this? Thanks




G21
G0 G17 G40 G49 G80 G90
( 10. SPOT DRILL | TOOL - 10 | DIA. OFF. - 10 | LEN. - 10 | TOOL DIA. - 8. )
( SPOT DRILL ALL HOLES TOP )
T10 M6
G0 G90 G54 X-8.452 Y18.126 U0. S2000 M3
G43 H10 Z100.
M8
G98 G81 Z-1.5 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
X-20. Y0.
G80
( SPOT DRILL HOLES 6MM )
G55 X-20. Y0. Z5. U0. <-------------------4 axis's
G99 G81 Z-1.7 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
G80
M9
M5
G91 G28 Z0.
G28 Y0. U0.
M30
%
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 03-11-2009, 05:28 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?
Question Are "U" sure

This looks like Fanuc codes
Are you sure that your 4th axis is "U" ???

A is the designated rotary axis around X
B around the Y
C around the Z

U is normally an incremental linear axis parallel to X

Check your manuals

A0 should replace the 1st U0
A180 replace the 2nd U0

Another suggestion- try replacing G80 with G0 ( G80 on some machines forces the spindle to stop )

G21
G0 G17 G40 G49 G80 G90
( 10. SPOT DRILL | TOOL - 10 | DIA. OFF. - 10 | LEN. - 10 | TOOL DIA. - 8. )
( SPOT DRILL ALL HOLES TOP )
T10 M6
G0 G90 G54 X-8.452 Y18.126 A0. S2000 M3
G43 H10 Z100.
M8
G98 G81 Z-1.5 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
X-20. Y0.
G0
G91 G28 Z0. ( Clearance safe )

( SPOT DRILL HOLES 6MM )
G0 G90 G55 X-20. Y0. Z5. A180.
Z100.
G98
G81 Z-1.7 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
G0
M9
M5
G91 G28 Z0.
G28 Y0. U0.
M30
%
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 03-11-2009, 06:25 PM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road

Thanks for the quick reply.
Yes its a Fanuc. And the U is correct. I personaly don't know why the machine is set as "U" for a "A" axis but thats just how it is. G80 does not make my spindle stop. The program I just posted above is good. It's all about having 4 axis's programmed simultanously. The machine can only take 3axis's simultanously. I have this problem offten! I then just force toolchange so that the Z axis comes in the second line with G43 and H... This just takes much time cause the machine goes all the way back to machine zero.
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 03-14-2009, 10:33 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,395
tobyaxis is on a distinguished road

This looks a lot like a Lathe Post mixed with a Mill Post. I would call my Dealer to see if there was a mix up.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 03-15-2009, 05:07 AM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road

It's not a mix. It's me who changed the post from A to U cause my machines 4th axis is a U instead of being a A.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-15-2009, 07:19 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

oops
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 03-15-2009, 07:29 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Let's put the U / A issue aside.

Your problem being, that your machine only interpolates 3 axes at any 1 time

The safest method is to break the Z moves. Travel in XYU to correct possition then descend in Z. When retracting, this is done in reverse order.

ie format
G21
G0 G17 G40 G49 G80 G90
( 10. SPOT DRILL | TOOL - 10 | DIA. OFF. - 10 | LEN. - 10 | TOOL DIA. - 8. )
( SPOT DRILL ALL HOLES TOP )
T10 M6
G0 G90 G54 X-8.452 Y18.126 U0. S2000 M3
G43 H10 Z100.
M8
G98 G81 Z-1.5 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
X-20. Y0.
G80
G91 G28 Z0. ( Clearance safe ) have this added for any rotate repositions
( SPOT DRILL HOLES 6MM )
G55 X-20. Y0. U0.
Z100.move the Z value down to next line
G99 G81 Z-1.7 R5. F50.
X0. Y20.
X20. Y0.
X0. Y-20.
G80
M9
M5
G91 G28 Z0.
G28 Y0. U0.
M30
%

Just an additional query , is V and W still incremental axes parallel to Y and Z ?
It is possible that a designated axis can have it's address reassigned to another letter. Is this possible?
That the letter has not been changed back
ie X and Y letters swapped is the same as rotating the part 90 degrees
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 03-18-2009, 11:47 AM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road

I have no idea of a V or W on a mill.
We just use X,Y,Z and U. Why a "U".
This because the machine parameter for 4th axis is set to letter U. I have a thread about changing the U back to A in the fanuc section but I guess no one could figure it out.
So in the workoffset page G54 to G59 I have a X,Y,Z and U axes.
I know it's confusing this U but I can't help it. We bought the machine second hand so that's just the way it is. And it works fine with mastercam except for the 4 axis's going simultaneously. This by the way only happens when I'am going to another machine WCS ( G54 to G59) using the same tool.
And changing the hole nc program might just take more time than programming the part itself when having lots of operations. I'am still a beginner in mastercam so I still make mistakes. So everytime I go and repost the nc program I don't feel like changing all the axis's again and again. I have been doing that in the beginning untill I got the curage of editing the post.
But I'am kind of out of luck with this one.
I've been looking through the post and changing stuff for days now but didn't get any good. I use/edit the standard Generic Fanuc 4x Mill.pst and tried the MPfan.pst but no luck.
I am very gratefull for all the help I got so far and would really like to get this fixed.

Thanks to all......
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 03-18-2009, 01:47 PM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road

To anyone having similar problems......
This is what you need to change in the post: Put the red colored pcout on a next line and ad a , e$ to it. Make sure it's on it's own line when editing. This will put the A axis on it's own line in the NC program.



ptlchg0$ #Call from NCI null tool change (tool number repeats)
pcuttype
pcom_moveb
c_mmlt$ #Multiple tool subprogram call
comment$
pcan
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n$, sgplane, e$
pspindchng
pbld, n$, scoolant, e$
if mi1$ > one & workofs$ <> prv_workofs$,
[
sav_absinc = absinc$
absinc$ = zero
pbld, n$, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e$
pe_inc_calc
ps_inc_calc
absinc$ = sav_absinc
]
if cuttype = zero, ppos_cax_lin
if gcode$ = one, plinout
else, prapidout
pcom_movea
c_msng$ #Single tool subprogram call

--------------------------------------------------------------------------

ptlchg0$ #Call from NCI null tool change (tool number repeats)
pcuttype
pcom_moveb
c_mmlt$ #Multiple tool subprogram call
comment$
pcan
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n$, sgplane, e$
pspindchng
pbld, n$, scoolant, e$
if mi1$ > one & workofs$ <> prv_workofs$,
[
sav_absinc = absinc$
absinc$ = zero
pbld, n$, sgabsinc, pwcs, pfxout, pfyout, pfzout, e$
pfcout, e$
pe_inc_calc
ps_inc_calc
absinc$ = sav_absinc
]
if cuttype = zero, ppos_cax_lin
if gcode$ = one, plinout
else, prapidout
pcom_movea
c_msng$ #Single tool subprogram call


Thanks to all for helping!
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 03-18-2009, 07:12 PM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Have you thought is right through

XYZ then U ??? would this not crunch on a 2nd op using the same tool at a different plane

IMHO it should be XYU then Z

if mi1$ > one & workofs$ <> prv_workofs$,
[
sav_absinc = absinc$
absinc$ = zero
pbld, n$,"G91 G28 Z0.", e$ #added
pbld, n$, sgabsinc, pwcs, pfxout, pfyout, pfcout, e$
pfzout, e$
pe_inc_calc
ps_inc_calc
absinc$ = sav_absinc
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-19-2009, 01:59 PM
 
Join Date: May 2006
Location: Netherlands
Posts: 99
Stebedeff is on a distinguished road

Your Totally Right!!!
I was kind of stoked cause I finally found out how to change after lots of trying that I just post it right away before really checking it through how I want it. I put the U on second line and then the Z on one right after.

I even got through with the coolant how they should be.
Every thing was set with "scoolant" while it should be pcan, pcan1 and pcan2 for before, with and after. X style.
Deleted all the sequence numbers ( n$) except the ones in front of tool call.
so I get a N100 for firts operation and N200 for second and so on. I did learn a lot. I remember looking at a post the first time!!! I had no clue where to start or what was what. And now I know a little more so me too can help someone some day.


if mi1$ > one & workofs$ <> prv_workofs$,
[
sav_absinc = absinc$
absinc$ = zero
pbld, n$,"G91 G28 Z0.", e$ #added
pbld, n$, sgabsinc, pwcs, pfxout, pfyout, e$
pfcout, e$
pfzout, e$

pe_inc_calc
ps_inc_calc
absinc$ = sav_absinc


Thanks.....
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
z axis Problem grahamshere DIY-CNC Router Table Machines 8 01-14-2009 06:19 PM
New Machine Build- post for 2 axis ez trak versus 3 axis ez vision tooolman G-Code Programing 0 11-28-2008 04:33 PM
Z-axis problem Trainhound Machine Problems, Solutions , Wireless DNC, serial port 3 12-14-2005 03:24 PM




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