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 11-28-2007, 04:15 PM
 
Join Date: Nov 2007
Location: South Africa
Posts: 8
softselect is on a distinguished road
Unhappy Gecko ini file required

hi everone,
I am new to EMC2 and Linux. I have been using Microkinetics Turnmaster pro for many years on my lathe but the controller got wacked by lightning.
Retrofitted Gecko G201 drives and Tcnc and CNCpro cncpro is not realy for lathe work so tool change is P.I.T.A
I have installed EMC2/Umbuntu live CD. but I cant seem to get stepconf to work. In the ini files it calls for some timings and I am not sure what these values are for Gecko’s

I have tried for the last 7 days to get stepconf to work but I don’t seem to have a compiler on the live cd(emc2) for Glade

After downloading Glade.tar I now seem to need make? file

can any one please give me the setup files (ini and hal) for Gecko timing
or a compiled version of stepconf
or where i can get the make? file

Thank you
Freidrich
Reply With Quote

  #2   Ban this user!
Old 12-02-2007, 09:41 AM
 
Join Date: May 2006
Location: USA
Posts: 94
dewme5 is on a distinguished road

it would seem that something went wrong with your download of the live cd, as stepconf should work without any problems. however, here are a couple files I'm just posting the code so you can get the timings.

sample.hal
Code:
# Generated by stepconf at Tue Nov 27 19:39:22 2007
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg=0x378
setp parport.0.reset-time 4000
loadrt stepgen step_type=0,0,0
loadrt charge_pump

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf charge-pump base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread

net xdir => parport.0.pin-02-out
net xstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
net ydir => parport.0.pin-04-out
net ystep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
net zdir => parport.0.pin-06-out
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net charge-pump => parport.0.pin-17-out

# net estop-ext <= parport.0.pin-10-in

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 16000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [AXIS_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 16000
setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable axis.1.amp-enable-out => stepgen.1.enable

setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 35000
setp stepgen.2.dirsetup 16000
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.2.amp-enable-out => stepgen.2.enable

net estop-out <= parport.0.pin-10-in-not
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
sample.ini
Code:
# Generated by stepconf at Tue Nov 27 19:39:22 2007
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = my-mill
NML_FILE = emc.nml
DEBUG = 0

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

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = emc.var

[EMCMOT]
EMCMOT = motmod
SHMEM_KEY = 111
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 24500
SERVO_PERIOD = 1000000

[HAL]
HALFILE = my-mill.hal
HALFILE = joypad.hal

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

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

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.02040816327
MAX_ACCELERATION = 20.0
STEPGEN_MAXACCEL = 21.0
SCALE = 40000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -400.0
MAX_LIMIT = 90000000000.0
HOME_OFFSET = 0.0

[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.02040816327
MAX_ACCELERATION = 20.0
STEPGEN_MAXACCEL = 21.0
SCALE = 40000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -400.0
MAX_LIMIT = 90000000000.0
HOME_OFFSET = 0.0

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 31.5
SCALE = 8000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -4.0
MAX_LIMIT = 99999999.0
HOME_OFFSET = 0.0

In stepconf, the preset timings for the Gecko is
step time: 4000ns
step space: 500ns
Direction hold: 20000ns
direction setup: 1000ns

hope that helps. I'd supply better .hal and .ini files, but i'm just getting things setup myself.
Reply With Quote

  #3   Ban this user!
Old 12-02-2007, 01:23 PM
 
Join Date: Nov 2007
Location: South Africa
Posts: 8
softselect is on a distinguished road
Smile

Thank you dewme5,
you saved the day, I was about to give up on EMC2 and return to DOS
I think I will get it working by editing the ini files you sent me.
This is the 4 th time over the past 6 years I have tried EMC, and failed every time due to a lack of Linux knowledge, I want to run cnc machines not learn new programming skills.
Thanks for you time and efford
Friedrich
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
UK CNC Guru required Drakkn Mentors & Apprentice Locator 8 12-19-2007 10:53 AM
Tools required for a joe? tybrenis Joes CNC Model 2006 1 06-02-2007 08:50 PM
Help required for Fanuc 0t gricha Fanuc 6 03-23-2007 01:31 AM
Assistence required Smitty911 Machine Problems, Solutions , Wireless DNC, serial port 0 03-22-2007 11:02 PM
Help Required on CNC Hobbing ablogsol General Metalwork Discussion 2 06-12-2006 02:32 AM




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