On Thu, 2008-06-12 at 06:11 +0000, aaron Moore wrote:
> Hi
> You guys are going to haveto hold my hand here
> I run lspci -v and I get..
> 0000: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

Reply via email to