Re: [Emc-users] 8255 driver
I reloaded the pci_8255 driver and commented out the ax. Now it shows 72 i/o pins in hal show. I still had no luck seeing inputs change states. Just an update. Dave - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Saturday, May 03, 2008 11:48 PM Subject: Re: [Emc-users] 8255 driver I tried a switch and resistor as shown in the NI manual. I set all of the 48 pins to input before I did this in the hal file. Using hal show/watch I couldn't see any change in the pin status for all of the 48 pins. Could this be an address issue? the pci address for the DIO 96 is showing as ff0. My board doesn't have a jumper W1. The manual for it covers 3 different boards. It is my understanding that if the hardware is not there then the pins won't show at all in hal. Could this driver be somewhat different? If addressing is this issue how do determine what to put in the loadrt command? Thank you for your help, Dave - Original Message - From: Dave Engvall [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Saturday, May 03, 2008 12:27 PM Subject: Re: [Emc-users] 8255 driver By default the outputs of the 8255 are pulled high by a 100K resistor. Jumper W1 will flip that. See pages 3-11,12 of the manual. Dave On May 3, 2008, at 7:27 AM, [EMAIL PROTECTED] wrote: Hi Dave. Fascinating experiment. The ax driver is intended for a 48 IO ISA card but I'd hook up a switch to one of the inputs and see if it changes in the HAL. If it does then we can look into that iioo config stuff and see if we can expand. I'd try the switch on several of the inputs. One for each set of 8 inputs. You need pull up or pull down resistors depending on the nature of your board. In my early experiments with this stuff I was able to lock up the PC while doing some of this stuff. Don't be surprised if your's does. Rayh --- [EMAIL PROTECTED] wrote: From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Subject: Re: [Emc-users] 8255 driver Date: Sat, 3 May 2008 09:08:23 -0400 Make that 48 I/O points instead of 56 - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Saturday, May 03, 2008 8:57 AM Subject: Re: [Emc-users] 8255 driver So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http
Re: [Emc-users] 8255 driver
So, am I correct in assuming that the card does not have to be there for hal to load the driver for the pins? Everything is in hal show as it should be except I don't have the card in..I take it we are probably going to have to write a driver here? I am not a C programmer but I'll try anything once... Thanks Jeff, Dave - Original Message - From: Jeff Epler [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, May 04, 2008 9:39 AM Subject: Re: [Emc-users] 8255 driver On Sun, May 04, 2008 at 08:54:02AM -0400, Dave Keeton wrote: I reloaded the pci_8255 driver and commented out the ax. Now it shows 72 i/o pins in hal show. I still had no luck seeing inputs change states. Just an update. The so-called pci_8255 driver in emc is *only* for the futurlec card with 3 8255 chips and a tiger-320 PCI bridge. It will not work without modification on any other type of card. (and according to user reports, not even that card works when any of the ports are set to input mode) Jeff - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
So is there anyone who might be interested in helping with a driver? I just need some pushing in the right direction Dave - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, May 04, 2008 10:09 AM Subject: Re: [Emc-users] 8255 driver So, am I correct in assuming that the card does not have to be there for hal to load the driver for the pins? Everything is in hal show as it should be except I don't have the card in..I take it we are probably going to have to write a driver here? I am not a C programmer but I'll try anything once... Thanks Jeff, Dave - Original Message - From: Jeff Epler [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Sunday, May 04, 2008 9:39 AM Subject: Re: [Emc-users] 8255 driver On Sun, May 04, 2008 at 08:54:02AM -0400, Dave Keeton wrote: I reloaded the pci_8255 driver and commented out the ax. Now it shows 72 i/o pins in hal show. I still had no luck seeing inputs change states. Just an update. The so-called pci_8255 driver in emc is *only* for the futurlec card with 3 8255 chips and a tiger-320 PCI bridge. It will not work without modification on any other type of card. (and according to user reports, not even that card works when any of the ports are set to input mode) Jeff - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Make that 48 I/O points instead of 56 - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Saturday, May 03, 2008 8:57 AM Subject: Re: [Emc-users] 8255 driver So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Hi Dave. Fascinating experiment. The ax driver is intended for a 48 IO ISA card but I'd hook up a switch to one of the inputs and see if it changes in the HAL. If it does then we can look into that iioo config stuff and see if we can expand. I'd try the switch on several of the inputs. One for each set of 8 inputs. You need pull up or pull down resistors depending on the nature of your board. In my early experiments with this stuff I was able to lock up the PC while doing some of this stuff. Don't be surprised if your's does. Rayh --- [EMAIL PROTECTED] wrote: From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: Re: [Emc-users] 8255 driver Date: Sat, 3 May 2008 09:08:23 -0400 Make that 48 I/O points instead of 56 - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Saturday, May 03, 2008 8:57 AM Subject: Re: [Emc-users] 8255 driver So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http
Re: [Emc-users] 8255 driver
Dave, that driver is for a 48 i/o thats all there is on the AX card ( 2 8255 chips) the Futurlec ( pci_8255) has 3 chips thus the diff in i/o points tomp - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
By default the outputs of the 8255 are pulled high by a 100K resistor. Jumper W1 will flip that. See pages 3-11,12 of the manual. Dave On May 3, 2008, at 7:27 AM, [EMAIL PROTECTED] wrote: Hi Dave. Fascinating experiment. The ax driver is intended for a 48 IO ISA card but I'd hook up a switch to one of the inputs and see if it changes in the HAL. If it does then we can look into that iioo config stuff and see if we can expand. I'd try the switch on several of the inputs. One for each set of 8 inputs. You need pull up or pull down resistors depending on the nature of your board. In my early experiments with this stuff I was able to lock up the PC while doing some of this stuff. Don't be surprised if your's does. Rayh --- [EMAIL PROTECTED] wrote: From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Subject: Re: [Emc-users] 8255 driver Date: Sat, 3 May 2008 09:08:23 -0400 Make that 48 I/O points instead of 56 - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Saturday, May 03, 2008 8:57 AM Subject: Re: [Emc-users] 8255 driver So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- --- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc
Re: [Emc-users] 8255 driver
I tried a switch and resistor as shown in the NI manual. I set all of the 48 pins to input before I did this in the hal file. Using hal show/watch I couldn't see any change in the pin status for all of the 48 pins. Could this be an address issue? the pci address for the DIO 96 is showing as ff0. My board doesn't have a jumper W1. The manual for it covers 3 different boards. It is my understanding that if the hardware is not there then the pins won't show at all in hal. Could this driver be somewhat different? If addressing is this issue how do determine what to put in the loadrt command? Thank you for your help, Dave - Original Message - From: Dave Engvall [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Saturday, May 03, 2008 12:27 PM Subject: Re: [Emc-users] 8255 driver By default the outputs of the 8255 are pulled high by a 100K resistor. Jumper W1 will flip that. See pages 3-11,12 of the manual. Dave On May 3, 2008, at 7:27 AM, [EMAIL PROTECTED] wrote: Hi Dave. Fascinating experiment. The ax driver is intended for a 48 IO ISA card but I'd hook up a switch to one of the inputs and see if it changes in the HAL. If it does then we can look into that iioo config stuff and see if we can expand. I'd try the switch on several of the inputs. One for each set of 8 inputs. You need pull up or pull down resistors depending on the nature of your board. In my early experiments with this stuff I was able to lock up the PC while doing some of this stuff. Don't be surprised if your's does. Rayh --- [EMAIL PROTECTED] wrote: From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Subject: Re: [Emc-users] 8255 driver Date: Sat, 3 May 2008 09:08:23 -0400 Make that 48 I/O points instead of 56 - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Saturday, May 03, 2008 8:57 AM Subject: Re: [Emc-users] 8255 driver So here is what I have done.(Recommended by another user) The pci_8255 showed up in both components and functions but nothing in pins under Hal Configuration. So I commented it out and did this... In the m5i20_io.hal file - loadrt hal_ax5214h cfg=0x220_iiooiioo(Copied from demo_mazak) Now I show 56 I/O points in Hal Configuration and Hal Meter under pins.Does this mean it worked I assume? Do I have to modify the driver to get the remainder of the I/O points in pins? Do I need to go ahead and hook up a switch or led to confirm? Thanks, Dave - Original Message - From: Kirk Wallace [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Friday, May 02, 2008 10:31 PM Subject: Re: [Emc-users] 8255 driver On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss
Re: [Emc-users] 8255 driver
So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Thursday, May 01, 2008 4:42 PM Subject: Re: [Emc-users] 8255 driver Well, I looked through the list of drivers and found the ones you are discussing. I will try them when the board arrives. After researching it a bit and looking at the board specs, It is an 8255 pci board. Is the hal driver for the 8255 limited on the I/O? I would like to access all 96 bits of my board if I can... Thanks, Dave - Original Message - From: John Kasunich [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, April 30, 2008 5:28 PM Subject: Re: [Emc-users] 8255 driver Dave Keeton wrote: So do I load the Linux driver for the NI PCI 96 I/O that I downloaded from Nation Instruments, or is this not the driver I need? I am not at all up to speed with doing this on linux/EMC! (Windows GEEK) How would I call the driver, Is it the same way you do for the hardware in the supported hardware list? Dave You do not use the National Instruments driver. EMC2 uses HAL (Hardware Abstraction Layer) to access hardware. You need a HAL driver for the board. EMC2 includes quite a few HAL drivers, there have been two mentioned in this thread that might work for that board, or that might be suitable as the start of a driver for that board. Regards, John Kasunich - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
On Fri, 2008-05-02 at 21:36 -0400, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave If you look in the Integrator's Manual: http://www.linuxcnc.org/docs/EMC2_Integrator_Manual.pdf chapter four indicates that the [HAL] section of the .ini file for the configuration you are running, has an entry(ies) called HALFILE =. These HALFILE ='s will list the .hal files that are part of the initialization for starting your configuration in EMC2. One of these files will have loadrt somedriver and_options in it. You will need a loadrt entry for your 8255, plus an entry to add the driver to a thread, something like addf somedriver name_of_thread. You can do a Find for addf in the manual to get more information. If you start EMC2 and if the driver loads properly, you should be able to start Halmeter and see the new Hal pins in the pin list. -- 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) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
The so-called pci_8255 driver in emc is *only* for the futurlec card with 3 8255 chips and a tiger-320 PCI bridge. It will not work without modification on any other type of card. (and according to user reports, not even that card works when any of the ports are set to input mode) Jeff - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
I just took a quick look but this may help. http://www.ni.com/pdf/manuals/374938a.pdf Dave On May 2, 2008, at 6:36 PM, Dave Keeton wrote: So I have installed the PCI-DIO-96 board in the computer.Ubuntu picked it up in the Device manager and called it by name.How do I go about loading the pci_8255 hal driver, What file do I modify in the config directory, How do I know if EMC2 sees the board and its I/O points? Dave - Original Message - From: Dave Keeton [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Thursday, May 01, 2008 4:42 PM Subject: Re: [Emc-users] 8255 driver Well, I looked through the list of drivers and found the ones you are discussing. I will try them when the board arrives. After researching it a bit and looking at the board specs, It is an 8255 pci board. Is the hal driver for the 8255 limited on the I/O? I would like to access all 96 bits of my board if I can... Thanks, Dave - Original Message - From: John Kasunich [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc- [EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 5:28 PM Subject: Re: [Emc-users] 8255 driver Dave Keeton wrote: So do I load the Linux driver for the NI PCI 96 I/O that I downloaded from Nation Instruments, or is this not the driver I need? I am not at all up to speed with doing this on linux/EMC! (Windows GEEK) How would I call the driver, Is it the same way you do for the hardware in the supported hardware list? Dave You do not use the National Instruments driver. EMC2 uses HAL (Hardware Abstraction Layer) to access hardware. You need a HAL driver for the board. EMC2 includes quite a few HAL drivers, there have been two mentioned in this thread that might work for that board, or that might be suitable as the start of a driver for that board. Regards, John Kasunich - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- --- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Well, I looked through the list of drivers and found the ones you are discussing. I will try them when the board arrives. After researching it a bit and looking at the board specs, It is an 8255 pci board. Is the hal driver for the 8255 limited on the I/O? I would like to access all 96 bits of my board if I can... Thanks, Dave - Original Message - From: John Kasunich [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, April 30, 2008 5:28 PM Subject: Re: [Emc-users] 8255 driver Dave Keeton wrote: So do I load the Linux driver for the NI PCI 96 I/O that I downloaded from Nation Instruments, or is this not the driver I need? I am not at all up to speed with doing this on linux/EMC! (Windows GEEK) How would I call the driver, Is it the same way you do for the hardware in the supported hardware list? Dave You do not use the National Instruments driver. EMC2 uses HAL (Hardware Abstraction Layer) to access hardware. You need a HAL driver for the board. EMC2 includes quite a few HAL drivers, there have been two mentioned in this thread that might work for that board, or that might be suitable as the start of a driver for that board. Regards, John Kasunich - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Gene, nothing written by me Jepler (?) wrote pci_8255.c its from cvs some info here http://emergent.unpythonic.net/01165433819 hal_ax5214 is from the live cd John Kasunich wrote that regards tomp ---snip tomp Great Thomas. Is this code you did, or were you able to make the code that came on the cd's with the cards actually build on linux? snip - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
There is an issue with the pci_8255 driver at the moment. If any of the pins are set to inputs - it will hardlock the computer after a certain amount of time. (not really sure as I have not looked at it for a few weeks iirc it seems to be dependent on how many times the input gets switched.) This is something known to the developers and when they get a chance they will fix it. I am sure it will be fixed soon. sam Thomas J Powderly wrote: Gene, nothing written by me Jepler (?) wrote pci_8255.c its from cvs some info here http://emergent.unpythonic.net/01165433819 hal_ax5214 is from the live cd John Kasunich wrote that regards tomp ---snip tomp Great Thomas. Is this code you did, or were you able to make the code that came on the cd's with the cards actually build on linux? snip - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
On Wednesday 30 April 2008, sam sokolik wrote: There is an issue with the pci_8255 driver at the moment. If any of the pins are set to inputs - it will hardlock the computer after a certain amount of time. (not really sure as I have not looked at it for a few weeks iirc it seems to be dependent on how many times the input gets switched.) This is something known to the developers and when they get a chance they will fix it. I am sure it will be fixed soon. sam That chip generates an IRQ for any input status change, and if there is not a registered IRQ handler, boom! I recall that back in the 80's when I used one of them to build an eprom programmer. At the time I was driving it with a z-80, a dain bramaged chip IMO. The IRQ handler turned out to be very simple, read the register throw it away. I was using all bit lines, but apparently there was a small glitch in the write to verify read switching that triggered it. That read was garbage, the next one 2 u-s later was good. Thomas J Powderly wrote: Gene, nothing written by me Jepler (?) wrote pci_8255.c its from cvs some info here http://emergent.unpythonic.net/01165433819 hal_ax5214 is from the live cd John Kasunich wrote that regards tomp ---snip tomp Great Thomas. Is this code you did, or were you able to make the code that came on the cd's with the cards actually build on linux? snip - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav aone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) You will be imprisoned for contributing your time and skill to a bank robbery. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
By the way... Got I/O? ;) 8 bit IN FALSE pci8255.0.0.a0 8 bit IN FALSE pci8255.0.0.a1 8 bit IN FALSE pci8255.0.0.a2 8 bit IN FALSE pci8255.0.0.a3 8 bit IN FALSE pci8255.0.0.a4 8 bit IN FALSE pci8255.0.0.a5 8 bit IN FALSE pci8255.0.0.a6 8 bit IN FALSE pci8255.0.0.a7 8 bit IN FALSE pci8255.0.0.b0 8 bit IN FALSE pci8255.0.0.b1 8 bit IN FALSE pci8255.0.0.b2 8 bit IN FALSE pci8255.0.0.b3 8 bit IN FALSE pci8255.0.0.b4 8 bit IN FALSE pci8255.0.0.b5 8 bit IN FALSE pci8255.0.0.b6 8 bit IN FALSE pci8255.0.0.b7 8 bit IN FALSE pci8255.0.0.c0 8 bit IN FALSE pci8255.0.0.c1 8 bit IN FALSE pci8255.0.0.c2 8 bit IN FALSE pci8255.0.0.c3 8 bit IN FALSE pci8255.0.0.c4 8 bit IN FALSE pci8255.0.0.c5 8 bit IN FALSE pci8255.0.0.c6 8 bit IN FALSE pci8255.0.0.c7 8 bit OUT FALSE pci8255.0.1.a0 8 bit OUT FALSE pci8255.0.1.a0-not 8 bit OUT FALSE pci8255.0.1.a1 8 bit OUT FALSE pci8255.0.1.a1-not 8 bit OUT FALSE pci8255.0.1.a2 8 bit OUT FALSE pci8255.0.1.a2-not 8 bit OUT FALSE pci8255.0.1.a3 8 bit OUT FALSE pci8255.0.1.a3-not 8 bit OUT FALSE pci8255.0.1.a4 8 bit OUT FALSE pci8255.0.1.a4-not 8 bit OUT FALSE pci8255.0.1.a5 8 bit OUT FALSE pci8255.0.1.a5-not 8 bit OUT FALSE pci8255.0.1.a6 8 bit OUT FALSE pci8255.0.1.a6-not 8 bit OUT FALSE pci8255.0.1.a7 8 bit OUT FALSE pci8255.0.1.a7-not 8 bit OUT FALSE pci8255.0.1.b0 8 bit OUT FALSE pci8255.0.1.b0-not 8 bit OUT FALSE pci8255.0.1.b1 8 bit OUT FALSE pci8255.0.1.b1-not 8 bit OUT FALSE pci8255.0.1.b2 8 bit OUT FALSE pci8255.0.1.b2-not 8 bit OUT FALSE pci8255.0.1.b3 8 bit OUT FALSE pci8255.0.1.b3-not 8 bit OUT FALSE pci8255.0.1.b4 8 bit OUT FALSE pci8255.0.1.b4-not 8 bit OUT FALSE pci8255.0.1.b5 8 bit OUT FALSE pci8255.0.1.b5-not 8 bit OUT FALSE pci8255.0.1.b6 8 bit OUT FALSE pci8255.0.1.b6-not 8 bit OUT FALSE pci8255.0.1.b7 8 bit OUT FALSE pci8255.0.1.b7-not 8 bit OUT FALSE pci8255.0.1.c0 8 bit OUT FALSE pci8255.0.1.c0-not 8 bit OUT FALSE pci8255.0.1.c1 8 bit OUT FALSE pci8255.0.1.c1-not 8 bit OUT FALSE pci8255.0.1.c2 8 bit OUT FALSE pci8255.0.1.c2-not 8 bit OUT FALSE pci8255.0.1.c3 8 bit OUT FALSE pci8255.0.1.c3-not 8 bit OUT FALSE pci8255.0.1.c4 8 bit OUT FALSE pci8255.0.1.c4-not 8 bit OUT FALSE pci8255.0.1.c5 8 bit OUT FALSE pci8255.0.1.c5-not 8 bit OUT FALSE pci8255.0.1.c6 8 bit OUT FALSE pci8255.0.1.c6-not 8 bit OUT FALSE pci8255.0.1.c7 8 bit OUT FALSE pci8255.0.1.c7-not 8 bit OUT FALSE pci8255.0.2.a0 8 bit OUT FALSE pci8255.0.2.a0-not 8 bit OUT FALSE pci8255.0.2.a1 8 bit OUT FALSE pci8255.0.2.a1-not 8 bit OUT FALSE pci8255.0.2.a2 8 bit OUT FALSE pci8255.0.2.a2-not 8 bit OUT FALSE pci8255.0.2.a3 8 bit OUT FALSE pci8255.0.2.a3-not 8 bit OUT FALSE pci8255.0.2.a4 8 bit OUT FALSE pci8255.0.2.a4-not 8 bit OUT FALSE pci8255.0.2.a5 8 bit OUT FALSE pci8255.0.2.a5-not 8 bit OUT FALSE pci8255.0.2.a6 8 bit OUT FALSE pci8255.0.2.a6-not 8 bit OUT FALSE pci8255.0.2.a7 8 bit OUT FALSE pci8255.0.2.a7-not 8 bit OUT FALSE pci8255.0.2.b0 8 bit OUT FALSE pci8255.0.2.b0-not 8 bit OUT FALSE pci8255.0.2.b1 8 bit OUT FALSE pci8255.0.2.b1-not 8 bit OUT FALSE pci8255.0.2.b2 8 bit OUT FALSE pci8255.0.2.b2-not 8 bit OUT FALSE pci8255.0.2.b3 8 bit OUT FALSE pci8255.0.2.b3-not 8 bit OUT FALSE pci8255.0.2.b4 8 bit OUT FALSE pci8255.0.2.b4-not 8 bit OUT FALSE pci8255.0.2.b5 8 bit OUT FALSE pci8255.0.2.b5-not 8 bit OUT FALSE pci8255.0.2.b6 8 bit OUT FALSE pci8255.0.2.b6-not 8 bit OUT
Re: [Emc-users] 8255 driver
Sam, On the pci_8255 hal show pin you listed, did that configuration lock up? it had several inputs. re: By the way... Got I/O? ;) re: If any of the pins are set to inputs - it will hardlock the computer after a certain amount of time. thanks for looking into it TomP - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Yes.. After I added the read funtction to the servo thread. Locked up almost instantly this time... had enough time to open a halmeter and pick the pci8255.0.1.a0 pin. As I was fumbling to set the pin high.. it locked up. This is running trunk. Thomas J Powderly wrote: Sam, On the pci_8255 hal show pin you listed, did that configuration lock up? it had several inputs. re: By the way... Got I/O? ;) re: If any of the pins are set to inputs - it will hardlock the computer after a certain amount of time. thanks for looking into it TomP - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
So do I load the Linux driver for the NI PCI 96 I/O that I downloaded from Nation Instruments, or is this not the driver I need? I am not at all up to speed with doing this on linux/EMC! (Windows GEEK) How would I call the driver, Is it the same way you do for the hardware in the supported hardware list? Dave - Original Message - From: sam sokolik [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Wednesday, April 30, 2008 2:14 PM Subject: Re: [Emc-users] 8255 driver Yes.. After I added the read funtction to the servo thread. Locked up almost instantly this time... had enough time to open a halmeter and pick the pci8255.0.1.a0 pin. As I was fumbling to set the pin high.. it locked up. This is running trunk. Thomas J Powderly wrote: Sam, On the pci_8255 hal show pin you listed, did that configuration lock up? it had several inputs. re: By the way... Got I/O? ;) re: If any of the pins are set to inputs - it will hardlock the computer after a certain amount of time. thanks for looking into it TomP - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Dave Keeton wrote: So do I load the Linux driver for the NI PCI 96 I/O that I downloaded from Nation Instruments, or is this not the driver I need? I am not at all up to speed with doing this on linux/EMC! (Windows GEEK) How would I call the driver, Is it the same way you do for the hardware in the supported hardware list? Dave You do not use the National Instruments driver. EMC2 uses HAL (Hardware Abstraction Layer) to access hardware. You need a HAL driver for the board. EMC2 includes quite a few HAL drivers, there have been two mentioned in this thread that might work for that board, or that might be suitable as the start of a driver for that board. Regards, John Kasunich - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
Gene, pci_8255 is in my cvs emc2 run-in-place installation pci_8255.c pci_8255.o and i think the hal_ax5214h.c driver in all emc2 installs is really an 8255 (the src doesnt say that, so may be wrong) tomp in On Tue, 2008-04-29 at 22:56 -0400, Gene Heskett wrote: On Tuesday 29 April 2008, Andrew Ayre wrote: Wow - 8255s - I didn't know those were still used for commercial products. Small correction, 82C55's, the cmos versions, so the board doesn't draw much more power than is consumed by any outputs being pulled high. Each line is limited to about a 2 mill load, but can pull rail to rail both directions. I had some of them once, sent them someplace that was gonna write a linux driver. I tried to write one myself, and found I knew very little about 'PC' architecture. The card contains no bios AFAIK, so its invisible to an lspci listing. Once a linux driver is available, I think they would make a very nice interface for emc's use. With all 24 lines available on each chip, the i/o expansion possibilities sure beat the usual parport, an architecture originally built from the 8255 decades ago. IIRC the actual cabling from each chip was on a 34 pin floppy drive sized cable, so each card gave you 3, 34 pin ribbon cables out of a spare slot opening in the back of the case. One thing I ran into was that while that web site below shows prices in USD, they billed my card in AUD and applied the exchange rate, so I paid about a 20% premium over the quoted price. Quite close to a big buck each at the time, which was about 4, maybe 5 years ago now. I also bought a few of stepper controllers based on the L298 they have, touch them only with a very long pole, there is no current chopper available for current regulation. Andy Dave Keeton wrote: This board looks good! I did just buy a new NI DIO 96 board off of EBAY for 50 bucksIf it does'nt work out I'll check it out. I guess i was completely wrong about the I/O situation. You all have been a big helpHow do I go about setting up the drivers for these boards in EMC? I am not all that familiar with Linux Dave - Original Message - From: Thomas J Powderly [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, April 29, 2008 12:39 PM Subject: Re: [Emc-users] Classicladder to Dave Keeton: http://www.futurlec.com/PCI8255.shtml 79$ US 72 i/o points pci emc2 driver is available, sorta beta regards TomP - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/ja vaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav aone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] 8255 driver
There are two drivers, one for the AX5214 and one for the Futurlec PCI8255 card. They are called hal_ax5214h and pci_8255, respectively. The pci_8255 driver has been included with EMC2 since 2.2.0, the ax5214 driver has been there since before the 2.0.0 release. For either card, you have to supply the base address to the driver, along with a string describing the directions you want the pins to be. AFAIK, the pci_8255 card has a single chip with the PCI bridge and the equivalent of 3 8255 chips in it. The PCI card should be seen and initialized by the BIOS or Linux. Usually there's a BIOS setting for plug-n-play OS or similar. Setting this to no or off makes the BIOS do more initialization than it would otherwise do, so even if Linux doesn't know what the card is, it should at least have its memory and IO regions set up correctly. The Linux kernel does this pretty well anyway - it'll just list unknown cards as unknown vendor / unknown device or similar, but should still set up address regions for those cards. (I know it does this with the Mesa cards, for example) There are only minor differences between the two drivers, but one or the other should work with just about any 8255-based card (or register compatible ones) with minor changes. - Steve Gene Heskett wrote: On Wednesday 30 April 2008, Thomas J Powderly wrote: Gene, pci_8255 is in my cvs emc2 run-in-place installation pci_8255.c pci_8255.o and i think the hal_ax5214h.c driver in all emc2 installs is really an 8255 (the src doesnt say that, so may be wrong) From the looks of the link I found on google, it is a ttl ssi version of a pair of 8255's, for only 48 bits of I/O. If that driver can be expanded to handle 3 'channels' or 'groups', and can have its I/O addressing made compatible with this card, whose I/O addressing IIRC wastes addressing space by not making all 3 chips contiguous, then it might work just fine. Those are the gotcha's I recall from when I was playing with it before giving up and throwing more money at a xylotex kit with 3 motors. tomp Great Thomas. Is this code you did, or were you able to make the code that came on the cd's with the cards actually build on linux? in On Tue, 2008-04-29 at 22:56 -0400, Gene Heskett wrote: On Tuesday 29 April 2008, Andrew Ayre wrote: Wow - 8255s - I didn't know those were still used for commercial products. Small correction, 82C55's, the cmos versions, so the board doesn't draw much more power than is consumed by any outputs being pulled high. Each line is limited to about a 2 mill load, but can pull rail to rail both directions. I had some of them once, sent them someplace that was gonna write a linux driver. I tried to write one myself, and found I knew very little about 'PC' architecture. The card contains no bios AFAIK, so its invisible to an lspci listing. Once a linux driver is available, I think they would make a very nice interface for emc's use. With all 24 lines available on each chip, the i/o expansion possibilities sure beat the usual parport, an architecture originally built from the 8255 decades ago. IIRC the actual cabling from each chip was on a 34 pin floppy drive sized cable, so each card gave you 3, 34 pin ribbon cables out of a spare slot opening in the back of the case. One thing I ran into was that while that web site below shows prices in USD, they billed my card in AUD and applied the exchange rate, so I paid about a 20% premium over the quoted price. Quite close to a big buck each at the time, which was about 4, maybe 5 years ago now. I also bought a few of stepper controllers based on the L298 they have, touch them only with a very long pole, there is no current chopper available for current regulation. Andy Dave Keeton wrote: This board looks good! I did just buy a new NI DIO 96 board off of EBAY for 50 bucksIf it does'nt work out I'll check it out. I guess i was completely wrong about the I/O situation. You all have been a big helpHow do I go about setting up the drivers for these boards in EMC? I am not all that familiar with Linux Dave - Original Message - From: Thomas J Powderly [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Tuesday, April 29, 2008 12:39 PM Subject: Re: [Emc-users] Classicladder to Dave Keeton: http://www.futurlec.com/PCI8255.shtml 79$ US 72 i/o points pci emc2 driver is available, sorta beta regards TomP -- --- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com /ja vaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net
Re: [Emc-users] 8255 driver
On Wednesday 30 April 2008, Stephen Wille Padnos wrote: There are two drivers, one for the AX5214 and one for the Futurlec PCI8255 card. They are called hal_ax5214h and pci_8255, respectively. The pci_8255 driver has been included with EMC2 since 2.2.0, the ax5214 driver has been there since before the 2.0.0 release. TBT Steve, I no longer have the cards, so I never looked. My bad. For either card, you have to supply the base address to the driver, along with a string describing the directions you want the pins to be. AFAIK, the pci_8255 card has a single chip with the PCI bridge and the equivalent of 3 8255 chips in it. The PCI card should be seen and initialized by the BIOS or Linux. Usually there's a BIOS setting for plug-n-play OS or similar. Setting this to no or off makes the BIOS do more initialization than it would otherwise do, so even if Linux doesn't know what the card is, it should at least have its memory and IO regions set up correctly. I wasn't aware that it could be turned off and still boot. I'll have to check that on my box next week, thanks. The Linux kernel does this pretty well anyway - it'll just list unknown cards as unknown vendor / unknown device or similar, but should still set up address regions for those cards. (I know it does this with the Mesa cards, for example) At the time, booting bdi-4.3something, there was zero mention of any such devices in the dmesg or lspci outputs. Completely invisible until you found its magic address and tickled it. The cards I had, were a slightly earlier version that had the 82c55 chips mounted vertically, with the 34 pin headers also vertical, and all the cables could be simply taken directly out a missing card cover opening on the back. Now the 34 pin headers are along the top edge of the card must be folded to point them out of the back of the box. Much messier IMO. If you poke around on that site, there is a pix of the cards I had, but the link to the full page then has the newer card in its pix. There are only minor differences between the two drivers, but one or the other should work with just about any 8255-based card (or register compatible ones) with minor changes. - Steve Thanks Steve, here I had thought this card had fallen off the table and been swept up with the garbage. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) There was a point to this story, but it has temporarily escaped the chronicler's mind. - This line perhaps best sums up the whole book. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users