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! > MetalWorking Machines > Milltronics


Milltronics Discuss Milltronics Machines


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-24-2011, 03:17 PM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road
A couple of Centurion V programming questions

My machine is up and running, still have a lot to sort out, but I was/am making this adapter to hold the monitor arm. In the process of programming and running a couple of operations I ran into to some things that brought up questions....

First, when you home the machine, then go find your work 0,0, using an edge finder or whatever, then you hit Floating X and Y, to zero out your work coordinates. Now, I've been writing those numbers down, say X-15.510 Y-8.712 is my part zero from home. If I want to come back the next day, or have to rehome the machine... the previous floating zero's are lost, correct? I have to type into MDI G01 X-15.510 Y-8.712, input and start to move to that position.

Kind of along that same vein, past brands of machines I've run have a position page that shows absolute machine home, part home , distance to go and such. This way if I'm jockeying around to get my part zero, zero, I can always go to that page, find out how far I actually am from home and get those numbers. As it sits now, I'd have to take the numbers I wrote down, add/subtract in any adjustments and get new numbers. If I try homing to see what the numbers from part home to machine home is/are, it zero's out and I am lost and get to start all over again.

I was cutting a partial arc.... still a bit fuzzy on the conversational, so rather than take a chance, I just typed in the g-code. Ran into an error with my code and am wondering if/what the issue is.... ok, part has a pivot hole that is center of the arc, 3.5" in the Y minus I wanted to start my arc and go 18º CW (so from about 6 o'clock to 7 o'clock). Code looked like this:

G00 X0 Y-3.5 (center of the beginning hole)
G01 Z-.5 F15 (go down)
G02 X-1.081 Y-3.33 J3.5 (cut arc to the left)

This wouldn't run (the numbers above are a guess, I have the papers in the shop with the exact numbers). I double checked my end points, they are right, do you have to have an I and J, even though the I value was zero, because it's a partial arc? I use just one or the other for full circles all the time, but suspected that because it's a partial arc I needed both. Solved it by using R instead of I J, but that's kind of a half ass way of getting around it.

Enough questions for this post... for now...

Last edited by Brian L; 10-24-2011 at 03:22 PM. Reason: couple of mistakes
Reply With Quote

  #2   Ban this user!
Old 10-25-2011, 12:01 AM
 
Join Date: Oct 2008
Location: USA
Posts: 170
ZZZZ is on a distinguished road

Get into Level 3, Go to the MISC parms, cursor down to "Use FLZ instead of G54" and change it to "NO". Now the G54 Work Coordinate offset values will remain active until you change them. You can power down, come back tomorrow, power up, home, and MDI back to X0Y0 and get back to the same point. You can also use all 6 Work Coordinates, G54 - G59 by changing the active WC system in MDI. Power-up defaults to G54. You can see the WC offsets by going to F7-Parms, F2-Coord and arrowing down

I think you should be able to program your arcs using Incremental Centers (X,Y,I,J), Absolute Centers (X,Y R,XC,YC), Polar (AA,AB), or Radius only (R, X,Y). I tried a partial arc without both I and J and it worked for me.
Reply With Quote

  #3   Ban this user!
Old 10-25-2011, 07:57 AM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road

Thank you ZZZZ, that makes sense. Is there still no position screen available to tell me where I am in relation to the true machine home though? Or, if I set these parameters, and zeroed out my G54 position, would the machine read say X15.xxxx Y8.xxxx when it homes and I'll know that dimension?

The arc program, I'll go back to it and try it again.... I did find that my end points were off originally, my CAD system had defaulted to rounding to the nearest .001" instead of .0001"... so I was like .0004" off in X and .0003" in Y, so maybe that was the issue. I might not have tried the just J value with the right end point values.... could have changed to R and the right values at the same time.

It might take me a day or two, I pulled the whole control panel off the mill last night. I have to install the arm extension, pull the wiring through it. I found a keyboard adapter I'm extending off the board and to a panel mounted port, so I can attach a keyboard without opening the box. Also fished an ethernet (RJ45) cord from the back of the machine up through the arm and into the control and mounting an ethernet port on the console too. That way I can hook my laptop/shop computer to it directly to upload/download or DNC if I ever get to that point.

It's getting exciting putting things back together instead of tearing them apart.....
Reply With Quote

  #4   Ban this user!
Old 10-25-2011, 08:15 PM
 
Join Date: Oct 2008
Location: USA
Posts: 170
ZZZZ is on a distinguished road

There isn't a specific screen for that purpose. When using the Work Coordinates (G54-G59) rather than Floating Zero (G92), you could go to MDI, give it an unused WC such as G59, and the display would show the position from Home position as you would have no offsets active. Then change back to your current WC and the display will show your current position.

The control defaults to G54 at power-up, so after Homing, the display shows your position using the stored offsets from Home. You can go to F7-Parms F2 Coords, arrow down to G54 and see the same numbers as the display with the signs reversed.
Reply With Quote

  #5   Ban this user!
Old 10-26-2011, 09:04 PM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road

I got my control powered back up today too late to try any of this, but it sounds like (if I understand this correctly) I could indicate in wherever part 0,0 is, call G59 and it will give the opposite values of part zero to home position, correct? If so, that'll work.... too many times I get jogging around and change work zero and then wouldn't want to get confused.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-26-2011, 11:22 PM
 
