Re: [Emc-users] Installing a second parallel port

2008-06-13 Thread aaron Moore
Alan
Thanks for reply.
I am using steppers, so do I add my read and writes to the servo thread or the 
base 
thread?

My .hal file still has all the original configuration lines in, which I know 
work... will 
it run once I make these changes or is there still more to do?

Aaron

   
 - Original Message -
 From: Alan Condit [EMAIL PROTECTED]
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Installing a second parallel port
 Date: Thu, 12 Jun 2008 21:36:54 -0700
 
 
 Aaron,
 
 Since you indicated that you are adding a second port you need both 
   ports in your config statement:
 
 loadrt hal_parport cfg=0x0378 0x9000
 
 Here is how I set up my reads and writes: (not using steppers  
 requires adding them to the base-thread not the servo-thread).
 
 # next connect the parport functions to threads
 # read inputs first
 addf parport.0.read base-thread 1
 addf parport.1.read base-thread 2
 # hook functions to base thread (high speed thread for step generation)
 addf stepgen.make-pulses base-thread
 # write outputs last
 addf parport.0.write base-thread -1
 addf parport.1.write base-thread -1
 # The following two lines are needed if you are running Double step
 addf parport.0.reset base-thread
 addf parport.1.reset base-thread
 
 Alan
 
 ---
 
 Alan Condit
 1085 Tierra Ct.
 Woodburn, OR 97071
 
 Email -- [EMAIL PROTECTED]
 Home-Office (503) 982-0906
 
 On Jun 12, 2008, at Jun 12, 2008--5:44 PM, emc-users- 
 [EMAIL PROTECTED] wrote:
 
  Kirk
  I have added..
  loadrt hal_parport cfg=0x9000
  addf parport.0.read  servo-thread
  addf parport.0.write servo-thread
  to my hal file (hopefully in the right places).  Can I not  
  configure the pins through the step config wizard?
  Aaron
  - Original Message -
  From: Kirk Wallace [EMAIL PROTECTED]
  To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED]
  Subject: Re: [Emc-users] Installing a second parallel port
  Date: Thu, 12 Jun 2008 00:56:00 -0700
 
 
  On Thu, 2008-06-12 at 06:11 +, aaron Moore wrote:
  Hi
  You guys are going to haveto hold my hand here
  I run lspci -v and I get..
  :00:06.0 Parallel controller: Timedia Technology Co Ltd:
  Unknown device 7268 (rev 01) (prog-if 02 [ECP])
  Subsystem: Timedia Technology Co Ltd: Unknown device 0103
  Flags: stepping, medium devsel, IRQ 9
  I/O ports at 9000 [size=8]
  I/O ports at 9400 [size=8]
  which is the address and where do I find the hal file to put it in
 
  Thanks
  Aaron
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
Powered by Outblaze

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-13 Thread Alan Condit
aaron Moore [EMAIL PROTECTED] writes:

 
 Alan
 Thanks for reply.
 I am using steppers, so do I add my read and writes to the servo thread or the
base 
 thread?
 
 My .hal file still has all the original configuration lines in, which I know
work... will 
 it run once I make these changes or is there still more to do?
 
 Aaron
 
Aaron,

It was supposed to say Note: Using steppers requires adding them to the
base-thread not the servo-thread.
Sorry about that (can I blame it on my spell checker)?

Alan



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-13 Thread Kirk Wallace
On Fri, 2008-06-13 at 17:07 +, aaron Moore wrote:
 Alan
 Thanks for reply.
 I am using steppers, so do I add my read and writes to the servo thread or 
 the base 
 thread?

The step (and direction) pulses that steppers or step/direction servo
and stepper controllers use, need to be very fast, so if your step and
direction signals are coming through your parport, your parport driver
needs to run as fast as possible. The base thread is the fastest
thread. 

The servo thread is a little slower and among other things, monitors and
controls what goes on in the base thread. The servo thread also is used
to control things that don't need to to be fast or particularly accurate
timing wise. If you are not connecting your steppers to the new parport,
you most likely can run the driver for the new parport in the servo
thread.

 My .hal file still has all the original configuration lines in, which I know 
 work... will 
 it run once I make these changes or is there still more to do?
 
 Aaron

