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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-06-2011, 01:41 PM
 
Join Date: Dec 2006
Location: USA
Posts: 7
titaniumw41 is on a distinguished road
Noobie needs Z-Axis Help Please!

Hi All,

I am new at this so hopefully there is a simple answer to my problem. I have a fine line automation FLA-100 with a g540. I wired in 3 "floating" hall effect switches on the moving axes that trip using magnets on each end. I have everything figured out on the x and y axes but am having quite a time getting the z-axis figured out. It wants to home in the "down" position and I need it to home in the "up" position. When I click the inverse buttons it functions the way I want it EXCEPT that the AXIS representation is inverted as well as the page up / down keys. I tried inverting, using a negative sign in front of the lead-screw pitch, and both (inverted the invert) but I just can't get it right. I also tried tweaking settings in the .ini file but I still end up with the same issue. I have been reading forums and checking the emc2 docs but I can't seem to find anything. Any ideas?


Here is my .ini

Code:
# Generated by stepconf at Thu Jan  6 04:00:58 2011
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = my-mill
DEBUG = 0

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/cnc/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = emc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 50000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = my-mill.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.50
MAX_LINEAR_VELOCITY = 5.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_0]
TYPE = LINEAR
HOME = 0.25
MAX_VELOCITY = 4.75
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 4000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = 0.0
MAX_LIMIT = 24.0
HOME_OFFSET = 0.125000
HOME_SEARCH_VEL = -0.500000
HOME_LATCH_VEL = 0.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1

[AXIS_1]
TYPE = LINEAR
HOME = 0.25
MAX_VELOCITY = 4.75
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 4000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = 0.0
MAX_LIMIT = 36.0
HOME_OFFSET = 0.125000
HOME_SEARCH_VEL = -0.500000
HOME_LATCH_VEL = 0.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

[AXIS_2]
TYPE = LINEAR
HOME = -.25
MAX_VELOCITY = 4.75
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = -4000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -6
MAX_LIMIT = 0
HOME_OFFSET = -.125
HOME_SEARCH_VEL = -0.500000
HOME_LATCH_VEL = 0.125000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
Thanks for your time!
Reply With Quote

  #2   Ban this user!
Old 01-06-2011, 07:40 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

From the manual:
Home Search Velocity
The velocity to use when moving towards the switch. If the switch is near the end of travel, this velocity must be chosen so that the axis can decelerate to a stop before hitting the end of travel. If the switch is only closed for a short range of travel (instead of being closed from its trip point to one end of travel), this velocity must be chosen so that the axis can decelerate to a stop before the switch opens again, and homing must always be started from the same side of the switch.
If the machine moves the wrong direction at the beginning of the homing procedure, negate the value of Home Search Velocity.

so get the axis and the GUI to agree on jogging direction, then if it homes in the wrong
direction negate the home search velocity entry
The other possibility is the home switch needs to be inverted but usually you get a 'on limit switch error ( if your limit and home is shared).

Chris M
Reply With Quote

  #3   Ban this user!
Old 01-06-2011, 09:11 PM
 
Join Date: Dec 2006
Location: USA
Posts: 7
titaniumw41 is on a distinguished road

Yeah, I should have caught that. I'll report back tomorrow when it works

Thanks for your help!
Reply With Quote

  #4   Ban this user!
Old 01-07-2011, 09:43 PM
 
Join Date: Dec 2006
Location: USA
Posts: 7
titaniumw41 is on a distinguished road

Yes, that fixed it after some frustration. Turns out I forgot I edited some things directly in the .ini file. Then when I switched the sign on HOME_SEARCH_VEL I did it in stepconfig. Stepconfig isn't aware of anything you did to the .ini file so it over wrote it with some things I had in there previously (it even warns you about that.) In the end, after switching the HSV sign and setting my HOME and HOME_OFFSET to what they should be, all was well.

Another question though: Does everyone typically have their z completely negative? I have mine set to 0 to -6 (6 inches of travel.) What is common for this? 3 to -3? 6 to 0?

I tried the obligatory "shove a sharpie in the collet and draw" test today. After error upon error, I learned I have a lot to learn about offsets. Maybe I'll have better luck tomorrow!

Thanks,

Michael
Reply With Quote

  #5   Ban this user!
Old 01-08-2011, 07:47 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

When the tool travels closer to the work holder (either the table or a chuck eg lathe)
then the axis is moving in the negative direction. This is a standard.

When setting the table travel limits in stepconf you are actually defining the origin of the machine coordinates.

As far as I can tell it really doesn't matter where the origin is as long as moving the tool towards the work holder is in the negative direction.

The reason it doesn't matter is you don't run the machine using machine coordinates you set user coordinates (G 54 etc) . These are referenced from machine coordinates.

I lied a little actually - there is a G 53 command that directly uses machine coordinates.
programming G 53 x0 will move the axis to the 'absolute' x 0 which is the machine c0ordinate x 0 which you defined in stepconf. so if using G 53 then the defining of the origin would be important. You might use this for a tool changer position .

To answer the other question about machining with z negative.
if you set your user coordinate to be zero at the top of your table the all you z moves will be positive.
I'm pretty sure most people set Z zero at the top of the work piece.

Chris M
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another CNC noobie introduction mattgatten CNCzone Club House 0 12-29-2008 02:35 PM
a noobie question justCNCit General Electronics Discussion 7 08-18-2007 09:35 AM
noobie need help with mastercam CNC Darren Mastercam 0 09-03-2005 05:17 PM
CNC Noobie, need help NewCents DIY-CNC Router Table Machines 17 07-27-2004 11:14 PM
Noobie needs help!! Summer DIY-CNC Router Table Machines 18 11-27-2003 12:25 AM




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