How to configure second parallel port pins as input only
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 or Create an account to join the conversation.
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
See the "loading" section for how to configure as input.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19214
- Thank you received: 6438
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19214
- Thank you received: 6438
Me neither. Was wondering where he got the idea !
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.