When you mention that your original .hal file worked fine, it makes me
think that your steppers are already being controlled, So what will you
be connecting to your new parport?

-- 
Kirk Wallace (California, USA
http://www.wallacecompany.com/machine_shop/ 
Hardinge HNC/EMC CNC lathe,
Bridgeport mill conversion, doing XY now,
Zubal lathe conversion pending
Craftsman AA 109 restoration
Shizuoka ST-N/EMC CNC)


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread aaron Moore
Hi
You guys are going to haveto hold my hand here
I run lspci -v and I get..
:00:06.0 Parallel controller: Timedia Technology Co Ltd: Unknown device 
7268 (rev 01) (prog-if 02 [ECP])
Subsystem: Timedia Technology Co Ltd: Unknown device 0103
Flags: stepping, medium devsel, IRQ 9
I/O ports at 9000 [size=8]
I/O ports at 9400 [size=8]
which is the address and where do I find the hal file to put it in

Thanks
Aaron


 - Original Message -
 From: Alan Condit [EMAIL PROTECTED]
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Installing a second parallel port
 Date: Wed, 11 Jun 2008 14:56:32 -0700
 
 
 Aaron,
 
 I bought my 2 parallel port pci card from Newegg.  It is uses a  
 netmos nm9815cv chip.
 
 After physically plugging it into the computer, I ran lspci -v 
 from  a terminal window to locate the port addresses. Thus far it 
 was just  plug and play.
 The next step is to edit the .hal file. You need add the port  
 address to the hal_parport config statement and to add read and 
 write  functions to the appropriate thread (since I am running 
 steppers it  was the base-thread). Then you need to add the pin and 
 signal  connections to do what ever provoked the need for a second 
 port.
 
 Alan
 
 ---
 
 Alan Condit
 1085 Tierra Ct.
 Woodburn, OR 97071
 
 Email -- [EMAIL PROTECTED]
 Home-Office (503) 982-0906
 
 On Jun 11, 2008, at Jun 11, 2008--1:59 PM, emc-users- 
 [EMAIL PROTECTED] wrote:
  From: aaron Moore [EMAIL PROTECTED]
  Date: Wednesday2008June 11 Wednesday2008June 111:48:15 PM PDT
  To: EMC userslist emc-users@lists.sourceforge.net
  Subject: [Emc-users] Installing a second parallel port
  Reply-To: Enhanced Machine Controller \(EMC\) emc- 
  [EMAIL PROTECTED]
 
 
  Hi
  Can some one tell me what I need to do to install a second 
  parallel  port apart from physically plugging it into the 
  computer or will it
  just 'plug and play'
  Thanks for any help in this.
  Aaron
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
Powered by Outblaze

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread Kirk Wallace
On Thu, 2008-06-12 at 06:11 +, aaron Moore wrote:
 Hi
 You guys are going to haveto hold my hand here
 I run lspci -v and I get..
 :00:06.0 Parallel controller: Timedia Technology Co Ltd: Unknown device 
 7268 (rev 01) (prog-if 02 [ECP])
 Subsystem: Timedia Technology Co Ltd: Unknown device 0103
 Flags: stepping, medium devsel, IRQ 9
 I/O ports at 9000 [size=8]
 I/O ports at 9400 [size=8]
 which is the address and where do I find the hal file to put it in
 
 Thanks
 Aaron

When you start EMC, which configuration do you chose? The .hal file for
that configuration is most likely in your home directory
under .../emc2/configs. So, something like:

/home/aarons_home/emc2/configs/stepper/stepper.hal

The EMC start screen lists the available configurations based on the
names of .ini files. The .ini file you choose has a place to set
which .hal files get loaded. You should open the .ini file and check for
the HALFILE= lines to see the files names. The lines that start with #
(comment tag) are commented out, so they don't count. Usually there is
only one .hal file loaded and its name matches the configuration name.
To load the parport driver you need to have a line in your .hal file
like:

