7I96 board invert output

More
02 Nov 2021 15:50 #224999 by Redneck92
Hey guys,

I want to invert one output on my 7i96.
I found a post here from PCW but his exolanations did not work for me.

Problem is as follows:
My stepperdriver activate when no voltage is aplied to the enable button.
The output lets voltage trough when it is active so my drives shot off.

I don´t want to put another relay circuit and stuff in my controler box, I want to keep it as simple as possible in there.

How do I get to invert the output?

I added PCW´s lines in my hal file as follows:

loadrt not count=1
addf not.0 servo-thread

net ssr0out not.0.out hm2_7i96.0.ssr.00.out-00
net machine-is-enabled   =>  hm2_7i96.0.ssr.00.out-00

But when I start axis I get the following error:
hal:33: Pin 'hm2_7i96.0.ssr.00.out-00' was already linked to signal 'ssr0out'
11876

I tried x number of examples and configurations to get around this but i don´t get it.

Would be nice if someone could help me with this.

Thanks in advance,
Mike

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

More
02 Nov 2021 17:51 - 02 Nov 2021 18:01 #225023 by PCW
Replied by PCW on topic 7I96 board invert output
loadrt not count=1
addf not.0 servo-thread

net ssr0out not.0.out hm2_7i96.0.ssr.00.out-00
net machine-is-enabled   => not.0.in

Note that this is not a good fix for the drive enables on most step/dir drives
because the SSR outputs will be off before LinuxCNC starts and when LinuxCNC
exits or when a watchdog bite occurs. If drive enable is in any way safety related,
an external NC relay should be used or if possible, the drives enable polarity
should be reversed so the drive is not enabled until an enable signal is applied.

 The basic issue is that most step/dir drives don't have an enable input, they have a
disable input...
 
Last edit: 02 Nov 2021 18:01 by PCW.
The following user(s) said Thank You: Redneck92

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

More
02 Nov 2021 22:29 - 02 Nov 2021 22:29 #225050 by Redneck92
Replied by Redneck92 on topic 7I96 board invert output
Thank you again PCW for your help.

I realy only need the enable function to reset the drives if they fault out because of following error or something like this. Otherwise I would need to cut power to the drives / controller completly to reset.

My estop and my main switch are wired to cut power to my controller and my vfd completly in case something goes south.

Thank you very much again for your help.

Have a nice day.
Last edit: 02 Nov 2021 22:29 by Redneck92.

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

More
03 Nov 2021 15:47 #225112 by Redneck92
Replied by Redneck92 on topic 7I96 board invert output
That totally did the trick. Thank you again for helping me out.

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

Moderators: PCWjmelson
Time to create page: 0.093 seconds
Powered by Kunena Forum