Want to add alarm input from motor drives

More
30 Aug 2020 02:49 #180003 by arvidb
Maybe a long shot, but you're using a Unicode "minus sign" (character code U2212) instead of a normal ascii hyphen when you write "amp−fault−in" in your posts. If you're using that in your .hal file then that won't work. Change to normal hyphen: amp-fault-in.
The following user(s) said Thank You: tommylight, p27182

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

More
31 Aug 2020 13:40 - 31 Aug 2020 13:56 #180161 by Todd Zuercher
The problem was that you used the pin name as the signal name in your net commands. Signal names are arbitrary and what you wrote in your hal file created signals with the same names as your amp fault pin names.
Change the lines in your hal file to something like this.
# --- X drive ALM ---
net x-fault => axis.0.amp-fault-in <= hm2_5i25.0.7i76.0.0.input-06

# --- Y drive ALM ---
net y-fault => axis.1.amp-fault-in <= hm2_5i25.0.7i76.0.0.input-07

# --- Z drive ALM ---
net z-fault => axis.2.amp-fault-in <= hm2_5i25.0.7i76.0.0.input-08
Last edit: 31 Aug 2020 13:56 by Todd Zuercher. Reason: also changed the hyphens
The following user(s) said Thank You: p27182

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

More
31 Aug 2020 15:09 #180176 by p27182
good eye, i missed that!

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

More
31 Aug 2020 15:10 #180177 by p27182
yea i ended up net-ing the alarm fault pin to the hm2 pin by wiring them to the same variable and that fixed it! working now thanks for your inout folks!

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

Time to create page: 0.114 seconds
Powered by Kunena Forum