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 07-11-2010, 06:05 AM
M250cnc's Avatar  
Join Date: Sep 2007
Location: England
Age: 60
Posts: 359
M250cnc is on a distinguished road
Adding Another PP

I followed the instructions from http://www.linuxcnc.org/docview/html...llel_port.html

I put this in the custom hal file so it not over written

When i then try to start i get an error dump file

I am obviously not sure what i am doing wrong this is the the info i get when i run lspci -v

Can anyone help me use the correct port in the correct format

Thanks

00:09.0 Serial controller: NetMos Technology Unknown device 9865 (prog-if 02 [16550])
Subsystem: Unknown device a000:1000
Flags: medium devsel, IRQ 5
I/O ports at b000 [size=8]
Memory at dfffb000 (32-bit, non-prefetchable) [size=4K]
Memory at dfffa000 (32-bit, non-prefetchable) [size=4K]
Capabilities:

00:09.1 Serial controller: NetMos Technology Unknown device 9865 (prog-if 02 [16550])
Subsystem: Unknown device a000:1000
Flags: medium devsel, IRQ 10
I/O ports at b400 [size=8]
Memory at dfffd000 (32-bit, non-prefetchable) [size=4K]
Memory at dfffc000 (32-bit, non-prefetchable) [size=4K]
Capabilities:

00:09.2 Parallel controller: NetMos Technology Unknown device 9865 (prog-if 03 [IEEE1284])
Subsystem: Unknown device a000:2000
Flags: bus master, medium devsel, latency 64, IRQ 9
I/O ports at bc00 [size=8]
I/O ports at b800 [size=8]
Memory at dffff000 (32-bit, non-prefetchable) [size=4K]
Memory at dfffe000 (32-bit, non-prefetchable) [size=4K]
Capabilities:
Reply With Quote

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

You need to post the error.
also what version of emc are you using and are you using stepconf.
the current stepconf can add a second and third parallel port just by entering the addrerss
and checking them to load.
Chris M
Reply With Quote

  #3   Ban this user!
Old 07-11-2010, 02:15 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

