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 > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-08-2012, 06:40 PM
 
Join Date: Feb 2011
Location: USA
Posts: 68
Mike4703 is on a distinguished road
Controller not machining same as simulator

I have been programming circular pockets manually and by using "Machinists Toolbox" utilities. When I run the code in NCPlot the circles turn out the right size and in the right place. When I run the same code on my controller, the circles turn out larger (about 4 times) and dislplaced to the left. I did not get any documentation with my controller (Chinese). It is obviously interpreting the G2/G3 command parameters differently. What would cause it to come out this way on the machine despite being ok in NCPlot? I am in the process of getting support from the manufacturer but they only answer questions one at a time, sometimes incomprehensively in Chinglish, and don't seem to have a written guide to their controllers G code interpreter.They mean well but so far have not been able to give me a helpful answer on this. I don't have any problem with linear interpolation

Last edited by Mike4703; 01-08-2012 at 06:58 PM.
Reply With Quote

  #2   Ban this user!
Old 01-09-2012, 12:21 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Mike4703 View Post
I have been programming circular pockets manually and by using "Machinists Toolbox" utilities. When I run the code in NCPlot the circles turn out the right size and in the right place. When I run the same code on my controller, the circles turn out larger (about 4 times) and dislplaced to the left. I did not get any documentation with my controller (Chinese). It is obviously interpreting the G2/G3 command parameters differently. What would cause it to come out this way on the machine despite being ok in NCPlot? I am in the process of getting support from the manufacturer but they only answer questions one at a time, sometimes incomprehensively in Chinglish, and don't seem to have a written guide to their controllers G code interpreter.They mean well but so far have not been able to give me a helpful answer on this. I don't have any problem with linear interpolation
Post a copy of your CNC program, a sketch of the drawing detail and the make and model of the control.

Regards,

Bill
Reply With Quote

  #3   Ban this user!
Old 01-09-2012, 02:11 AM
 
Join Date: Dec 2008
Location: usa
Posts: 22
varga is on a distinguished road
Lightbulb

try this, with the spindle on and at the desired depth give it a g13 (climb) or g12 (conventional) it works with haas and alot of various newer controls

Ex:

G0 X0. Y0.(CENTER OF HOLE TO BE POCKETED)
G43 H1 Z.1
G1 Z-.25 F10.
G13 I.1 K1.0 Q.2 F10. D01
G0 Z2.

G13= CCW POCKET(CLIMB MILL)
I= INITIAL ARC RADIUS
K= FINISHED ARC RADIUS - 1/2 DIAMETER OF CUTTER
Q=STEP OVER AMMOUNT
F= FEED RATE
D01= DIAMETER COMP OF TOOL #1

WITH A .5" ENDMILL THIS SHOULD GIVE YOU A 2.5" HOLE
IT IS WORTH A SHOT... LET ME KNOW IF IT WORKS FOR YOU
Reply With Quote

  #4   Ban this user!
Old 01-09-2012, 03:03 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

I would wait for the OP to reply with his control model first.
I *certainly* wouldn't be issuing any unknown/non-standard G codes like G12/G13 'at the desired depth' in Z minus without first testing it 6" above the part
Reply With Quote

  #5   Ban this user!
Old 01-09-2012, 10:50 AM
 
Join Date: Feb 2011
Location: USA
Posts: 68
Mike4703 is on a distinguished road
More info coming

Sorry guys, its been pointed out that I need to give the code, screen shots, and info about the controller. That's going to take me a little longer as I have been really busy these last couple of days, but I will post that info soon. Thanks for the replies so far.
This controller is made by Rich NC of Beijing China. the model is 0501. I'm almost certain it will not do G12/13. It's very conventional, doesn't do subroutines. I post more info later.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-12-2012, 12:25 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Even if you have some standard control such as Fanuc, the third-party simulators such as NCPlot may not show the exact behavior of the machine because so many things are parameter dependent, which these simulators may not consider. For example, G00 may or may not have straight-line path. Simulators would typically show only straight-line movement. Exact toolpath can only be seen on the graphic screen of the machine. That also assumes that G54 etc are correctly set.
Reply With Quote

  #7   Ban this user!
Old 01-16-2012, 12:21 AM
 
Join Date: Feb 2011
Location: USA
Posts: 68
Mike4703 is on a distinguished road
Back with example

Ok - The situation is that I built my own machine from a Sherline Cnc mill with Gecko drivers and RNCZ-0501 controller from RichNC. This is a pendent style controller with an interface board. I didn't want a computer in my small outdoor shop and thought it would be a good idea to program on my nice Windows 7 laptop inside and load the code into a flash drive and run it on the controller outside. Also did not like all the seventies looking software that only ran on XP. Most American or European pendant controllers that could run code were way too expensive. Now I see things a little differently. I have been unable to get any comprehensible documentation on how this controller interprets G code. Setup has been a trial and error process. That said many programs run just fine. The current size problem has been really difficult -- I have ended up finding that I need to divide the G-code parameters by 2.5 to create the desired part on the machine. This only happens when programming complete circular motion. Linear moves are made just as programmed. Attached are screen shots of a 16mm counter bore I programmed in NCPlot. Note the X value which is the radius. The machine actually makes a 16mm diameter hole with a 3.175mm diameter end mill.
(16MM CIRCLE WITH .125IN END MILL)
G00 X0Y0
G00 Z5.0
G01 X-3.20625
G01 Z-.50
G02 I3.20625J0
G01 X-3.20625
G01 Z-1.0
G02 I3.20625J0
G01 X-3.20625
G01 Z-1.5
G02 I3.20625J0
G01 X-3.20625
G01 Z-1.75
G02 I3.20625J0

Any ideas? Is it me or the machine? Or are there too many possibilities to know for sure as some of the replies here imply? I may end up buying another interface board, getting Mach3 and an old laptop but I sure wish I could make this work. I thought I was done with the electronics!
Attached Thumbnails
Click image for larger version

Name:	16mmTestXY.JPG‎
Views:	23
Size:	49.3 KB
ID:	150291   Click image for larger version

Name:	Capture.JPG‎
Views:	20
Size:	69.4 KB
ID:	150292  
Reply With Quote

  #8   Ban this user!
Old 01-16-2012, 02:15 AM
fordav11's Avatar  
Join Date: Aug 2011
Location: Fordaville
Posts: 939
fordav11 is on a distinguished road

the normal programming method is to use G41/G42 cutter diameter compensation which you're not using?
also normally a G02/G03 will have X Y end point as well as I and J (or R)
on a real control X Y can be omitted and it will cut a full circle but that might be confusing your toy controller

to cut a 16mm hole on a standard CNC control you would do something like this.....

G0 X0 Y0
G0 G43 Z5.0 H1 (H1 is the tool length offset)
G1 Z-0.5 F50.0
G1 G42 X-8.0 D1 (D1 is set to cutter radius i.e. 1.5875)
G2 X-8.0 Y0 I8.0 J0
etc
Reply With Quote

  #9   Ban this user!
Old 01-16-2012, 05:36 PM
 
Join Date: Feb 2011
Location: USA
Posts: 68
Mike4703 is on a distinguished road

I'm not using cutter radius compensation because I get a "unknown character" error when I try it. Supposedly this controller can do it, I'll send another email to NCRich as see it I can understand the reply. According to the specs this controller can interpret "most Fanuc postprocessing" But for now I had to change the Gcode to:

G0 X0 Y0
G0 Z10.0
G1 Z-0.5 F50.0
G1 X-8.0
G2 X-8.0 Y0 I8.0 J0

The tool should have started at 0,0, gone straight left to X-8, and then cut a 16 mm circle measuring to the tool center since CRC is off now. See the attached picture for what happens. Disregard the two "craters" these are old tests on this piece of scrap aluminum. As you can see the linear move is 8mm but the circle is 32mm or would have been if I let it complete. It was headed for the vice jaw. The diameter is 2x off now but the center is where it should have been if the circle had turned out like it was supposed to.
Attached Thumbnails
Click image for larger version

Name:	16mmCircleTest.jpg‎
Views:	34
Size:	92.7 KB
ID:	150360  
Reply With Quote

  #10   Ban this user!
Old 01-16-2012, 06:11 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Mike4703 View Post

The diameter is 2x off now but the center is where it should have been if the circle had turned out like it was supposed to.
The centre is also incorrect relevant to the code example you included. The centre of the circle described by the I and J value should be where the White cross is shown in the attached picture. The Red cross shows the centre of the actual circle being cut. It seems that the I value, and probably the J value as well, has been multiplied by 2. 2 X J0 would still be zero, hence the reason I suspect, that the Y centre appears correct. It would be interesting to program a complete circle with the cutter starting the circular path at say, 10 o'clock, so that both I and J had a value other than zero. I would expect the circle centre in both X and Y to be incorrect.

Click image for larger version

Name:	C_Centre1.JPG
Views:	16
Size:	40.2 KB
ID:	150361

I note in one of your earlier post that you state that this problem only happens when a complete circular path is programmed. Does it not happen when only a sector of a circle is programmed?

Regards,

Bill
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-16-2012, 08:12 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road

Machine control is set to incremental arc centers.
Put a G90.1 (absolute IJ) at the start of the program.
Your control was set to incremental IJ to machine as it did.

If you turn off absolute arc centers in NCPlot, it displays the same you machined.
NCPLot does not seem to understand G90.1, G901.1 and maybe your controller doesn't either. You may be forced to program in relative mode!!?? YUK.

Why did you get a half circle? Machine limit, or gave up.

G90.1 (absolute IJ mode)
G91.1 (relative IJ mode)
G90 (absolute distance mode)
G91 (relative distance mode)

This should work, and hopefully the center is where you want it.

(16MM CIRCLE WITH .125IN END MILL)
(RELATIVE IJ MODE, helical interpolation not so hard on the cutter.
G00 X0Y0
G00 Z5.0
G01 X-6.4125 F100
G01 Z0
G02 Z-0.5I6.4125J0
G02 Z-1.0 I6.4125J0
G02 Z-1.5 I6.4125J0
G02 Z-1.75 I6.4125J0
G02 I6.4125J0
G0 X0 Y0 Z5
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #12   Ban this user!
Old 01-17-2012, 01:10 AM
 
Join Date: Feb 2011
Location: USA
Posts: 68
Mike4703 is on a distinguished road
Try again Friday

Nielw-thanks, a light bulb just lit up. When I programmed a rectangular cut with radius corners previously, it worked fine, and now I remember, I did it with incremental programming. I will try your code later this week and post how it went. And retry NCPlot with absolute centers turned off. No time now until Friday morning unfortunately.

Angelw- yes, that's correct the center is off also. I aborted the cut because the large radius that was forming would have run the tool into the vise. I only had enough room if it was the right size Like Nielw observed, this may be a relative vs absolute thing. I was never sure how my controller interpreted G2/G3 parameters.
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
Doing some machining with a GM S-420F (RH controller) Quebecois_Sti RC Robotics & Autonomous Robots 15 02-24-2012 09:23 PM
haas controller simulator? sixty8frbrd Haas Mills 2 03-22-2011 01:05 AM
RTCP (For Fanuc 18i Controller) five axis machining Ravasaheb CNC Machining Centers 2 07-05-2010 04:26 AM
cnc simulator Radosl81 Want To Buy...Need help! 2 09-29-2008 07:13 AM
How to convert stock to Z-map? (NC Machining Simulator) havythoai Coding 0 11-20-2007 11:52 AM




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