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 10-21-2007, 01:30 PM
 
Join Date: Apr 2007
Location: USA
Posts: 7
rmacster is on a distinguished road
INI Setup Issue

Below is the stepper_inch.ini setup for my X axis. Currently it is exactly the same for the Y and Z axis.

My Problem is this: I setup the input scale to 8000. When I jog the X axis (jog increment set to .1) it moves the X axis exactly 1 tenth of on inch. But if I give it a .ngc file with the command G01 X+2 it actually moves almost 3 inches. I'm sure I'm missing something simple but I just can't find it.

Thanks for all the help.

Rick McNeely
[AXIS_0]

TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 1.2
MAX_ACCELERATION = 20.0
STEPGEN_MAXVEL = 1.4
STEPGEN_MAXACCEL = 21.0
BACKLASH = 0.000
INPUT_SCALE = 8000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.0
HOME_LATCH_VEL = 0.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO

==========Test .ngc File Below===========
F 2
G01 X+2
M2

[/FONT]
Reply With Quote

  #2   Ban this user!
Old 10-21-2007, 05:54 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Rick,

My first question would what was X's position to start?
If X was at -1 and you told it to go to +2 that would be a three inch move.
Try this and see if it moves back to your starting position (or not).
F 2
G01 X+2
X0.0
M2


Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #3   Ban this user!
Old 10-21-2007, 06:24 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by rmacster View Post
INPUT_SCALE= 8000
Is your table moving to the left when jogging X+ ? Just curious as my .ini reads minus, ie -8000 on that line.

I'm going to take a guess at the problem. Remember my specialty is misreading posts.

This is difficult to put into words, so please excuse the explanation by example. I'm assuming you're using the axis interface.

Look in the file stepper.var and note the numbers on lines;
5220 -> this determines the active offset. Should be 1.0000 at this point.
5221 -> the x offset
5222 -> the y offset
5223 -> the z offset

Try this. Before opening axis, change the values associated with 5221 and 5222 to zero. Now start axis and move the table to the position you would like to call HOME. I like that position to be the table moved to the far right and near the column.

Now click Machine -> Homing -> home y axis. If this worked as intended the actual and relative positions of y will both read zero.

In MDI enter
Code:
 G01  Y.1  F10
The expected result is the table moving 0.1" towards you.

To play a bit more with this idea, move the machine to Y 1.0. Now "touch off" Y and accept a relative co-ordinate of zero. Open the stepper.var table and line 5222 should now read 1.00000. Toggle between the relative and and machine position views to get a feel for what has happened.

If you look at the active gcodes on the MDI window, G54 should be listed.

In MDI
Code:
 G00 Y0
no movement should take place.
Code:
 G00  Y.25
and notice the difference between the machine and relative positions.

Keep playing with this and the concept will become second nature.

Wow, I do rattle on. The axis developers explanation might be more clear and covers some additional possibilities.
http://www.mail-archive.com/emc-user.../msg03400.html
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #4   Ban this user!
Old 10-21-2007, 07:24 PM
 
Join Date: Apr 2007
Location: USA
Posts: 7
rmacster is on a distinguished road
Thanks guys

I guess my beginner status really shines! You're both correct of course. Thanks for the extended answer cyclestart, it's beginning to make sense to me. CNC is really a different animal. But all in all quite nifty.

Rick McNeely
Reply With Quote

  #5   Ban this user!
Old 10-21-2007, 07:29 PM
 
Join Date: Apr 2007
Location: USA
Posts: 7
rmacster is on a distinguished road

Also, my my table moves to the left. I had to add the line:

setp parport.0.pin-03-out-invert 1

to my xylotex_pinout.hal to reverse the direction of x travel. I never thought of using -8000 instead of 8000.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-04-2007, 10:11 PM
 
Join Date: Mar 2007
Location: U.S.A.
Age: 58
Posts: 50
stustev is on a distinguished road

This is a little off topic but your table should move to the left when you move in the X positive direction. The program should move the 'tool' relative to the work. If the tool doesn't move but the table moves then the table must move left (if you are looking in the Y positive direction).
Reply With Quote

  #7   Ban this user!
Old 11-05-2007, 01:14 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by stustev View Post
This is a little off topic but your table should move to the left when you move in the X positive direction.
Yep, and both myself and rmacster have machines working this way. We just used slightly different methods to make this happen.

Rereading this post, there is something I forgot to mention. A command of G91 will result in an incremental move. Axis defaults to G90 (absolute) when opened.
__________________
Anyone who says "It only goes together one way" has no imagination.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
another turret issue Paul in OK Daewoo/Doosan 0 05-24-2007 11:21 AM
Y-Axis issue studysession Machines running Mach Software 1 12-28-2006 02:11 PM
Help with selector switch wiring issue (***actually a motor issue***) BEDFORD Industrial Hobbies (Support forum) 7 04-07-2006 03:19 PM
THC Issue Aldoseri CamSoft Products 3 01-31-2006 04:33 AM
Issue with new setup mikesos1 Xylotex 6 08-25-2005 04:10 PM




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