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 05-22-2010, 11:39 AM
 
Join Date: Sep 2008
Location: Canada
Posts: 8
dcas1 is on a distinguished road
EMC configuration ini file hal stepconf

Hi all
I got a couple 3 axis routers using step/dir controllers that we're running with dos contollers like CNCPRO and Turbocnc. I'm trying to get them to run EMC but am having a some problems configuring an ini file.
I think the hal is supposed to offer a graphical environment to configure the machine wiring to the controller software, but I cannot understand how to implement it. Will the hal show the real state of the pins too? That would help.
Here's what I did to get an ini file, I used step.conf and modified the Keling, got the motors to jog, and calibrated the steps to the table drives, got the directions correct. I'm using combined home and limit switches. Later on, I found that I had to modify the .ini files in a text editor (vi) in order to get the homing correct, for things like home search direction for the proper quadrant, and how much to move off the switch plus the direction, etc.
What I am really having trouble with is that I ran the file through stepconf after I'd modified it in vi, and it was corrupted by stepconf, even though I made no changes to it in stepconf.
I tried making another stepconf that will work and checked the halui checkbox in stepconf - will that cause hal to run with all the values I entered in stepconf?
How do you connect pins in hal?
It'd be handy to enter commands into an MDI in hal, like M3 to set a port pin, and M5 to clear it, and see that the pin change states real time.
If I managed to get an ini file from hal would it get corrupted if later on it ran through stepconf again?

Been reading the manuals several times but it's not sinking in. So I'm obviously screwed up. Other machines run OK, and both these machine are plain jane normal. So I've decided to ask the experts.
Anybody got any suggestions?
Just one more question. I need a LPT port pin on both of these machines, prefereably LPT16, to turn on the spindle, cooling pump, and vacuum. I'd like to set the pin with an M3 and clear the pin with an M5 command, so I won't have to modify the gcode post. Both machine spindles rotate CW only, so I don't need M4 at all.
It's supposed to be fairly easy to do in hal. Would anyone care to describe the procedure.
thanks for having a look,
cheers,
Denis
Reply With Quote

  #2   Ban this user!
Old 05-22-2010, 11:09 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

There is a graphical program to show you your current HAL set up. Its called halshow.
http://www.linuxcnc.org/docs/devel/h...l_halshow.html
if your using AXIS you find it under the machine tab.

Stepconf is used to produce INI and HAL files for a configuration. If you edit the INI or HAL outside of stepconf you will lose these changes next time you use stepconf because stepconf has no idea you changed them.You shouldn't have to edit the INI or HAL file to make the changes you talked about. Only if you are trying to do something unusual / outside the scope of stepconf. If you have some HAL addons you would like there is a file named custom.hal that will not be overwritten by stepconf. This is good for adding jog wheels and pyvcp panels etc.

Stepconf should connect all HAL pins for you and set up the INI file . Then run EMC start halshow and check your inputs and outputs.

did you read this?
http://www.linuxcnc.org/docs/2.3/htm..._stepconf.html

Chris
Reply With Quote

  #3   Ban this user!
Old 05-24-2010, 12:21 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 8
dcas1 is on a distinguished road
stepcond

Hi Chris, thanks for replying, I'll try stepconf again today.
I tried to configure Z axis yesterday and it's developed a scaling problem on the Z axis. The axis runs OK in the 'test this axis' feature in stepconf; if 1" is entered as a travel distance it traverses 1".
However, when EMC runs, the scaling gets divided down off by exactly 50%. meaning the register shows it's moved 8 inches but it's acutally only moved 4" and further movement causes the software limit to set.
Maybe it's got one of those custom hal files that was mentioned in the documentation.
Never had as much trouble before, it there anyone in Vancouver lower mainland that I could lend a hand?
cheers
Denis
Reply With Quote

  #4   Ban this user!
Old 05-24-2010, 02:48 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

What version of EMC are you using?
The custom HAL file would not do this unless so specifically programmed it to.
Well I'm closer the most I'm on Vancouver Island - but don't get over to mainland much.

Chris
Reply With Quote

  #5   Ban this user!
Old 05-24-2010, 04:49 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 8
dcas1 is on a distinguished road
EMC version

HI Chris,
EMC version # is EMC/AXIS v 2.3.5 from a download about a month ago.
Ffrom what I know it's got the fixed step.conf.
Denis
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-24-2010, 06:40 PM
 
Join Date: Sep 2008
Location: Canada
Posts: 8
dcas1 is on a distinguished road
EMC config

Hi Chris, I made a new stepconf file entering the same values and the router seems to be working OK now, it homes, and scaling is good. In the process I ended up with some sort of phantom stepconf file which had the same number of bytes and a 2 minute different time stamp, no name but a step.conf file extension. I tried deleting it even in root and couldn't, so I deleted all the configs and started over again. Really strange behaviour. Several times in the process I had to re-enter a value in a field to get the correct performance even though it was the same value. Any ideas? Perhaps this step.conf program version is faulty, or it could be my computer.
Thanks for your help.
Denis
Reply With Quote

  #7   Ban this user!
Old 05-24-2010, 07:09 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

please post your stepconf file.
It is under /home/yourname/emc2/configs and ends in .stepconf

oops didn't read your last post. Yes that is weird. Glad its working now.
Chris
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
EMC2 Configuration File for G540 CoAMarcus LinuxCNC (formerly EMC2) 7 05-22-2009 04:32 PM
Can someone Please help me how to save my mach3 configuration as a xml file JaiTalkin Machines running Mach Software 2 06-03-2008 11:29 PM
stepconf Mr Bits LinuxCNC (formerly EMC2) 4 04-19-2008 09:12 AM
Problem- Homing and E-Stop operation with Stepconf cadmonkey LinuxCNC (formerly EMC2) 3 03-11-2008 06:13 AM
Where do I find stepconf? cbcnc LinuxCNC (formerly EMC2) 8 12-21-2007 08:40 PM




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