loadrt hal_parport cfg=0x9000
(loads only your PCI parport as parport.0)

or

loadrt hal_parport cfg=0x0378 0x9000
(loads the motherboard port as parport.0, and the PCI port as parport.1)

This should load the driver and make the functions parport.X.read and
parport.X.write available to EMC. You need to have EMC run these
functions in your servo thread by adding to your .hal file:

addf parport.0.read  servo-thread
addf parport.1.read  servo-thread (if you have a second port)
(usually at the beginning of the addf lines)

addf parport.0.write servo-thread
addf parport.1.write servo-thread (if you have a second port)
(usually at the end of the addf lines)

After EMC starts these functions, you will have the HAL parport pins,
signals and parameters available. These are listed here:

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

Most likely in your case if you loaded only one parport it will be
parport.0 so to connect the flood coolant button to pin one, you would
add a line:

net Flood iocontrol.0.coolant-flood = parport.0.pin-01-out

Other iocontrol signals are here:

http://www.linuxcnc.org/docview/html//man/man1/iocontrol.1.html

If you start EMC and toggle the Flood button you can check pin one with
a voltmeter to see if the voltage toggles with the button. If it
doesn't, you can try address 0x9400. Good luck.

-- 
Kirk Wallace (California, USA
http://www.wallacecompany.com/machine_shop/ 
Hardinge HNC/EMC CNC lathe,
Bridgeport mill conversion, doing XY now,
Zubal lathe conversion pending
Craftsman AA 109 restoration
Shizuoka ST-N/EMC CNC)


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread aaron Moore
Thanks or very detailed reply. I will try it later today.  One thing...I am 
using steppers, do I need to run the functions for the servo threads?

Thanks again
Aaron

 - Original Message -
 From: Kirk Wallace [EMAIL PROTECTED]
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Installing a second parallel port
 Date: Thu, 12 Jun 2008 00:56:00 -0700
 
 
 On Thu, 2008-06-12 at 06:11 +, aaron Moore wrote:
  Hi
  You guys are going to haveto hold my hand here
  I run lspci -v and I get..
  :00:06.0 Parallel controller: Timedia Technology Co Ltd: 
  Unknown device 7268 (rev 01) (prog-if 02 [ECP])
  Subsystem: Timedia Technology Co Ltd: Unknown device 0103
  Flags: stepping, medium devsel, IRQ 9
  I/O ports at 9000 [size=8]
  I/O ports at 9400 [size=8]
  which is the address and where do I find the hal file to put it in
 
  Thanks
  Aaron
 
 When you start EMC, which configuration do you chose? The .hal file for
 that configuration is most likely in your home directory
 under .../emc2/configs. So, something like:
 
 /home/aarons_home/emc2/configs/stepper/stepper.hal
 
 The EMC start screen lists the available configurations based on the
 names of .ini files. The .ini file you choose has a place to set
 which .hal files get loaded. You should open the .ini file and check for
 the HALFILE= lines to see the files names. The lines that start with #
 (comment tag) are commented out, so they don't count. Usually there is
 only one .hal file loaded and its name matches the configuration name.
 To load the parport driver you need to have a line in your .hal file
 like:
 
 loadrt hal_parport cfg=0x9000
 (loads only your PCI parport as parport.0)
 
 or
 
 loadrt hal_parport cfg=0x0378 0x9000
 (loads the motherboard port as parport.0, and the PCI port as parport.1)
 
 This should load the driver and make the functions parport.X.read and
 parport.X.write available to EMC. You need to have EMC run these
 functions in your servo thread by adding to your .hal file:
 
 addf parport.0.read  servo-thread
 addf parport.1.read  servo-thread (if you have a second port)
 (usually at the beginning of the addf lines)
 
 addf parport.0.write servo-thread
 addf parport.1.write servo-thread (if you have a second port)
 (usually at the end of the addf lines)
 
 After EMC starts these functions, you will have the HAL parport pins,
 signals and parameters available. These are listed here:
 
 http://www.linuxcnc.org/docview/html//hal_drivers.html#sec:Parport
 
 Most likely in your case if you loaded only one parport it will be
 parport.0 so to connect the flood coolant button to pin one, you would
 add a line:
 
 net Flood iocontrol.0.coolant-flood = parport.0.pin-01-out
 
 Other iocontrol signals are here:
 
 http://www.linuxcnc.org/docview/html//man/man1/iocontrol.1.html
 
 If you start EMC and toggle the Flood button you can check pin one with
 a voltmeter to see if the voltage toggles with the button. If it
 doesn't, you can try address 0x9400. Good luck.
 
 --
 Kirk Wallace (California, USA
 http://www.wallacecompany.com/machine_shop/
 Hardinge HNC/EMC CNC lathe,
 Bridgeport mill conversion, doing XY now,
 Zubal lathe conversion pending
 Craftsman AA 109 restoration
 Shizuoka ST-N/EMC CNC)
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
Powered by Outblaze

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread Kirk Wallace
On Thu, 2008-06-12 at 08:42 +, aaron Moore wrote:
 Thanks or very detailed reply. I will try it later today.  One thing...I am 
 using steppers, do I need to run the functions for the servo threads?
 
 Thanks again
 Aaron