Join Date: Oct 2008
Location: USA
Posts: 170
ZZZZ is on a distinguished road

Brian, go change the MISC parameter as I discussed in post #2.

Then go to HDW, pick-up your part edge, sweep the hole, whatever. When you are in position, with the X axis active, press the G54-X button, when you have the Y axis active, press the G54-Y button.

The DRO will change to zero when you press the button and the values will be entered in the G54 offset fields in the parameters table.

The Z-Tool button will set the tool length offset and put that value in the Tool Table.
Reply With Quote

  #7   Ban this user!
Old 10-29-2011, 07:44 PM
 
Join Date: Jun 2007
Location: USA
Age: 59
Posts: 78
chipsinpan is on a distinguished road

from the main screen , go to PARAM then COORD.
You can then scroll down to G54 thru G59 and you will see the distance from home zero to wherever you zeroed the selected work coordinate .

I usually save G59 as my part change position .
I will HDW the table to a place where it is convienent to swing the vise handle , and clear tools then I call this G59 and zero XY
At the end of each program I just write G59 X0 Y0
Z is not dependant on work coordinates , it is just the tool height .

Using the G59 the way I do is not an accepted practice , just my personal choice .

The correct way , is to move to the position you want , then go to PARAM/ COORD , and write down the coord from home zero (X Y) fro the LAST WORK COORD CALLED then enter these values on the last program block where is says XY home relative
Reply With Quote

  #8   Ban this user!
Old 11-01-2011, 05:57 PM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road

New question that has cropped up.... wrote a program to make some softjaws for my Kurt vise. In the process of milling and putting the bolt holes in, I want to helical mill into the hole and counterbore for the 1/2" bolt head.... basically a .760 diameter by .530 deep. So I moved off center of my hole by .130" (using a 1/2" endmill), started .050" above the part and wanted to helical cut into the part .058" per revolution, so I make 10 loops to my depth.

I thought that line would be like this, in incremental, by the way:

G03 I-.13 Z-.058 L10 (that giving me 10 loops)

Well, I got one loop, and then it moved on to the next line. I fixed it by just adding ten lines of code, the same G03 I-.13 Z-.058 ten times in a row. Does the L command not make the line loop? Reading about subs and looping in the manual it would appear too, but it didn't seem to work as expected.
Reply With Quote

  #9   Ban this user!
Old 11-01-2011, 09:05 PM
 
Join Date: Oct 2008
Location: USA
Posts: 170
ZZZZ is on a distinguished road

The looping technique allows for looping another program from inside the main program.

M98 PXXXX LXXX
PXXXX = subprogram number
LXXX = number of times the subprogram is to be repeated

Example: M98 P0002 L5 calls program O0002 5 times

OR

You can have a sub call inside the program:

GOSUB 9999 L10
G90 (back into absolute)
M30 (end program)
N9999 (or some unused line number)
G03 I-.13 Z-.058
RETURN
Reply With Quote

  #10   Ban this user!
Old 11-01-2011, 10:34 PM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road

OK, so you can't loop just a line without turning it into a subprogram and then calling that multiple times? Or having the sub actually part of the main and using GOSUB, then RETURN....

It's been a lot of years, but I sure seem to remember doing thread milling with the Fanucs and calling the circle line with an L for the number of revolutions. Most of the time we used specific pitch thread hobs, but for that occasional oddball pitch, we would make however many circles it took to get up and out of the hole.

Thanks for the tip on the GOSUB, makes it nice to have all the lines in one program rather than having the main and multiple subroutines, which is what I did today. I need to fine tune where I put my M05's and such.... had about half the program where the spindle started back up after my M00 (stopping to flip the parts in the vise) and the other half it stopped and stayed stopped.

Do you need an M03 SXXXX call on a line separate, and alternatively, do you need an M03 and have to have the S call, or will it just revert to last speed if you just use M03?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-02-2011, 09:47 AM
 
Join Date: Oct 2008
Location: USA
Posts: 170
ZZZZ is on a distinguished road

Because the spindle speed is modal, the M3/M4 command by itself will start the spindle.
Reply With Quote

  #12   Ban this user!
Old 11-02-2011, 10:25 AM
 
Join Date: Sep 2010
Location: USA
Posts: 168
Brian L is on a distinguished road

That's what I thought, all I would need is an M03. Now, does any M code have to be on a separate line? Can I have G00/G01 lines and throw in M03/05 anywhere I want? Some control variations I've run over the years were picky about how many M codes were used in one line and some M codes of one group, couldn't be mixed with others.

On that same thought, when placing an m code on a line, does order effect how they are carried out, i.e. if I put a spindle start on a line and it's before a rapid move, does it turn the spindle on and then move, and if I was to put the move and then the m code, does it start to move first and then turn the spindle on... or is anything on one line done simultaneously?
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
a couple cnc questions Teyber Benchtop Machines 568 01-04-2011 05:29 AM
a couple G76 questions hackmeister G-Code Programing 3 02-07-2010 09:04 PM
Centurion 6 Programming Question mikesos1 Milltronics 7 12-13-2006 02:04 PM
saying hello with a couple of questions JonC DIY-CNC Router Table Machines 29 06-27-2006 11:57 AM
Couple New Guy questions Black Mesa Open Source CNC Machine Designs 8 06-13-2006 04:40 AM




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