Linuxcnc keeps the port connected when exiting
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
17 Apr 2024 23:31 #298511
by Thayloreing
Linuxcnc keeps the port connected when exiting was created by Thayloreing
Good evening my friends, I'm using a parallel port, and I have a problem that when I close Linuxcnc the last ports that were activated continue to be activated even with Linuxcnc closed, when I open Linuxcnc again it turns off the outputs correctly, is there any way of doing this? reset all outputs when it is closed? I'm using Linuxcnc 2.9.2 on Debian 10 with the parallel port that comes on the motherboard. can you help me?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
18 Apr 2024 00:33 #298517
by tommylight
Replied by tommylight on topic Linuxcnc keeps the port connected when exiting
Best way would be to use a charge pump, can be easily made with a resistor, two capacitors and a darlington transistor, but will probably require rewiring.
There might be a way to reset the parallel port by editing the shutdown.hal file and adding ... probably just
loadrt hal_parport cfg="0x0378 out", just not sure if the driver will be unloaded before loading it again by this.
Still, easy enough to give it a try...
There might be a way to reset the parallel port by editing the shutdown.hal file and adding ... probably just
loadrt hal_parport cfg="0x0378 out", just not sure if the driver will be unloaded before loading it again by this.
Still, easy enough to give it a try...
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
18 Apr 2024 01:20 #298521
by Thayloreing
Replied by Thayloreing on topic Linuxcnc keeps the port connected when exiting
Can you explain to me how I can make changes to this file? I'm new to Linuxcnc.
Please Log in or Create an account to join the conversation.
18 Apr 2024 11:24 #298550
by cornholio
Replied by cornholio on topic Linuxcnc keeps the port connected when exiting
Might be out of date:
wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps
forum.linuxcnc.org/16-stepconf-wizard/1869-charge-pump
From the docs:
linuxcnc.org/docs/2.9/html/man/man9/charge_pump.9.html
Should be a start
wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps
forum.linuxcnc.org/16-stepconf-wizard/1869-charge-pump
From the docs:
linuxcnc.org/docs/2.9/html/man/man9/charge_pump.9.html
Should be a start
The following user(s) said Thank You: Thayloreing
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
19 Apr 2024 21:15 #298671
by Thayloreing
Replied by Thayloreing on topic Linuxcnc keeps the port connected when exiting
the shutdown didn't work for me, the outputs still remained connected when closing Linuxcnc, and the charge pump will not be viable, the electrical is ready, in the last case I will try it, but there is no way to edit the .axisrc for when Linuxcnc asks If I want to exit and press yes, it turns off all outputs before
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
19 Apr 2024 21:25 #298673
by tommylight
Replied by tommylight on topic Linuxcnc keeps the port connected when exiting
Something like
setp parport.0.reset
in shutdown.hal might work, but not sure of the exact pin/command name is or would have to be, sorry no parallel port here to try. That might also need a value or true...
setp parport.0.reset
in shutdown.hal might work, but not sure of the exact pin/command name is or would have to be, sorry no parallel port here to try. That might also need a value or true...
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
19 Apr 2024 23:41 #298687
by Thayloreing
Replied by Thayloreing on topic Linuxcnc keeps the port connected when exiting
I tried everything, but I think the shutdown didn't work, is there any other way? I will have to change the electrics on my machine then
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
19 Apr 2024 23:44 #298688
by tommylight
Replied by tommylight on topic Linuxcnc keeps the port connected when exiting
Did you add the shutdown.hal entry to the ini file?
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
20 Apr 2024 13:16 - 20 Apr 2024 13:17 #298725
by Thayloreing
Replied by Thayloreing on topic Linuxcnc keeps the port connected when exiting
yes I did,
SHUTDOWN = shutdown.hal
then I added it inside the shutdown.hal
loadrt hal_parport.0.reset 1
setp parport.0.pin-17-out-reset 1
SHUTDOWN = shutdown.hal
then I added it inside the shutdown.hal
loadrt hal_parport.0.reset 1
setp parport.0.pin-17-out-reset 1
Last edit: 20 Apr 2024 13:17 by Thayloreing.
Please Log in or Create an account to join the conversation.
- Thayloreing
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 2
29 Apr 2024 16:31 #299324
by Thayloreing
Replied by Thayloreing on topic Linuxcnc keeps the port connected when exiting
Good afternoon, I came to ask for help once again, a while ago in this post I asked a question and they told me the charge pump, I have some doubts, I saw in the video that they put the link that the charge pump activates a relay, so that Would this relay be exactly? I saw the video, but I don't speak English, I translate everything, then I didn't understand much because I couldn't translate
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds