![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#2
| ||||
| ||||
| 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, |
|
#3
| |||
| |||
| 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |