Alarm setup on stepper driver
19 Feb 2021 10:38 #199395
by sibelius
Alarm setup on stepper driver was created by sibelius
Good evening everybody
I have some question about the alarm set on my drivers HSC86A.
This type of driver has an alarm circuit that can be activated if something goes wrong.
From my pics you can see how I wired together all my drivers, so basically I have a 24V input and all the driver are in series and on output at the end of last driver that goes into a pin 07 on TB6.
I saw that you can use this type of signal axis.N.amp−fault−in IN BIT and I think that I understood how to set one of this signal in case I have 3 output returning to three pin.
But my case is different.
Can anyone direct me in the right direction?
Thanks in advance for any help.
V.
I have some question about the alarm set on my drivers HSC86A.
This type of driver has an alarm circuit that can be activated if something goes wrong.
From my pics you can see how I wired together all my drivers, so basically I have a 24V input and all the driver are in series and on output at the end of last driver that goes into a pin 07 on TB6.
I saw that you can use this type of signal axis.N.amp−fault−in IN BIT and I think that I understood how to set one of this signal in case I have 3 output returning to three pin.
But my case is different.
Can anyone direct me in the right direction?
Thanks in advance for any help.
V.
Please Log in or Create an account to join the conversation.
19 Feb 2021 12:23 #199410
by Aciera
Replied by Aciera on topic Alarm setup on stepper driver
It depends on how you want to have this handled really. You could just wire your serial fault signal to a single axis.N.amp−fault−in pin or to all of them in the first case your machine will stop indicating a fault in the axis you happend to attach the signal to in the latter the machine will stop with an indication that all axis have a fault.
Or you could bring the signal into your estop chain and maybe trigger a custom error warning. This also depends on what GUI you use.
Or you could bring the signal into your estop chain and maybe trigger a custom error warning. This also depends on what GUI you use.
The following user(s) said Thank You: sibelius
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
19 Feb 2021 13:31 #199421
by tommylight
Replied by tommylight on topic Alarm setup on stepper driver
Amp fault should be separate for each joint/axis so you know what axis faulted, if there are free inputs and it looks like you do.
I have them separate and they work perfectly on rare occasions they trip, the mesage is shown on screen and drives are disabled to prevent damage.
I have them separate and they work perfectly on rare occasions they trip, the mesage is shown on screen and drives are disabled to prevent damage.
The following user(s) said Thank You: Sadmeatball, sibelius
Please Log in or Create an account to join the conversation.
19 Feb 2021 22:38 #199484
by sibelius
Replied by sibelius on topic Alarm setup on stepper driver
Thanks very much
I'm thinking to spend another meter of cable wire to separate them.
Thanks again for your help.
V.
I'm thinking to spend another meter of cable wire to separate them.
Thanks again for your help.
V.
The following user(s) said Thank You: tommylight, rodw
Please Log in or Create an account to join the conversation.
21 Feb 2021 09:30 #199586
by sibelius
Replied by sibelius on topic Alarm setup on stepper driver
Good evening to everyone
I have tried this code but i got an error that said that axis.0amp does not exist and linuxcnc does not start.
So I went in the hal tree and actually it is right, I did not see it.
Does anyone knows how to fix this syntax (the signals are all separated).
Thanks in advance
V.
I have tried this code but i got an error that said that axis.0amp does not exist and linuxcnc does not start.
So I went in the hal tree and actually it is right, I did not see it.
Does anyone knows how to fix this syntax (the signals are all separated).
Thanks in advance
V.
#IL MIO CASO
# --- X drive ALM ---esempio ok
net x-fault => axis.0.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-07
# --- Y drive ALM ---esempio ok
net y-fault => axis.1.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-08
# --- Y2 drive ALM ---esempio ok
net y-fault => axis.2.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-09
# --- Z drive ALM ---esempio ok
net z-fault => axis.3.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-10
Please Log in or Create an account to join the conversation.
21 Feb 2021 09:47 - 21 Feb 2021 09:47 #199589
by 0x2102
Replied by 0x2102 on topic Alarm setup on stepper driver
Hello,
some pin names have changed from LinuxCNC 2.7 to 2.8
axis.N.amp-fault-in (2.7)
joint.N.amp−fault−in (2.8 and newer)
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
some pin names have changed from LinuxCNC 2.7 to 2.8
axis.N.amp-fault-in (2.7)
joint.N.amp−fault−in (2.8 and newer)
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
Last edit: 21 Feb 2021 09:47 by 0x2102.
The following user(s) said Thank You: Sadmeatball, sibelius
Please Log in or Create an account to join the conversation.
21 Feb 2021 09:56 #199591
by sibelius
Replied by sibelius on topic Alarm setup on stepper driver
Hi, Thanks for the precious information
Beautiful.
Tomorrow I will have a go.
V.
Beautiful.
Tomorrow I will have a go.
V.
Please Log in or Create an account to join the conversation.
23 Feb 2021 10:20 #199811
by sibelius
Replied by sibelius on topic Alarm setup on stepper driver
Good evening everybody
I'm still having problems trying to figure out the alarm on my drivers.
I add the piece of code in my hal file at the end trying to follow the link in this tread.
Basically I follow the wired order of pin on my mesa card and i add at the beginning of my hal file a line for loadrt motmod .
Does not seems to work.
I'm going to post my hal file and the error message in hope of any help.
Bad away apart from that, I manage to home properly my machine, i have also a problem with scale and distance; if I imput in MDI
G90 G0 X25; I exspect that my X moves in the positive direction by 25mm but instead goes at 125mm so 10 times more and half of what i expected.
Anyway, one problem at the time.
Thanks in advance for any help.
V.
I'm still having problems trying to figure out the alarm on my drivers.
I add the piece of code in my hal file at the end trying to follow the link in this tread.
Basically I follow the wired order of pin on my mesa card and i add at the beginning of my hal file a line for loadrt motmod .
Does not seems to work.
I'm going to post my hal file and the error message in hope of any help.
Bad away apart from that, I manage to home properly my machine, i have also a problem with scale and distance; if I imput in MDI
G90 G0 X25; I exspect that my X moves in the positive direction by 25mm but instead goes at 125mm so 10 times more and half of what i expected.
Anyway, one problem at the time.
Thanks in advance for any help.
V.
Please Log in or Create an account to join the conversation.
23 Feb 2021 11:51 #199812
by Aciera
Replied by Aciera on topic Alarm setup on stepper driver
If this is your actual HAL then you would need to uncomment the lines for x-fault, y-fault and z-fault and use a different name for the fault signal of the y2 axis. Like this :
As for the axis not moving the correct distance, we would need to have a look at the SCALE setting in the INI file.
####### DRIVE ALARMS
#IL MIO CASO-----ho aggiunto loadrt motmod all'inizio
# --- X drive ALM ---esempio ok
net x-fault => joint.0.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-07
# --- Y drive ALM ---esempio ok
net y-fault => joint.1.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-08
# --- Y2 drive ALM ---esempio ok
net y2-fault => joint.2.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-09
# --- Z drive ALM ---esempio ok
net z-fault => joint.3.amp-fault-in <= hm2_7i76e.0.7i76.0.0.input-10
As for the axis not moving the correct distance, we would need to have a look at the SCALE setting in the INI file.
The following user(s) said Thank You: Sadmeatball, sibelius
Please Log in or Create an account to join the conversation.
24 Feb 2021 03:24 #199923
by sibelius
Replied by sibelius on topic Alarm setup on stepper driver
Good morning everyone
Yes, you were right, that was the problem, so everything runs smooth now.
I calculated the scale for my machine and fix the ini file.
i posted both corrected for my case.
The unique think that i cannot figure out yet is the fact that linuxcnc displays a dotted box 10 times bigger that what should be and the tool path is grey color instead of the nice yellow that i observed in the beginning.
To be fair I have to say that in my ini file my correct scale is 160 and to the peace of everything physically working fine I needed to multiply by 10 the max limit distance.
To try to fix this I use a 16 and 1600 scale trying to jig the size of what I can see displayed by linuxcnc but i did not get the point.
At this point is not a really big deal but would be nice if everything falls in place.
Thank you very much to everybody for the precious information.
V.
Yes, you were right, that was the problem, so everything runs smooth now.
I calculated the scale for my machine and fix the ini file.
i posted both corrected for my case.
The unique think that i cannot figure out yet is the fact that linuxcnc displays a dotted box 10 times bigger that what should be and the tool path is grey color instead of the nice yellow that i observed in the beginning.
To be fair I have to say that in my ini file my correct scale is 160 and to the peace of everything physically working fine I needed to multiply by 10 the max limit distance.
To try to fix this I use a 16 and 1600 scale trying to jig the size of what I can see displayed by linuxcnc but i did not get the point.
At this point is not a really big deal but would be nice if everything falls in place.
Thank you very much to everybody for the precious information.
V.
Please Log in or Create an account to join the conversation.
Time to create page: 0.180 seconds