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 > Post Processors for MC



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-21-2010, 10:03 PM
 
Join Date: Aug 2004
Location: Canada
Age: 38
Posts: 183
mroy0404 is on a distinguished road
G40 & G41, how to output individually

Hi guys

Can one of you guys help me out here, im using Mastercam X3 lathe with post processor MPLmaster. When I use wear in my settings G40 & G41 get output on lines with X an Z. How can I have the code come out of this post processor with the G40 and G41 on a line individually.
I have attached an example of my program below.

G54
N7 T0707
G17 G98
M89
M7
M90
G0 C0.
M89
G0 X1.6599 Y-.1875 Z.25
G97 S950 M33
Z.1
G1 Z-.7 F15.
G41 X1.476 Y-.1104 _____HERE IS G41_______
G3 X1.452 Y-.1275 R.12
G1 X.9469 Y-.565
G2 X.5052 Y-.6925 R.255
G1 X-.5052
G2 X-.9468 Y-.565 R.255
G1 X-1.452 Y-.1275
G2 X-1.5203 Y0. R.255
X-1.452 Y.1275 R.255
G1 X-.9469 Y.565
G2 X-.5052 Y.6925 R.255
G1 X.5052
G2 X.9468 Y.565 R.255
G1 X1.452 Y.1275
G2 X1.5203 Y0. R.255
X1.452 Y-.1275 R.255
G1 X1.4434 Y-.125
X.9382 Y-.5625
G2 X.5052 Y-.6875 R.25
G1 X-.5052
G2 X-.9382 Y-.5625 R.25
G1 X-1.4434 Y-.125
G2 X-1.5104 Y0. R.25
X-1.4434 Y.125 R.25
G1 X-.9382 Y.5625
G2 X-.5052 Y.6875 R.25
G1 X.5052
G2 X.9382 Y.5625 R.25
G1 X1.4434 Y.125
G2 X1.5104 Y0. R.25
X1.4434 Y-.125 R.25
G3 X1.4256 Y-.144 R.12
G1 G40 X1.6512 Y-.185 _____HERE IS THE G40____
Z-.6 F100.
G0 Z.25
M09
M90
G28 U0. V0. W0. H0. M35
T0700
M111
M131
M10
M169
G4U.1
M116
M11
M5
M30
%


I have changed the program to look like this and it worked just fine,


G54
T0707
M110
G17 G98
M35
G0 C30.
M89(C AXIS CLAMP)
M7
G97S950M33(REV TOOL START)
G0 X1.6599 Y-.1875 Z.25
Z.1
G1 Z-.7 F100.
G41 __________G41 HERE_______
X1.476 Y-.1104F15.
G3 X1.452 Y-.1275 R.12
G1 X.9469 Y-.565
G2 X.5052 Y-.6925 R.255
G1 X-.5052
G2 X-.9468 Y-.565 R.255
G1 X-1.452 Y-.1275
G2 X-1.5203 Y0. R.255
X-1.452 Y.1275 R.255
G1 X-.9469 Y.565
G2 X-.5052 Y.6925 R.255
G1 X.5052
G2 X.9468 Y.565 R.255
G1 X1.452 Y.1275
G2 X1.5203 Y0. R.255
X1.452 Y-.1275 R.255
G1 X1.4434 Y-.125
X.9382 Y-.5625
G2 X.5052 Y-.6875 R.25
G1 X-.5052
G2 X-.9382 Y-.5625 R.25
G1 X-1.4434 Y-.125
G2 X-1.5104 Y0. R.25
X-1.4434 Y.125 R.25
G1 X-.9382 Y.5625
G2 X-.5052 Y.6875 R.25
G1 X.5052
G2 X.9382 Y.5625 R.25
G1 X1.4434 Y.125
G2 X1.5104 Y0. R.25
X1.4434 Y-.125 R.25
G3 X1.4256 Y-.144 R.12
G1 X1.6512 Y-.185
G40 __________G40 HERE________
G0 Z.25
M09
G0X4.5M35
M05
G28Y0.
T0700
M90
M01
Reply With Quote

  #2   Ban this user!
Old 10-24-2010, 09:32 PM
PRINT_FX's Avatar  
Join Date: Sep 2010
Location: Porto
Posts: 91
PRINT_FX is on a distinguished road
Buy me a Beer?

is there any special reason for the G40 and G41 on a line individually.

I never output those codes on a line individually even when I get CRC interference alarm.

usually the G41/G42 should pop-out on the last movement before the tool touch the part, the same for the mill....
using canned cycles that same movement should be higher than the cutter comp.

lead-in/extend/starting point would work I guess,
Reply With Quote

  #3   Ban this user!
Old 10-27-2010, 01:18 PM
 
Join Date: Aug 2010
Location: usa
Posts: 8
thermgood is on a distinguished road

You'll have to edit your post to get that output.. Make a backup copy of it before you do any changes. I don't have the post your using but this is a section of a lathe post I did have.

The following can be used to change the g code output. To add things to each line or seperate things too. ex. move g codes, seperate axis movements or even add things to a line.

Anything that you put in "quotes" in the post will show up in the program as that exactly, if you want to add something to each line.



In this post psccomp is the cutter comp variable, you can find that by looking at the section of the post near the top that defines the variables.

Then search for that variable. Anything that starts with pbld and ends with e$ is an output line of g-code. Anything after a # in the post is ignored

________Original g-code_________________
prapidout #Output to NC, linear movement - rapid
pcan1, pbld, n$, psgplane, pexct, psgcode, psccomp, pxout, pyout,
pzout, pcout, pscool, strcantext, e$ #<---- all on one line

plinout #Output to NC, linear movement - feed
pcan1, pbld, n$, psgplane, sgfeed, pexct, psgcode, psccomp, pxout,
pyout, pzout, pcout, pfr, pscool, strcantext, e$ #<---- all on one line

pcirout #Output to NC, circular interpolation
pcan1, pbld, n$, psgplane, sgfeed, pexct, psgcode, psccomp, pxout,
pyout, pzout, pcout, parc, pfr, pscool, strcantext, e$ #<---- all on one line
---------------------end ------------------

____________changed code_______________
prapidout #Output to NC, linear movement - rapid
pbld, n$, psccomp, e$ # <---------moved cutter comp to a separate line
pcan1, pbld, n$, psgplane, pexct, psgcode, pxout, pyout,
pzout, pcout, pscool, strcantext, e$ #<---Removed cutter comp here

plinout #Output to NC, linear movement - feed
pbld, n$, psccomp, e$ # <---------moved cutter comp to a separate line
pcan1, pbld, n$, psgplane, sgfeed, pexct, psgcode, pxout,
pyout, pzout, pcout, pfr, pscool, strcantext, e$ #<---Removed cutter comp here


pcirout #Output to NC, circular interpolation
pbld, n$, psccomp, e$ # <---------moved cutter comp to a separate line
pcan1, pbld, n$, psgplane, sgfeed, pexct, psgcode, pxout,
pyout, pzout, pcout, parc, pfr, pscool, strcantext, e$ #<---Removed cutter comp here
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
DXF output skippy General CAD Discussion 1 04-14-2010 04:57 PM
RS-232 output crabbass Haas Mills 2 10-11-2009 07:02 PM
Output 2 fourwheeler Machines running Mach Software 1 07-24-2009 05:44 PM
Problem- I&J arc output instead of R zelaznog Post Processors for MC 6 06-15-2009 08:30 AM
output a D after the G41 or G42... shape Dolphin CADCAM 3 04-28-2009 02:04 PM




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