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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-24-2004, 06:07 PM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road
How do I go about be able to enter e.g X40.00 and it will change.......

the X coordinate to X40.00.
For example be able to touch the job and set to whatever the size of the job is.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-24-2004, 06:51 PM
 
Join Date: Oct 2003
Location: Tennessee
Posts: 51
squarewave is on a distinguished road
If you are referring to setting the coordinate system to your part, it is done with a G92. For example, if your program assumes the edge of your part is at X40.00, you would touch the X edge of your part with an edgefinder in the spindle, then do an MDI command G92 X40.00 (actually you would correct to the center of the spindle, otherwise you will be off by the radius of the edgefinder). You do the same again for Y and Z and then you have "picked up" your part. These have now established the "work" coordinate system, and it won't change unless you issue another G92.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 10-24-2004, 06:51 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
Darc,

In standard gcode, you need to use a G54 work offset. There are more than that one available, but let's keep it simple.

If you look through the default Camsoft gcode.fil, you should see some commands written into the G53 to G58 area of the file. These are simply calls to use the values that you need to enter into the offset tables. You access these tables in the GUI, by opening the tool parameters window.

Now, let's backtrack a little bit. When you power up and home your machine, the displays show you the current position, without any work offsets applied. In standard practice, the machine is working in the G53 machine coordinate system at this time. This is what G53 does in Camsoft, when it calls for Offset 0: it puts you back in the original coordinate system the machine uses to home in.

So now, let's say you have homed the machine. For simplicity, we can say that a tool mounted in the spindle is at G53 X0 Y0 Z0.

Now, your workpiece is clamped down some distance away from where the tool is located. This is where we begin to work in imaginary coordinate systems. If the part is a simple square, then we would usually pick one corner of the part as X0Y0Z0, in the G54 coordinate system.

Obviously, there is some distance between the current display position of the tool, and the part. So we carefully jog around and bring the tool over til it is right above the corner of the part. We note the display positions and enter these values into the first work offset table in the tool parameters screen (Don't confuse this with the tool length offsets in the same window!)

In your Gcode program, you will, somewhere before the first axis movement, place a call to G54, then move to G00 X0Y0Z1. The tool will move to the corner of your part, 1" above. I simplistically left out the call to the tool length offset here.

Anyways, this would be the rough outline of what you would be advised to practice. What you actually asked in your question implies that you want to only work in the machine coordinate system itself. This is not advisable practice for cnc machine operation. Its simply too confusing to try to make part positioning in a CAD system to try to correspond with how the part happened to be located on the machine table. That's why its done this way.

There is another method which is kind of obsolete, using G92.
Camsoft uses:
MACHZERO x;y;z

This is frowned upon generally, because the machine coordinate system is being tampered with, in essence, it could be lost.

I prefer to use this logic, because the machine coordinate system is maintained in the background.
SLEEP .2
ISTHERE Z;\404;\405
IF\404>0THENHOME1 z
ISTHERE X;\406;\407
IF\406>0THENHOME2 x
ISTHERE Y;\407;\408
IF\408>0THENHOME2 y
-----G92

The method in this case still kind of overlaps the G54 work offset method. You still need to make the measurement of the difference between the tool at machine home and some reference point on the work. You then execute a command like
G92 X40. in mdi mode. This resets the display. The bad quality of using a G92 inside of a part program, is the accidental resetting of the position when the machine is not at home position. This is the "gotcha" that they talk about with G92.

So use G54 and the offset tables instead.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #4   Ban this user!
Old 10-24-2004, 07:40 PM
 
Join Date: Sep 2004
Location: Australia
Posts: 196
Darc is on a distinguished road
I'm not really explaining myself very well am I, on our cnc lathe you can take a cut and set X** to whatever size the component measures, this is what I'd like to achieve if possible?

Hey HuFlung
Damn good explanation though, I give you credit you know what you're talking about.
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 10-24-2004, 10:22 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road
Go ahead and use the G92 command. Here is my sample logic customized for lathe (where X is usually a diameter, at your option, of course)

SLEEP .2
ISTHERE Z;\404;\405
IF\404>0THENHOME1 z
ISTHERE X;\406;\407
IF\406>0THENHOME2 {x/2}

In MDI, simply type in G92 X40. and the display should reset.

I'd also recommend that you study this logic I use with the G53 in Camsoft. This will permit you to make movements back in the machine coordinate system again, even after you've screwed up the displays with a G92 Hopefully, you do set your MACHZERO at some point in your homing routine at startup.
\149=f 'save current feedrate
SOFTLIMITS OFF
MACHHOME1 \60
MACHHOME2 \61
ISTHERE Z;\402;\403
IF\402>0THEN\60=\403
ISTHERE X;\400;\401
IF\400>0THEN\61={\401/2}
\173=\273 :IF\173>1THEN\173=1
FEEDRATE {\173*50}
DECELSTOP
MACHGO \60;\61;0
WAITUNTIL STOP
SOFTLIMITS ON
f=\149 'restore current feedrate
-----G53

I think that conventional G28 logic is just a special case of the G53 I use. G28 always returns you to machine zero. It would be equivalent to MACHGO 0;0;0

That is likely fine and dandy on a mill, or a chucker that never uses a tailstock. However, I use the tailstock quite a bit on work of greatly varying lengths. Hence, I would usually experience some kind of carriage interference if I always returned to machine zero. So, when setting up for a new part, I place a G53 command near the beginning of my program with X and Z coordinates that are suitable for an intermediate home position for the current part. This helps to ensure that my machine always restarts the program from the correct position, regardless of what I might have done to my displays with G92 commands. So in a sort of mathematical sense, G53 X0Z0 = G28
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

Sponsored Links
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





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