I/O ports at bc00 [size=8]
I/O ports at b800 [size=8]
The parallel port is most likely at one of these addresses. But, NetMos chips are a little odd, so it is possible these addresses reported by the PCI enumeration could be wrong. You will have to try both of these addresses to find out which one is connected to the port you are using. (The other address is likely connected to a 26 pin header on the board, which you can connect another 25-pin D connector to.

Jon
Reply With Quote

  #4   Ban this user!
Old 07-12-2010, 02:17 AM
M250cnc's Avatar  
Join Date: Sep 2007
Location: England
Age: 60
Posts: 359
M250cnc is on a distinguished road

chester88, jmelson,

Thanks, i tried entering the parport in stepconf with both b800 and bc00 i am using EMC2 ver 2.3.5

Both loaded OK, is there a simple test to check that the port is correct i am not using the port at the moment, it is for an MPG

I want to make 100% sure everything is working before i leave Mach3, in Mach i use a USB device (Shuttle Pro)

Sorry for the dumb questions
Reply With Quote

  #5   Ban this user!
Old 07-12-2010, 02:52 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

The best way is to test it!

wire a switch to one of the inputs and watch that pin with halmeter.
halmeter can be loaded from the AXIS screen.
search the pin names for the parport.1. whatever pin your checking.
The fact it didn't crash with error is a good sign. There is probably two ports on your addon card as Jnelson said.

One a side note you can probably use your Shuttle pro with emc.
though it is fairly involved. You might want to try it later.
look here:
http://hidcomp.sourceforge.net/#hidcompcontrols

It mentions the Shuttle pro.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-12-2010, 03:39 AM
M250cnc's Avatar  
Join Date: Sep 2007
Location: England
Age: 60
Posts: 359
M250cnc is on a distinguished road

chester88 thanks for the reply,

I hope you guys can appreciate i am on a steep leaning curve.

chester88 I checked the link you gave me and that is too steep for my old brain.

I already have a dedicated MPG, i absolutely hate the shuttle pro for various reasons.

I would like some info on the PoKeys device if there is any. Mainly keyboard emulation, which the PoKeys is very good at.
Reply With Quote

  #7   Ban this user!
Old 07-26-2010, 08:14 PM
 
Join Date: Apr 2005
Location: Australia
Posts: 18
erlyrisa is on a distinguished road
EMC2 multiple parrallel port

Don't put it into the custom.hal file

the problem is the line
loadrt hal_parport cfg="0x0378 0xbc00 0xb400 "

in the form 0x378 is already in your
machinename.hal file

and hal gives an error that you have already loaded the parport driver.

EMC2 user manual needs update-ing to mention that you can only do things like this once.

Took me awhile to realise this.
eg. I loaded it in the command line version of Hal, then I couldn't load emc2 even with standard 1 port.

My question is how do you setup the axis(s) once you have loaded all three port adresss... you still need to do....

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

etc for every axis on the particular port. I am still struggling with this.
Reply With Quote

  #8   Ban this user!
Old 07-26-2010, 11:54 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Erlyrisa:

Why don't you use stepconf ? It will set up the three parports for you after you add the addresses.
Hmm unless you are trying to have one axis per parport.
While it maybe possible I wouldn't recommend it.
Leave all the axis step signals on the first parport and use the other parports for
extra I/O.

What are you actually trying to do?
Reply With Quote

  #9   Ban this user!
Old 07-27-2010, 12:23 AM
 
Join Date: Apr 2005
Location: Australia
Posts: 18
erlyrisa is on a distinguished road

Originally Posted by chester88 View Post
Erlyrisa:

Why don't you use stepconf ? It will set up the three parports for you after you add the addresses.
Hmm unless you are trying to have one axis per parport.
While it maybe possible I wouldn't recommend it.
Leave all the axis step signals on the first parport and use the other parports for
extra I/O.

What are you actually trying to do?
I'm hoping to build a multi axis machine - on the order of 5+

I had a look at the example 5axis.conf but that's not setup for step outputs just simulation.

It's probably not hard todo, just wish thier were more in the manual about things like this, it seems the manual is geared toward starters, and the hard stuff is left for the uber geeks to figure out.

--A fix on my last post - what I meant to say is that the hal_parport line is already in your machinename.hal file ... putting it into custom.hal just doubles it up and doesn't work - in other words the manual and similar posts have this wrong.

Putting 0x37 0xbc00 etc in the step config wizard didn't work for me.
Reply With Quote

  #10   Ban this user!
Old 07-27-2010, 12:34 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

What version of EMC are you using?
Can you elaborate y loading the parport in stepconf didn't work.
error message?
Description of what you expected and what you got.

Thanks
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-27-2010, 12:40 AM
 
Join Date: Apr 2005
Location: Australia
Posts: 18
erlyrisa is on a distinguished road

Originally Posted by chester88 View Post
What version of EMC are you using?
Can you elaborate y loading the parport in stepconf didn't work.
error message?
Description of what you expected and what you got.

Thanks
I must have been puttin commas in - It does work...

I simply put 0x0378 0xbc00 0xb400 into the stepconf wixard and it change my cfg="0x0378 0xbc00 0xb400 out "

It also setup the pins, of course stepconf didn't ask about doing more complex axis ... will have to do that manually I guess.
Reply With Quote

  #12   Ban this user!
Old 07-28-2010, 01:09 AM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Yes stepconf was built for simple desktop machines, but by looking at the ini and HAL file plus 5 axis config files you should be able to get close.

Glad you got it working.

Chris M
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
help adding tooling kirkmach Cincinnati CNC 0 05-04-2009 02:38 PM
Need Help!- Adding an X axis power feed to my smithy 1220XL milling table.Adding an X axis power matridium Smithy 0 05-28-2008 10:37 AM
adding a 4th axis? airbrush Rockcliff Machine 17 10-12-2007 05:00 PM
Adding a fan to the X3 Antonyong Benchtop Machines 2 04-25-2007 11:19 PM
Adding a 4th Shizzlemah Fadal 5 12-01-2005 05:16 PM




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