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 03-25-2010, 06:22 AM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road
Z axis Help!

Vertical mill, CamSoft control.

My Z axis home position is currently set with the bottom of the stroke as ZERO and the all the way up as 5.5".

When I hand write programs this works OK, but I run into real problems when I use a code like G0Z0G28 (return to home in Z). The spindle dives into the table.

Should the machine home positions be set as top of spindle stroke as ZERO, and the bottom of stroke as -5.5?

Thanks, Tom
__________________
http://tcurran.com/

Last edited by Tom Curran; 03-25-2010 at 06:51 AM.
Reply With Quote

  #2   Ban this user!
Old 03-25-2010, 02:30 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

I have my machine zero on Z set about 0.050 from top of travel. Makes Zero return go here. Very handy as you need to go to this point often on a mill. If you prefer you could rewrite your zero return to go to machine coordinate Z 5.5 Either way will work. if you want to do the latter way, post your G28 from Gcode.fil and I'll suggest how to edit.

Karl
Reply With Quote

  #3   Ban this user!
Old 03-25-2010, 02:52 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Karl, thanks for your reply.

Before I make any changes to the Z software limits, I want to know if having Z up as 0 and Z down at MINUS (-) 5.5" will cause any problems with the CamSoft control?

I like your suggestion of G28 at .05 short of the limit.

Thanks, Tom
__________________
http://tcurran.com/
Reply With Quote

  #4  
Old 03-25-2010, 03:05 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,532
Al_The_Man is on a distinguished road
Buy me a Beer?

It is common to make all the way up on the Z for a mill as zero, you can always change the Z (and X/Y) zero points with the G54 etc, work coordinate system.
With mills, I normally have an automatic referencing, with the Z performed first, once homed, the X/Y home.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 03-25-2010, 05:45 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Karl, here is a .fil for G9:
-----G9
!'Like G01 but Decel to stop
!DISPLAY4 {f*(\73/100)}
!DISPLAY5 {s*(\74/100)}
!RUNTIME \4
!DISPLAY8 \4

Here is what I have for G28:
-----G28

That's it. nothing else, no instruction, no commands.

I'm open for suggestions. I never wrote this kind of language before, so if you make a suggestion, I will try it carefully.

Thanks, Tom
__________________
http://tcurran.com/
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-25-2010, 05:57 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Karl, back to your question on the .fil for G28. I think I would like to proceed by changing the UP to Zero, and DOWN to negative 5.5"

I looked up the G28.fil:

This is what is programmed for that command:
-----G28

Other codes have lots of commands, like G9:
-----G9
!'Like G01 but Decel to stop
!DISPLAY4 {f*(\73/100)}
!DISPLAY5 {s*(\74/100)}
!RUNTIME \4
!DISPLAY8 \4
-----G10
-----G11
-----G12 etc.

I am open for suggestions at this point. I will try things out very cautiously. I appreciate your help,
Tom
__________________
http://tcurran.com/
Reply With Quote

  #7   Ban this user!
Old 03-25-2010, 06:09 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

One little detail, I've got used to, but is confusing. The code for the Gcode is ahead of the
----G9. You showed me the code for G10. Look again for your G28. If nothing is there, tell me your words exactly what you need this Gcode to do.

I never let the operator see the machine coordinates. There's no real need. I have the control remember part 0 when ever the operator sets up. And then reload these on machine startup. I only re-home after a crash or cpu malfunction, I've found Camsoft to never lose its spot. In my case, X0 is often the left side of the vice back jaw, Y0 is the face of the vice back jaw. The there's no need to re-indicate in a part in the vice, even after shutdown. Then I use G55 to G59 for any offsets. Just a time saving trick.

To answer your question on a possible problem, if your programmer does everything right it will work perfectly. I would tell you I've personally nver made a mistake and crashed a machine but I might be fibbing

Karl
Reply With Quote

  #8   Ban this user!
Old 03-25-2010, 06:45 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Karl, this is what I have:

-----G25
-----G26
-----G27
-----G28

When this command is called, I would like the Z axis to go all the way up to home, or just short of home, whichever is safer.

Thanks, Tom
__________________
http://tcurran.com/
Reply With Quote

  #9   Ban this user!
Old 03-25-2010, 06:45 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Originally Posted by Tom Curran View Post
Karl, back to your question on the .fil for G28. I think I would like to proceed by changing the UP to Zero, and DOWN to negative 5.5"
Find your home macro. There will be a command MACHZERO in it. The third paramter is the Z value. You have to know the exact distance between your home position and your upper limit switch. I enter this as a negative value minus the 50 thou to not hit the limit.

Karl
Reply With Quote

  #10   Ban this user!
Old 03-25-2010, 07:04 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Originally Posted by Tom Curran View Post
Karl, this is what I have:

-----G25
-----G26
-----G27
-----G28

When this command is called, I would like the Z axis to go all the way up to home, or just short of home, whichever is safer.

Thanks, Tom
The command is MACHGO
you can just use this or you can cover for other contingencies. Do you want to go there if the machine is not homed? CRASH!!! Do you want to go there at a certain feed rate, might take forever if you're set real slow. i also use this for tool changer, so I wrote the following macro:


'**************************Retract for tool change********************
[[RETRACT]]
LOADING \55:IF \55=0 THEN EXIT
'IF \123<>1 THEN QUESTION Machine not homed Run anyway;\55;N:IF\55<>Y THEN EXIT
\124=f 'current feed rate
f=50

IF \142=1 THEN [GALILERRORS] 'message Galil errors
MACHGO ;;0
f={\124}
IF \142=1 THEN [GALILERRORS] 'message Galil errors



You don't have the LOADING command in Lite, I write for Pro. The \142 is an example of using a flag. In this case, if something is flakey i can set this flag and get all sorts of detailed diagnostic messages. makes machine repair a snap. I think machines should help you diagnose their problems.

Karl
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-25-2010, 08:29 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Karl, I have CNC Lite.

Thanks for the tips on the home macro MACHGO. I must get my software limits switched first before I use it, I believe. Make the UP home, and down -5.5.

Thanks, Tom
__________________
http://tcurran.com/
Reply With Quote

  #12   Ban this user!
Old 04-01-2010, 08:38 PM
Tom Curran's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 38
Tom Curran is on a distinguished road

Got my spindle soft limits reconfigured today. The code G28Z0 send s the spindle UP, like it's supposed to! Hurrah!

Thanks for your suggestions, everyone.

Tim
__________________
http://tcurran.com/
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
Grinding and unexpected axis movement if rapiding 2 axis DarkSabre Taig Mills & Lathes 4 03-25-2010 11:37 PM
New Machine Build- post for 2 axis ez trak versus 3 axis ez vision tooolman G-Code Programing 0 11-28-2008 03:33 PM
Compare Catia and MCX2 for multi axis lathe/4 axis mill bob1112 General CAM Discussion 0 10-10-2008 07:15 PM
How can I coupling a stepper motor axis directly to other axis? meknik2001 Stepper Motors and Drives 4 05-08-2008 01:54 PM
New Design - Hybrid 3-Axis Router/4-axis Foam Hot Wire Cutter the__extreme CNC Wood Router Project Log 3 02-26-2007 02:58 PM




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