- Posts: 3
- Thank you received: 0
How to configure second parallel port pins as input only
7 years 3 weeks ago #147151
by nour
How to configure second parallel port pins as input only was created by nour
Hi,
I have in my PC a built-in parport and I have added another parport card and it is working fine, I have already confirmed this.
My question is how to use second parallel port pins as inputs (if possible all of them).
When using Stepconf wizard, I can't set all the pins to input for example I want to use first 6 pins (from 1 to 6) as limit switches input but pin number 1 always appears as output!!
How do I change this?
I just started to use Linuxcnc and I am still trying to understand how everything works.
thanks
I have in my PC a built-in parport and I have added another parport card and it is working fine, I have already confirmed this.
My question is how to use second parallel port pins as inputs (if possible all of them).
When using Stepconf wizard, I can't set all the pins to input for example I want to use first 6 pins (from 1 to 6) as limit switches input but pin number 1 always appears as output!!
How do I change this?
I just started to use Linuxcnc and I am still trying to understand how everything works.
thanks
Please Log in to join the conversation.
7 years 3 weeks ago #147152
by andypugh
Replied by andypugh on topic How to configure second parallel port pins as input only
Only some of the parallel port pins are bidirectional, three are hardware configured as outputs:
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
See the "loading" section for how to configure as input.
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
See the "loading" section for how to configure as input.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
7 years 3 weeks ago #147161
by tommylight
Replied by tommylight on topic How to configure second parallel port pins as input only
IIRC:
mode out is 8+4 out / 5 in
mode in is 8+5in / 4 out
mode x is 8 out / 9 in
mode out is 8+4 out / 5 in
mode in is 8+5in / 4 out
mode x is 8 out / 9 in
Please Log in to join the conversation.
7 years 3 weeks ago #147169
by nour
Replied by nour on topic How to configure second parallel port pins as input only
Is there any way to add a new mode to those 3 modes?
I have read the section mentioned in the last reply but I can't fully understand why I can't change the pins functions for each individual pin?
According to Table 1. Parallel Port Direction, the pin can be either input or output in the In mode or the X mode and that goes for pin 1, 16 and 17. If that so, why it is not possible to make a new compilation that has all the pins act as input if the same pin can have both functions in different modes?
I am sure I am missing something obvious, I am sorry I just started using LinuxCnc a few days ago and I barely understand how to operate it!
I have read the section mentioned in the last reply but I can't fully understand why I can't change the pins functions for each individual pin?
According to Table 1. Parallel Port Direction, the pin can be either input or output in the In mode or the X mode and that goes for pin 1, 16 and 17. If that so, why it is not possible to make a new compilation that has all the pins act as input if the same pin can have both functions in different modes?
I am sure I am missing something obvious, I am sorry I just started using LinuxCnc a few days ago and I barely understand how to operate it!
Please Log in to join the conversation.
7 years 3 weeks ago #147172
by nour
Replied by nour on topic How to configure second parallel port pins as input only
According to this page
table 1.1: Pin directions and associated registers all pins can act as inputs and thats what I want to do on the other parallel port that I have, I want this port to be only input and I will use the first port for output only.
Please Log in to join the conversation.
7 years 3 weeks ago #147177
by pl7i92
Replied by pl7i92 on topic How to configure second parallel port pins as input only
only this 3 modes are safe to use on the parport
and IBM 15 rule is conform to use only this pins for there main direction
therefore you can add 4 parports to a machine
so this shout be well overkill
and IBM 15 rule is conform to use only this pins for there main direction
therefore you can add 4 parports to a machine
so this shout be well overkill
Please Log in to join the conversation.
7 years 3 weeks ago #147213
by andypugh
I have never seen any other reference make that statement. Can you find one?
Replied by andypugh on topic How to configure second parallel port pins as input only
nour wrote: According to this page
table 1.1: Pin directions and associated registers all pins can act as inputs.
I have never seen any other reference make that statement. Can you find one?
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
7 years 3 weeks ago #147215
by tommylight
Replied by tommylight on topic How to configure second parallel port pins as input only
Me neither. Was wondering where he got the idea !andypugh wrote:
nour wrote: According to this page
table 1.1: Pin directions and associated registers all pins can act as inputs.
I have never seen any other reference make that statement. Can you find one?
Please Log in to join the conversation.
7 years 3 weeks ago #147217
by pl7i92
Replied by pl7i92 on topic How to configure second parallel port pins as input only
in 1985 HP got a projekt as the IO for there Carosell pencil printer got to have the spare inputs to decine a parport over the centronics
but that never made it to public market
in newer days we woudt wish it had full control of all pins bidirectional
the IBM Ms standard wars set as so many production parts did fit the neeed
but that never made it to public market
in newer days we woudt wish it had full control of all pins bidirectional
the IBM Ms standard wars set as so many production parts did fit the neeed
Please Log in to join the conversation.
7 years 3 weeks ago #147220
by cmorley
My guess is the original programmer choose to use the most common modes available in hardware, particularly in older PCs.
Linuxcnc code is quite old and targeted older PC hardware at the time.
Bottom line is - you can't have stepconf/linuxcnc set all pins as input.
Chris
Replied by cmorley on topic How to configure second parallel port pins as input only
If other modes are possible on your hardware, the parport component would need to be reprogrammed to support them.Is there any way to add a new mode to those 3 modes?
I have read the section mentioned in the last reply but I can't fully understand why I can't change the pins functions for each individual pin?
My guess is the original programmer choose to use the most common modes available in hardware, particularly in older PCs.
Linuxcnc code is quite old and targeted older PC hardware at the time.
Bottom line is - you can't have stepconf/linuxcnc set all pins as input.
Chris
Please Log in to join the conversation.
Time to create page: 2.984 seconds
