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! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software)


Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-14-2011, 08:48 AM
 
Join Date: Mar 2011
Location: Argentina
Posts: 4
armandon is on a distinguished road
diameter compensation in Mach3

I'm trying to cut a rectangle as shown in blue (tool diam. 2mm), with the code shown below. But the result I get is shown in red.
Any help is welcome, thanks in advance.

[IMG]file:///D:/consultaCNC.gif[/IMG]


%
G90 G21 G17
G40 G49
G00 X 5.00 Y 20.00 Z 2.00 F200
G41 P1.0
G00 X 6.80 Y 27.000
G01 Z -2.00
G01 X 31.00 Y 27.00
G01 X 31.00 Y 37.00
G01 X 6.80 Y 37.00
G01 X 6.80 Y 27.00
G00 Z 2.00
G40
M30
Reply With Quote

  #2  
Old 07-14-2011, 10:46 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

Can't see the pic, but try this. I don't have Mach3 here, so I can't test it.


%
G90 G21 G17
G40 G49
G00 X 5.00 Y 20.00 Z 2.00 F200
G00 X 6.80 Y 22.00
G41 P1.0
G01 X6.80 Y26 Z -2.00
G01 X 31.00 Y 27.00
G01 X 31.00 Y 37.00
G01 X 6.80 Y 37.00
G01 X 6.80 Y 26.00
G00 Z 2.00
G40
M30
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #3   Ban this user!
Old 07-14-2011, 02:39 PM
 
Join Date: Mar 2011
Location: Argentina
Posts: 4
armandon is on a distinguished road

Gerry, thank for your response.

In the attached files are the graphics with the trayectories with the old and the modified code.

The tool should down in the coordinates (7.80, 28.00) but no ....

I can't to use the line

G01 X6.80 Y26 Z -2.00

the tool down progressively with the X motion.I think it should be separated into two blocks.

G01 Z -2.00
G01 X6.80 Y26


Best regards
Attached Thumbnails
Click image for larger version

Name:	consultaCNC.gif‎
Views:	52
Size:	8.8 KB
ID:	138462  
Reply With Quote

  #4  
Old 07-14-2011, 03:32 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

I can't to use the line

G01 X6.80 Y26 Z -2.00

the tool down progressively with the X motion.I think it should be separated into two blocks.
I always do that, to ramp into the cut. It's much better for your tools.

Now that I'm looking at it, I see that I made a mistake before.
I think that you want to use G42, to be on the outside of the cut??

Like this"



G90 G21 G17
G40 G49
G00 X 3.00 Y 20.00 Z 2.00 F200
G00 X 5 Y 27.00
G42 P1.0
G01 X6.80 Y27 Z -2.00
G01 X 31.00 Y 27.00
G01 X 31.00 Y 37.00
G01 X 6.80 Y 37.00
G01 X 6.80 Y 26.00
G00 Z 2.00
G40
M30
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #5   Ban this user!
Old 07-14-2011, 05:01 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

armandon

You have to give the G41 or G42 a feed move before it will be active the same to cancel
A link that shows how to make cutter comp work

Cutter Compensation Example

Yes you should have a Z safe move before a G0 X, Y move
__________________
Mactec54
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-15-2011, 04:28 PM
 
Join Date: Mar 2011
Location: Argentina
Posts: 4
armandon is on a distinguished road

Thank Gerry, Mactec54

Improved my question.
I need to cut a rectangular window in an plastic enclosure as show in blue. The tool path that I tried to follow is shown in red (with the code posted), but the results obtained are the shown in the figure of prev post.

Is posible that are some parameters bad configurated in Mach3 ?

regards
Attached Thumbnails
Click image for larger version

Name:	consultaCNC-1.gif‎
Views:	26
Size:	7.5 KB
ID:	138510  
Reply With Quote

  #7  
Old 07-15-2011, 05:44 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

This should work for you.

G90 G21 G17
G40 G49
G00 X15.00 Y29.00 Z2.00 F200
G00 Z0
G41 P1.0
G01 X20.00 Y27 Z -2.00
G01 X31.00 Y27.00
G01 X31.00 Y37.00
G01 X6.80 Y37.00
G01 X6.80 Y27.00
G01 X22.00 Y27.00
G01 X25.00 Y29.00 Z0
G40
G00 Z2.00
M30
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #8   Ban this user!
Old 07-15-2011, 10:24 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

armandon

Using the ( P1 ) word will turn any tool comp you have for that tool ( OFF )

To have it read the tool size you put in the offset should be ( D1 ) if you want it active

G41X___D1 You need to do a straight move to turn the cutter comp on, so start 10mm away from were you want to start cutting & then it will work, You should also do a straight move off the part to turn it off
__________________
Mactec54
Reply With Quote

  #9  
Old 07-15-2011, 10:32 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,458
ger21 is on a distinguished road
Buy me a Beer?

Mactec, G41 P1 offsets the tool 1mm. Which appears to be what he wants, looking at the last image he posted.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #10   Ban this user!
Old 07-16-2011, 08:10 AM
 
Join Date: Mar 2011
Location: Argentina
Posts: 4
armandon is on a distinguished road

Gerry, the code posted works fine.

Mactec54, I'll test your suggestions.

Thank you very much to both for your help !

Can you recomend an G-Code tutorial or book ?

Thank again !
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-16-2011, 08:59 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

ger21


Cutter compensation is used to offset the tool path by the amount specified by the current diameter offset number. The diameter offset is usually specified with a tool change as a D followed by the offset. The offset can be the diameter of the tool, but it can also be used to specify a smaller offset to account for smaller tool size due to wear.

G41 Cutter Compensation Left

Cutter compensation is initialized by a linear move to the specified location. The material is to the left side of the tool as it follows the path.

In normal use of cutter comp no letter P or D is not needed But D is used for this if needed

This is all that is needed to turn it on G41G1X__ F10.& what offset you have in the tool table will be active for the cutter in use

The P word can be used like you have, But you can not ajust the tool off set in the control when using the P word
__________________
Mactec54

Last edited by mactec54; 07-16-2011 at 09:26 AM.
Reply With Quote

  #12   Ban this user!
Old 07-16-2011, 09:17 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

armandon

Just Google G codes or the G code you want to learn about, & you will find everthing you need
__________________
Mactec54
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie- Need help with cutter diameter compensation TLNADIAK CNC Machining Centers 3 10-28-2010 05:21 PM
.dxf to g-code converted with tool-diameter compensation? cnczoner General CNC (Mill and Lathe) Control Software (NC) 2 08-16-2007 07:31 AM
Radius compensation in Mach3 kayakman Mach Mill 20 12-06-2006 10:43 AM
G40 G41 G42 cutter diameter compensation not working klick0 LinuxCNC (formerly EMC2) 3 03-17-2006 05:49 PM
Any Info On Tool Diameter Compensation? FLUTE HEAD TurboCNC 13 10-26-2004 05:02 PM




All times are GMT -5. The time now is 05:47 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 354 355 356 357 358 359 360 361