Parallel Ports Pins
- Tchefter
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 195
- Thank you received: 31
22 Aug 2023 14:41 #278707
by Tchefter
Parallel Ports Pins was created by Tchefter
Hallo Zusammen,
bin mal wieder am probieren meinen 2. ParallelPort zum laufen zu bringen.
Weis Jemand warum bei Pin 14, 16 und 17 LCNC nicht startet?
Fehlermeldung: parport.1.pin-14-in-not does not exists
Die restlichen Pins funktionieren (außer Pin 2 ohne Fehlermeldung, warum auch immer)
Gruß Fritz
#########################################
Hello everyone,
I'm trying again to get my second parallel port up and running.
Does anyone know why the LCNC does not start at pin 14, 16 and 17?
Error message: parport.1.pin-14-in-not does not exists
The remaining pins work (except pin 2 without error message, for whatever reason)
Greetings Fritz
bin mal wieder am probieren meinen 2. ParallelPort zum laufen zu bringen.
Weis Jemand warum bei Pin 14, 16 und 17 LCNC nicht startet?
Fehlermeldung: parport.1.pin-14-in-not does not exists
Die restlichen Pins funktionieren (außer Pin 2 ohne Fehlermeldung, warum auch immer)
Gruß Fritz
#########################################
Hello everyone,
I'm trying again to get my second parallel port up and running.
Does anyone know why the LCNC does not start at pin 14, 16 and 17?
Error message: parport.1.pin-14-in-not does not exists
The remaining pins work (except pin 2 without error message, for whatever reason)
Greetings Fritz
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4001
- Thank you received: 1729
22 Aug 2023 15:16 #278709
by Aciera
Replied by Aciera on topic Parallel Ports Pins
If I read the documentation correctly then the default for pins 14,16 and 17 is direction 'out':
linuxcnc.org/docs/html/hal/parallel-port.html
linuxcnc.org/docs/html/hal/parallel-port.html
The following user(s) said Thank You: Tchefter
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
22 Aug 2023 15:22 #278711
by tommylight
Replied by tommylight on topic Parallel Ports Pins
in a terminal:
sudo lspci -v | grep parport
cat /proc/ioports | grep parport
sudo lspci -v | grep parport
cat /proc/ioports | grep parport
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
22 Aug 2023 15:26 #278713
by tommylight
Parallel ports (most of them, all built in) can work in 3 modes
Mode out = 12 out and 5 in
Mode in = 13 in and 4 out
Mode X = 8 out and 9 in
So pin 14 can be in, on some boards, but has to be set as such in hal file where the port address is as "out", "in", or "x".
For pin 14 to be in, mode X should be used.
Replied by tommylight on topic Parallel Ports Pins
Yeah, i missed that, but still:If I read the documentation correctly then the default for pins 14,16 and 17 is direction 'out':
linuxcnc.org/docs/html/hal/parallel-port.html
Parallel ports (most of them, all built in) can work in 3 modes
Mode out = 12 out and 5 in
Mode in = 13 in and 4 out
Mode X = 8 out and 9 in
So pin 14 can be in, on some boards, but has to be set as such in hal file where the port address is as "out", "in", or "x".
For pin 14 to be in, mode X should be used.
The following user(s) said Thank You: Tchefter
Please Log in or Create an account to join the conversation.
- Tchefter
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 195
- Thank you received: 31
22 Aug 2023 15:50 #278716
by Tchefter
Replied by Tchefter on topic Parallel Ports Pins
Ahhhh, OK, thanks, i will test it!
Greetings Fritz
Greetings Fritz
Please Log in or Create an account to join the conversation.
- Tchefter
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 195
- Thank you received: 31
22 Aug 2023 16:31 #278723
by Tchefter
Replied by Tchefter on topic Parallel Ports Pins
So, I tested it with x
Now 14,16,17 work but the others don't anymore.
I'll probably have to deal with the 12 pins.
Or install a 3rd card? So there would be 12 pins free again )
Now 14,16,17 work but the others don't anymore.
I'll probably have to deal with the 12 pins.
Or install a 3rd card? So there would be 12 pins free again )
Please Log in or Create an account to join the conversation.
- Tchefter
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 195
- Thank you received: 31
22 Aug 2023 16:35 #278724
by Tchefter
Replied by Tchefter on topic Parallel Ports Pins
One Question again:
What means "Double Step" in the Discription of Parallel Port Driver?
What means "Double Step" in the Discription of Parallel Port Driver?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4812
22 Aug 2023 18:08 - 22 Aug 2023 18:09 #278726
by PCW
Replied by PCW on topic Parallel Ports Pins
The software stepgen component can operate in two modes.
the normal mode only allows one step every 2 base thread cycles.
(because the step pulse is set true in one cycle and cleared in the next)
This means step pulses in this mode are 1 base period long.
In the double step mode, the step pulse is set true and then LinuxCNC waits
for a preset time (the reset time) before setting the step pulse false again.
This allows 1 step per base thread invocation, and the step pulse width is the reset time.
the normal mode only allows one step every 2 base thread cycles.
(because the step pulse is set true in one cycle and cleared in the next)
This means step pulses in this mode are 1 base period long.
In the double step mode, the step pulse is set true and then LinuxCNC waits
for a preset time (the reset time) before setting the step pulse false again.
This allows 1 step per base thread invocation, and the step pulse width is the reset time.
Last edit: 22 Aug 2023 18:09 by PCW.
The following user(s) said Thank You: Tchefter
Please Log in or Create an account to join the conversation.
- Tchefter
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 195
- Thank you received: 31
22 Aug 2023 18:10 #278727
by Tchefter
Replied by Tchefter on topic Parallel Ports Pins
OK Thanks PCW, i thought i can use this for my Pins & Buttons
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds