Need help using one pin for two inputs
25 May 2021 07:17 #210196
by Giuseppe
Need help using one pin for two inputs was created by Giuseppe
hi,
maybe one can help me. I have a homeswitch and the floating switch connected on PIN11 from my BOB.
In the hal file the code is
net all-home <= parport.0.pin-11-in-not
this works fine.
In the connection.hal the code for my floatswitch is
net plasmac:float-switch parport.0.pin-11-in-not => debounce.0.0.in
This gives me the message that the pin is already linked to all-home.
How can i clear this issue?
maybe one can help me. I have a homeswitch and the floating switch connected on PIN11 from my BOB.
In the hal file the code is
net all-home <= parport.0.pin-11-in-not
this works fine.
In the connection.hal the code for my floatswitch is
net plasmac:float-switch parport.0.pin-11-in-not => debounce.0.0.in
This gives me the message that the pin is already linked to all-home.
How can i clear this issue?
Please Log in or Create an account to join the conversation.
25 May 2021 21:28 - 25 May 2021 21:29 #210262
by andypugh
Replied by andypugh on topic Need help using one pin for two inputs
net all-home <= parport.0.pin-11-in-not
net all-home parport.0.pin-11-in-not => debounce.0.0.in
Is a way to avoid the error message. Whether it will have the desired function is a different question
net all-home parport.0.pin-11-in-not => debounce.0.0.in
Is a way to avoid the error message. Whether it will have the desired function is a different question
Last edit: 25 May 2021 21:29 by andypugh.
Please Log in or Create an account to join the conversation.
26 May 2021 06:02 #210306
by Giuseppe
Replied by Giuseppe on topic Need help using one pin for two inputs
thanks so far, but i need the signal from the floating switch too.
In your example i am missing it.
In your example i am missing it.
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Offline
- User is blocked
Less
More
- Posts: 1437
- Thank you received: 570
26 May 2021 07:49 - 26 May 2021 07:50 #210310
by BeagleBrainz
Replied by BeagleBrainz on topic Need help using one pin for two inputs
Excuse if I'm confused about this.
But you want one pin to be used for 2 inputs without any physical multiplexing & demultiplexing ?
What would happen if there is an issue with any of the 2 sources ?
But you want one pin to be used for 2 inputs without any physical multiplexing & demultiplexing ?
What would happen if there is an issue with any of the 2 sources ?
Last edit: 26 May 2021 07:50 by BeagleBrainz.
Please Log in or Create an account to join the conversation.
26 May 2021 07:54 #210312
by Giuseppe
Replied by Giuseppe on topic Need help using one pin for two inputs
i want two switches on one bob input.
one homing switch and one floating switch.
this should be possible or not?
one homing switch and one floating switch.
this should be possible or not?
Please Log in or Create an account to join the conversation.
26 May 2021 08:06 #210314
by andypugh
In this case it probably is. You can use the input to home, then later use it for the float switch. As long as the float switch does not trigger during homing (or only when homing the Z) it is likely to be fine.
In the example I gave your float switch signal still exists on the output of the debounce. The signal names in the net command can be anything. Change to "all-home-and-float-switch" on both lines, if you prefer. Or any other name that makes sense to you.
Replied by andypugh on topic Need help using one pin for two inputs
i want two switches on one bob input.
one homing switch and one floating switch.
this should be possible or not?
In this case it probably is. You can use the input to home, then later use it for the float switch. As long as the float switch does not trigger during homing (or only when homing the Z) it is likely to be fine.
In the example I gave your float switch signal still exists on the output of the debounce. The signal names in the net command can be anything. Change to "all-home-and-float-switch" on both lines, if you prefer. Or any other name that makes sense to you.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
26 May 2021 10:20 #210329
by tommylight
Replied by tommylight on topic Need help using one pin for two inputs
Can you try setting to "X" instead of "out" in the hal file, the loadrt line with parallel port address and see if LinuxCNC starts.
That will give you 9 inputs and 8 outputs.
All the built in ports i have tested can do that, even some add on cards can do that.
That will give you 9 inputs and 8 outputs.
All the built in ports i have tested can do that, even some add on cards can do that.
Please Log in or Create an account to join the conversation.
26 May 2021 18:41 - 26 May 2021 18:42 #210374
by Giuseppe
Replied by Giuseppe on topic Need help using one pin for two inputs
Nice, it works.
Thanks for the help.
During testing i found that the hf ignition caused the motor and pc. I used shielded network cables for the control lines of the motors and clamped them to the ground.
But i still have problems.
Should i buy a plasma cutter with pilot ignition now or is there another way?
I know this is a bit off topic. but only a link is ok.
Thanks for the help.
During testing i found that the hf ignition caused the motor and pc. I used shielded network cables for the control lines of the motors and clamped them to the ground.
But i still have problems.
Should i buy a plasma cutter with pilot ignition now or is there another way?
I know this is a bit off topic. but only a link is ok.
Last edit: 26 May 2021 18:42 by Giuseppe.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
26 May 2021 22:34 #210397
by tommylight
Replied by tommylight on topic Need help using one pin for two inputs
Do not fire the torch if it is casing issue, it will destroy something.
Have a look here, shielding and grounding issues are hard to pinpoint, but a bit systematic checking will work nicely.
Is there proper grounding in the shop?
Is there a GFI or FID or .... ? If there is such a "fuse", to test if it is working and there is grounding, connect the NEUTRAL to the GROUND with an isolated piece of wire with stripped ends, it should cut power to everything in the shop, not just some things. If it does not trip, there is no grounding so you will have to provide that by inserting coper rods deep into the ground some 2 to 3 meters away from the shop.
forum.linuxcnc.org/plasma-laser/35349-cn...fo-and-guide?start=0
Have a look here, shielding and grounding issues are hard to pinpoint, but a bit systematic checking will work nicely.
Is there proper grounding in the shop?
Is there a GFI or FID or .... ? If there is such a "fuse", to test if it is working and there is grounding, connect the NEUTRAL to the GROUND with an isolated piece of wire with stripped ends, it should cut power to everything in the shop, not just some things. If it does not trip, there is no grounding so you will have to provide that by inserting coper rods deep into the ground some 2 to 3 meters away from the shop.
forum.linuxcnc.org/plasma-laser/35349-cn...fo-and-guide?start=0
Please Log in or Create an account to join the conversation.
27 May 2021 08:40 #210431
by Giuseppe
Replied by Giuseppe on topic Need help using one pin for two inputs
My garage is an old one. It has no ground. The ground from the socket is connected to the neutral wire from the socket.
This is how they dit it in 1960
Is there a solution for this kind of connection?
This is how they dit it in 1960
Is there a solution for this kind of connection?
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds