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 08-10-2008, 09:00 PM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road
2 Parallel ports

I'm trying to get started with EMC2 from the cd-install. I have setup many CNC machines in the past using MACH-3 (Windows); so I am very familiar with the technology; but need some help with EMC2.

I ran the "stepper setup wizard". Looks like the first page prompts me for a "PARPORT BASE ADDRESS". My unit has two paralell ports. How / where do I go to configure that?

-Erich Stein
__________________
WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets.
Reply With Quote

  #2   Ban this user!
Old 08-10-2008, 11:03 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

You can only configure one port with the step config wizard. Then you will have to edit the config files to add the second port.

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

  #3   Ban this user!
Old 08-17-2008, 06:47 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Usually the default base address that stepconf suggests will work.

There is a lot of info on the wiki site on hooking up second parallel ports. One that I know of is at

http://wiki.linuxcnc.org/cgi-bin/emc..._A_MPG_Pendant

John
Reply With Quote

  #4   Ban this user!
Old 09-29-2008, 08:47 PM
 
Join Date: Sep 2007
Location: US
Posts: 20
stratcat50 is on a distinguished road

Open a terminal and run a 'lspci -v'. This will give you a list of all PCI devices including the addon port
Look through the listing and find the port and its address. It's usually pretty obvious.
Then edit your hal file and look for lines like
loadrt probe_parport
loadrt hal_parport cfg="0x0378 out"
If you've got a semi-working config, that will be the address of parport.0.
Put the address of the 2nd port after the first, inside the quotes. It is then parport.1.
Depending on your usage, you might have to use the 'in' or 'out' parameters. Mine looks like:
loadrt hal_parport cfg="0x0378 out 0xd800 in" and is used for switches & sensors.
Good luck!
Reply With Quote

  #5   Ban this user!
Old 09-30-2008, 04:06 PM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

Ok so EACH paralell port must only be assigned INPUT or OUTPUT yes? I am trying to read the documents which are really overwhelming and filled with fluff - I really dont think I need to understand how to generate a sine-wave as my first practice in understanding the hal. Just tieing pins on a paralell port to step/direction w/ digital inputs is a nice start.

-Erich
__________________
WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-30-2008, 04:35 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

You need to skip down to this part of the manual for paraport info...

http://www.linuxcnc.org/docview/html...ml#sec:Parport

John
Reply With Quote

  #7   Ban this user!
Old 10-05-2008, 08:54 PM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

Got it now, thanks for that. The HAL appears to be a nice elaborate module itself, it seems its made that someone could code their own API interface to control the HAL directly. Very interesting and distracting when I am trying to assign the ports and pins in my hardware to the EMC2 program.

-Erich
__________________
WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets.
Reply With Quote

  #8   Ban this user!
Old 08-10-2010, 03:34 AM
tyo tyo is offline
 
Join Date: Jul 2010
Location: indonesia
Posts: 13
tyo is on a distinguished road

a use second parport is mean we use two of parallel system???
and...
the address 0xd800 have some pin 10,11,12,13,15 at same parallel output 0x378..???

Last edited by tyo; 08-10-2010 at 03:50 AM.
Reply With Quote

  #9  
Old 08-10-2010, 08:41 AM
wendtmk's Avatar
Moderator
 
Join Date: Dec 2005
Location: USA
Posts: 234
wendtmk is on a distinguished road

tyo,

No - two parallel ports, typically two different signal paths. You may be able to get identical signals,one on each port by using HAL, but normally you would use the second parallel port to carry different signals, say for a pendant, or simply to allow more drivers (axes) to be used.

Is that what you were asking?

Mark
Reply With Quote

  #10   Ban this user!
Old 08-11-2010, 04:00 AM
tyo tyo is offline
 
Join Date: Jul 2010
Location: indonesia
Posts: 13
tyo is on a distinguished road

so..what the address we can use for same parallel with 0x378..??
actually port input at standard LPT-1...
i'm confused with homing input...for limiting approx...
help me please....
Reply With Quote

Sponsored Links
  #11  
Old 08-11-2010, 08:56 AM
wendtmk's Avatar
Moderator
 
Join Date: Dec 2005
Location: USA
Posts: 234
wendtmk is on a distinguished road

Originally Posted by tyo View Post
so..what the address we can use for same parallel with 0x378..??
actually port input at standard LPT-1...
i'm confused with homing input...for limiting approx...
help me please....
Not quite sure what exactly you are trying to do. If you install a second parallel port, it will have a different address. Usually assigned by your computer BIOS. Depending on what operating system you run, there are different ways of finding out what the address is. LPT1 is usually 0x378.

Everything you ever wanted or needed to know about parallel ports:

http://www.beyondlogic.org/spp/parallel.htm

Mark
Reply With Quote

  #12   Ban this user!
Old 08-12-2010, 03:19 AM
tyo tyo is offline
 
Join Date: Jul 2010
Location: indonesia
Posts: 13
tyo is on a distinguished road

LPT-1 have three access of port.
there are.
1. "data" the address is 0x378 => pin 0 till 9 (output)
2. "status" the address is 0x379 => pin 10,11,12,13,15 (input)
3. "control" the address is 0x37a => pin 1,14,16,17 (output)
and the other is ground..18 till 25

how to configure EMC for same parallel (LPT-1) be able input at (379) and output at (378)...???
i've trying change the script on .HAL:
loadrt hal_parport cfg="0x378 out 0x379 in"
but still doesn't work...
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
More on ports and pins andrewbishop66 Mach Software (ArtSoft software) 2 03-08-2007 07:05 PM
SPC Ports What are your Use? SMW Precision Calibration & Measurement 1 07-31-2006 03:46 PM
ports and pins planescott Stepper Motors and Drives 5 03-24-2006 11:57 PM
Parallel ports itsme Computers and Networking 8 09-30-2005 08:20 PM
3.3 V vs. 5 V TTL on parallel ports HansM Machine Problems, Solutions , Wireless DNC, serial port 4 07-28-2005 02:28 PM




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