Want to add alarm input from motor drives
- arvidb
- Offline
- Platinum Member
Less
More
- Posts: 512
- Thank you received: 158
30 Aug 2020 02:49 #180003
by arvidb
Replied by arvidb on topic Want to add alarm input from motor drives
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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
31 Aug 2020 13:40 - 31 Aug 2020 13:56 #180161
by Todd Zuercher
Replied by Todd Zuercher on topic Want to add alarm input from motor drives
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.
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.
- p27182
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
31 Aug 2020 15:09 #180176
by p27182
Replied by p27182 on topic Want to add alarm input from motor drives
good eye, i missed that!
Please Log in or Create an account to join the conversation.
- p27182
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
31 Aug 2020 15:10 #180177
by p27182
Replied by p27182 on topic Want to add alarm input from motor drives
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.083 seconds