Need help using one pin for two inputs

More
25 May 2021 07:17 #210196 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?

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

More
25 May 2021 21:28 - 25 May 2021 21:29 #210262 by andypugh
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
Last edit: 25 May 2021 21:29 by andypugh.

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

More
26 May 2021 06:02 #210306 by Giuseppe
thanks so far, but i need the signal from the floating switch too.
In your example i am missing it.

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

More
26 May 2021 07:49 - 26 May 2021 07:50 #210310 by BeagleBrainz
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 ?
Last edit: 26 May 2021 07:50 by BeagleBrainz.

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

More
26 May 2021 07:54 #210312 by Giuseppe
i want two switches on one bob input.

one homing switch and one floating switch.

this should be possible or not?

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

More
26 May 2021 08:06 #210314 by andypugh

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.

More
26 May 2021 10:20 #210329 by tommylight
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.

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

More
26 May 2021 18:41 - 26 May 2021 18:42 #210374 by Giuseppe
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.
Last edit: 26 May 2021 18:42 by Giuseppe.

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

More
26 May 2021 22:34 #210397 by tommylight
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

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

More
27 May 2021 08:40 #210431 by Giuseppe
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?

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

Time to create page: 0.117 seconds
Powered by Kunena Forum