Re: [Emc-users] Parallel Port Driver Docs

2018-07-11 Thread andy pugh
On 11 July 2018 at 23:01, Joe Hildreth  wrote:

>   I think the driver works just fine.  I agree that the control port is 
> bidirectional.  I would think that the entire control group of pins is set to 
> either output (for modes in and out) and set to input (for mode x).

I think you are right. use_control_in is only set to 1 for X mode
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/drivers/hal_parport.c#L540



-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Parallel Port Driver Docs

2018-07-11 Thread Joe Hildreth
Thank you Andy.

  I think the driver works just fine.  I agree that the control port is 
bidirectional.  I would think that the entire control group of pins is set to 
either output (for modes in and out) and set to input (for mode x).  I am just 
trying to confirm this.  This is why I think there is a typo in the table in 
the docs.  If this is the case, can the documentation be corrected?  Honest, I 
am not trying to be a PITA.  Just trying to prepare accurate information for my 
next tutorial.

Joe Hildreth

- On 11 Jul, 2018, at 16:45, andy pugh bodge...@gmail.com wrote:

> On 11 July 2018 at 21:36, Joe Hildreth  wrote:
> 
> 
>> On this chart or table, it shows for the "in" column that pin 14 is an input
>> pin.  I think this is in error and should be labelled as an output.  To test 
>> my
>> theory, I installed a second PCI PP in a computer and run the stepper config
>> wizard.  I set up the first port as output and the second as input.
>>
>> In both output modes and input modes (for the ports) pin 14 is labelled as an
>> output pin.  This would make sense considering that pins 1, 14, 16 and 17
>> belong to the control group.
> 
> Wikipedia shows pin 14 as bidirectional.
> 
> I can't help feeling that someone else would have noticed by now if
> the parallel port driver didn't work?
> 
> https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/drivers/hal_parport.c#L707
> Shows all the control group being set as inputs or outputs.
> 
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1916
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Parallel Port Driver Docs

2018-07-11 Thread Joe Hildreth
Great article.  Thanks for sharing.

Joe

- On 11 Jul, 2018, at 16:31, John Dammeyer jo...@autoartisans.com wrote:

> I realize it's a tad off topic but I think Bjorn Ekwall wrote the first 
> parallel
> port driver for Linux a long time ago.  I worked with Bjorn in 2000 in the UK.
> Bjorn died from a Heart Attack around 2001.  He was one of the Linux Pioneers.
> https://www.linuxjournal.com/article/5043
> 
> Search for his name and you mostly find a different Bjorn.  Sad that he 
> doesn't
> show up more easily with Google.
> 
> I miss our discussions
> John Dammeyer
> 
> 
>> -Original Message-
>> From: Joe Hildreth [mailto:j...@threerivershospital.com]
>> Sent: July-11-18 1:37 PM
>> To: emc-users
>> Subject: [Emc-users] Parallel Port Driver Docs
>> 
>> Hello all,
>> 
>> I have been working on a series of tutorial videos on YouTube on CNC for
>> the Home Hobbyist.� In the tutorial I am currently working on, I am
>> discussing the parallel port.� I want to give as accurate information as I am
>> able.� My question is about the documentation found at [
>> http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html |
>> http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html ] This
>> documentation primarily talks about adding additional Parallel ports to
>> LCNC.� It states that there are three modes in which LCNC can use a PP.�
>> These are in, out and x.� It also provides a chart showing the pin direction
>> based on the mode that the port is set in.
>> 
>> On this chart or table, it shows for the "in" column that pin 14 is an input
>> pin.� I think this is in error and should be labelled as an output.� To test 
>> my
>> theory, I installed a second PCI PP in a computer and run the stepper config
>> wizard.  I set up the first port as output and the second as input.
>> 
>> In both output modes and input modes (for the ports) pin 14 is labelled as
>> an output pin.� This would make sense considering that pins 1, 14, 16 and 17
>> belong to the control group.
>> 
>> So if this is correct, then the documentation needs to be updated to reflect
>> that.� If I am incorrect, can someone explain why this pin is input when the
>> mode is set to input?
>> 
>> I also understand that in mode x, that the control port (pins 1, 14, 16 and 
>> 17)
>> are set to inputs but at risk because the physical pins on the port may not 
>> be
>> open collector.
>> 
>> If you are interested, the play list for the tutorials can be found here: [
>> https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZp
>> jm |
>> https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZp
>> jm ] I have 9 tutorials there and working on number 10.� The idea behind
>> them is to give enough information over time that a new hobbyist can get
>> into some form of CNC.� Rather than giving specific case examples, I want
>> the information to be applicable to whatever they are wanting to set up.�
>> Router, mill, plasma, lathe, 3D printer or whatever.� Constructive criticism
>> is welcome, but I do give a disclaimer.� I am not a teacher, engineer or a
>> machinist.� Just a home hobbyist who wants to give back to the community.
>> 
>> Thanks for your help and input.� It is greatly appreciated.
>> 
>> Joe Hildreth
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Parallel Port Driver Docs

2018-07-11 Thread andy pugh
On 11 July 2018 at 21:36, Joe Hildreth  wrote:


> On this chart or table, it shows for the "in" column that pin 14 is an input 
> pin.  I think this is in error and should be labelled as an output.  To test 
> my theory, I installed a second PCI PP in a computer and run the stepper 
> config wizard.  I set up the first port as output and the second as input.
>
> In both output modes and input modes (for the ports) pin 14 is labelled as an 
> output pin.  This would make sense considering that pins 1, 14, 16 and 17 
> belong to the control group.

Wikipedia shows pin 14 as bidirectional.

I can't help feeling that someone else would have noticed by now if
the parallel port driver didn't work?

https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/drivers/hal_parport.c#L707
Shows all the control group being set as inputs or outputs.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Parallel Port Driver Docs

2018-07-11 Thread John Dammeyer
I realize it's a tad off topic but I think Bjorn Ekwall wrote the first 
parallel port driver for Linux a long time ago.  I worked with Bjorn in 2000 in 
the UK.  Bjorn died from a Heart Attack around 2001.  He was one of the Linux 
Pioneers.
https://www.linuxjournal.com/article/5043

Search for his name and you mostly find a different Bjorn.  Sad that he doesn't 
show up more easily with Google.

I miss our discussions
John Dammeyer


> -Original Message-
> From: Joe Hildreth [mailto:j...@threerivershospital.com]
> Sent: July-11-18 1:37 PM
> To: emc-users
> Subject: [Emc-users] Parallel Port Driver Docs
> 
> Hello all,
> 
> I have been working on a series of tutorial videos on YouTube on CNC for
> the Home Hobbyist.� In the tutorial I am currently working on, I am
> discussing the parallel port.� I want to give as accurate information as I am
> able.� My question is about the documentation found at [
> http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html |
> http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html ] This
> documentation primarily talks about adding additional Parallel ports to
> LCNC.� It states that there are three modes in which LCNC can use a PP.�
> These are in, out and x.� It also provides a chart showing the pin direction
> based on the mode that the port is set in.
> 
> On this chart or table, it shows for the "in" column that pin 14 is an input
> pin.� I think this is in error and should be labelled as an output.� To test 
> my
> theory, I installed a second PCI PP in a computer and run the stepper config
> wizard.  I set up the first port as output and the second as input.
> 
> In both output modes and input modes (for the ports) pin 14 is labelled as
> an output pin.� This would make sense considering that pins 1, 14, 16 and 17
> belong to the control group.
> 
> So if this is correct, then the documentation needs to be updated to reflect
> that.� If I am incorrect, can someone explain why this pin is input when the
> mode is set to input?
> 
> I also understand that in mode x, that the control port (pins 1, 14, 16 and 
> 17)
> are set to inputs but at risk because the physical pins on the port may not be
> open collector.
> 
> If you are interested, the play list for the tutorials can be found here: [
> https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZp
> jm |
> https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZp
> jm ] I have 9 tutorials there and working on number 10.� The idea behind
> them is to give enough information over time that a new hobbyist can get
> into some form of CNC.� Rather than giving specific case examples, I want
> the information to be applicable to whatever they are wanting to set up.�
> Router, mill, plasma, lathe, 3D printer or whatever.� Constructive criticism
> is welcome, but I do give a disclaimer.� I am not a teacher, engineer or a
> machinist.� Just a home hobbyist who wants to give back to the community.
> 
> Thanks for your help and input.� It is greatly appreciated.
> 
> Joe Hildreth
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Parallel Port Driver Docs

2018-07-11 Thread Joe Hildreth
Hello all,

I have been working on a series of tutorial videos on YouTube on CNC for the 
Home Hobbyist.  In the tutorial I am currently working on, I am discussing the 
parallel port.  I want to give as accurate information as I am able.  My 
question is about the documentation found at [ 
http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html | 
http://linuxcnc.org/docs/2.7/html/hal/parallel-port.html ] This documentation 
primarily talks about adding additional Parallel ports to LCNC.  It states that 
there are three modes in which LCNC can use a PP.  These are in, out and x.  It 
also provides a chart showing the pin direction based on the mode that the port 
is set in.

On this chart or table, it shows for the "in" column that pin 14 is an input 
pin.  I think this is in error and should be labelled as an output.  To test my 
theory, I installed a second PCI PP in a computer and run the stepper config 
wizard.  I set up the first port as output and the second as input.

In both output modes and input modes (for the ports) pin 14 is labelled as an 
output pin.  This would make sense considering that pins 1, 14, 16 and 17 
belong to the control group.

So if this is correct, then the documentation needs to be updated to reflect 
that.  If I am incorrect, can someone explain why this pin is input when the 
mode is set to input?

I also understand that in mode x, that the control port (pins 1, 14, 16 and 17) 
are set to inputs but at risk because the physical pins on the port may not be 
open collector.

If you are interested, the play list for the tutorials can be found here: [ 
https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZpjm | 
https://www.youtube.com/playlist?list=PLaamliiI72ntlrHKIFjh2VjmehRGgZpjm ] I 
have 9 tutorials there and working on number 10.  The idea behind them is to 
give enough information over time that a new hobbyist can get into some form of 
CNC.  Rather than giving specific case examples, I want the information to be 
applicable to whatever they are wanting to set up.  Router, mill, plasma, 
lathe, 3D printer or whatever.  Constructive criticism is welcome, but I do 
give a disclaimer.  I am not a teacher, engineer or a machinist.  Just a home 
hobbyist who wants to give back to the community.

Thanks for your help and input.  It is greatly appreciated.

Joe Hildreth 
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users