Parallel Ports Pins

  • Tchefter
  • Tchefter's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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
 

Please Log in or Create an account to join the conversation.

More
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
The following user(s) said Thank You: Tchefter

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
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

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
22 Aug 2023 15:26 #278713 by tommylight
Replied by tommylight 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

Yeah, i missed that, but still:
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
  • Tchefter's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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

Please Log in or Create an account to join the conversation.

  • Tchefter
  • Tchefter's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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 :))

Please Log in or Create an account to join the conversation.

  • Tchefter
  • Tchefter's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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?

Please Log in or Create an account to join the conversation.

More
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.
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
  • Tchefter's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
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
Powered by Kunena Forum