If you are going to use your parport to drive the step and direction
inputs to your stepper drivers, the parport functions will need to be
added to the faster base thread like in this example:

http://cvs.linuxcnc.org/lxr/source/configs/stepper/standard_pinout.hal

I believe the file below needs to be loaded with the standard_pinout.hal
above:

http://cvs.linuxcnc.org/lxr/source/configs/common/core_stepper.hal

and load functions in the base and servo threads that create the signals
that are connected to your parport HAL pins.

More information on your set up might help.

-- 
Kirk Wallace (California, USA
http://www.wallacecompany.com/machine_shop/ 
Hardinge HNC/EMC CNC lathe,
Bridgeport mill conversion, doing XY now,
Zubal lathe conversion pending
Craftsman AA 109 restoration
Shizuoka ST-N/EMC CNC)


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread aaron Moore
Kirk
I have added.. 
loadrt hal_parport cfg=0x9000
addf parport.0.read  servo-thread
addf parport.0.write servo-thread
to my hal file (hopefully in the right places).  Can I not configure the pins 
through the step config wizard?
Aaron
 - Original Message -
 From: Kirk Wallace [EMAIL PROTECTED]
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Installing a second parallel port
 Date: Thu, 12 Jun 2008 00:56:00 -0700
 
 
 On Thu, 2008-06-12 at 06:11 +, aaron Moore wrote:
  Hi
  You guys are going to haveto hold my hand here
  I run lspci -v and I get..
  :00:06.0 Parallel controller: Timedia Technology Co Ltd: 
  Unknown device 7268 (rev 01) (prog-if 02 [ECP])
  Subsystem: Timedia Technology Co Ltd: Unknown device 0103
  Flags: stepping, medium devsel, IRQ 9
  I/O ports at 9000 [size=8]
  I/O ports at 9400 [size=8]
  which is the address and where do I find the hal file to put it in
 
  Thanks
  Aaron
 
 When you start EMC, which configuration do you chose? The .hal file for
 that configuration is most likely in your home directory
 under .../emc2/configs. So, something like:
 
 /home/aarons_home/emc2/configs/stepper/stepper.hal
 
 The EMC start screen lists the available configurations based on the
 names of .ini files. The .ini file you choose has a place to set
 which .hal files get loaded. You should open the .ini file and check for
 the HALFILE= lines to see the files names. The lines that start with #
 (comment tag) are commented out, so they don't count. Usually there is
 only one .hal file loaded and its name matches the configuration name.
 To load the parport driver you need to have a line in your .hal file
 like:
 
 loadrt hal_parport cfg=0x9000
 (loads only your PCI parport as parport.0)
 
 or
 
 loadrt hal_parport cfg=0x0378 0x9000
 (loads the motherboard port as parport.0, and the PCI port as parport.1)
 
 This should load the driver and make the functions parport.X.read and
 parport.X.write available to EMC. You need to have EMC run these
 functions in your servo thread by adding to your .hal file:
 
 addf parport.0.read  servo-thread
 addf parport.1.read  servo-thread (if you have a second port)
 (usually at the beginning of the addf lines)
 
 addf parport.0.write servo-thread
 addf parport.1.write servo-thread (if you have a second port)
 (usually at the end of the addf lines)
 
 After EMC starts these functions, you will have the HAL parport pins,
 signals and parameters available. These are listed here:
 
 http://www.linuxcnc.org/docview/html//hal_drivers.html#sec:Parport
 
 Most likely in your case if you loaded only one parport it will be
 parport.0 so to connect the flood coolant button to pin one, you would
 add a line:
 
 net Flood iocontrol.0.coolant-flood = parport.0.pin-01-out
 
 Other iocontrol signals are here:
 
 http://www.linuxcnc.org/docview/html//man/man1/iocontrol.1.html
 
 If you start EMC and toggle the Flood button you can check pin one with
 a voltmeter to see if the voltage toggles with the button. If it
 doesn't, you can try address 0x9400. Good luck.
 
 --
 Kirk Wallace (California, USA
 http://www.wallacecompany.com/machine_shop/
 Hardinge HNC/EMC CNC lathe,
 Bridgeport mill conversion, doing XY now,
 Zubal lathe conversion pending
 Craftsman AA 109 restoration
 Shizuoka ST-N/EMC CNC)
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




-- 
Powered by Outblaze

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread Stephen Wille Padnos
aaron Moore wrote:

Kirk
I have added.. 
loadrt hal_parport cfg=0x9000
addf parport.0.read  servo-thread
addf parport.0.write servo-thread
to my hal file (hopefully in the right places).  Can I not configure the pins 
through the step config wizard?
  

No, you can't use stepconf to configure this.  Stepconf is intended to 
make it easy to set up simple machines, or to provide a starting point 
for more complex machines.  When you get to the need for multiple 
parallel ports or other hardware interfaces, the number of options grows 
so large that stepconf would no longer be easy to use if it were to 
support all that.

You can learn about how HAL is configured behind the scenes by looking 
at the HAL sections of EMC2 manual, and looking at the .hal file that 
stepconf generated.  It's pretty easy to get going, the hardest part is 
remembering that you're free to do just about anything :)

- Steve


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread Greg Michalski
This is where Stepconf can help the someone less versed in the config files
though - you can make multiple machine setups and then go through the .hal
and .ini files and marry the two together to get the results you want
without really having to know the details of the hal and ini files.  

I created my benchtop mill setup with stepconf on the motherboard parport,
then when I wanted to add a second port I made another mill configuration
that only had the items I wanted (the limits and other sensors, a few output
controls) and then just took those pin assignments and changed the parport.0
to parport.1 and pasted into my benchtop config file - saved a lot of time
and guessing.  The hardest part was getting the addresses correct for two
ports - I think for my card I have 3 addresses loaded but it only creates 2
ports - I forget where I got that hint from but the card needed 2 addresses
to fully address everything.  When I go home tonight maybe I can remember to
offload a copy of my config file and post the header to give you some help.

Greg Michalski
www.distinctperspectives.com

Kirk
I have added.. 
loadrt hal_parport cfg=0x9000
addf parport.0.read  servo-thread
addf parport.0.write servo-thread
to my hal file (hopefully in the right places).  Can I not configure the
pins through the step config wizard?
  

No, you can't use stepconf to configure this.  Stepconf is intended to 
make it easy to set up simple machines, or to provide a starting point 
for more complex machines.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-12 Thread Alan Condit

Aaron,

Since you indicated that you are adding a second port you need both  
ports in your config statement:


loadrt hal_parport cfg=0x0378 0x9000

Here is how I set up my reads and writes: (not using steppers  
requires adding them to the base-thread not the servo-thread).


# next connect the parport functions to threads
# read inputs first
addf parport.0.read base-thread 1
addf parport.1.read base-thread 2
# hook functions to base thread (high speed thread for step generation)
addf stepgen.make-pulses base-thread
# write outputs last
addf parport.0.write base-thread -1
addf parport.1.write base-thread -1
# The following two lines are needed if you are running Double step
addf parport.0.reset base-thread
addf parport.1.reset base-thread

Alan

---

Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071

Email -- [EMAIL PROTECTED]
Home-Office (503) 982-0906

On Jun 12, 2008, at Jun 12, 2008--5:44 PM, emc-users- 
[EMAIL PROTECTED] wrote:



Kirk
I have added..
loadrt hal_parport cfg=0x9000
addf parport.0.read  servo-thread
addf parport.0.write servo-thread
to my hal file (hopefully in the right places).  Can I not  
configure the pins through the step config wizard?

Aaron

- Original Message -
From: Kirk Wallace [EMAIL PROTECTED]
To: Enhanced Machine Controller (EMC) emc- 
[EMAIL PROTECTED]

Subject: Re: [Emc-users] Installing a second parallel port
Date: Thu, 12 Jun 2008 00:56:00 -0700


On Thu, 2008-06-12 at 06:11 +, aaron Moore wrote:

Hi
You guys are going to haveto hold my hand here
I run lspci -v and I get..
:00:06.0 Parallel controller: Timedia Technology Co Ltd:
Unknown device 7268 (rev 01) (prog-if 02 [ECP])
Subsystem: Timedia Technology Co Ltd: Unknown device 0103
Flags: stepping, medium devsel, IRQ 9
I/O ports at 9000 [size=8]
I/O ports at 9400 [size=8]
which is the address and where do I find the hal file to put it in

Thanks
Aaron





-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-11 Thread Jack
for the port, if it is a PCI or newer card, it will probably just work.
Some old ISA and earlier cards had to be jumppered, but instructions came
with them. 

Now 'just work' is another issue.  The board can work, but you still have
some HAL 
configuration to do to let EMC know how to deal.

I hope that helps!

--
 Predictions Are Difficult.Especially When They Are About The Future
   Niels Bohr
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of aaron Moore
Sent: Wednesday, June 11, 2008 3:48 PM
To: EMC userslist
Subject: [Emc-users] Installing a second parallel port

Hi
Can some one tell me what I need to do to install a second parallel port
apart from physically plugging it into the computer or will it just 'plug
and play'
Thanks for any help in this.
Aaron

--
Powered by Outblaze

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-11 Thread Ed
aaron Moore wrote:
 Hi
 Can some one tell me what I need to do to install a second parallel port 
 apart from physically plugging it into the computer or will it 
 just 'plug and play'
 Thanks for any help in this.
 Aaron
 


Check back in the archives to about the sixth (five days ago).

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing a second parallel port

2008-06-11 Thread Alan Condit

Aaron,

I bought my 2 parallel port pci card from Newegg.  It is uses a  
netmos nm9815cv chip.


After physically plugging it into the computer, I ran lspci -v from  
a terminal window to locate the port addresses. Thus far it was just  
plug and play.
The next step is to edit the .hal file. You need add the port  
address to the hal_parport config statement and to add read and write  
functions to the appropriate thread (since I am running steppers it  
was the base-thread). Then you need to add the pin and signal  
connections to do what ever provoked the need for a second port.


Alan

---

Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071

Email -- [EMAIL PROTECTED]
Home-Office (503) 982-0906

On Jun 11, 2008, at Jun 11, 2008--1:59 PM, emc-users- 
[EMAIL PROTECTED] wrote:

From: aaron Moore [EMAIL PROTECTED]
Date: Wednesday2008June 11 Wednesday2008June 111:48:15 PM PDT
To: EMC userslist emc-users@lists.sourceforge.net
Subject: [Emc-users] Installing a second parallel port
Reply-To: Enhanced Machine Controller \(EMC\) emc- 
[EMAIL PROTECTED]



Hi
Can some one tell me what I need to do to install a second parallel  
port apart from physically plugging it into the computer or will it

just 'plug and play'
Thanks for any help in this.
Aaron




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users