TinyG icon indicating copy to clipboard operation
TinyG copied to clipboard

Alarm message when limit switch is hit

Open dougle opened this issue 11 years ago • 6 comments

Point 2 from https://github.com/synthetos/TinyG/issues/69 is still an issue.

"When testing my limit switches (All six) which are configured NC, I receive this msg from tinyg.

{"er":{"fb":414.03,"st":76,"msg":"Limit switch hit - Shutdown occurred"}} qr:28, qi:1, qo:1

I receive this identical msg regardless of which switch is fired......"

Both V8 boards: Version 0.96 {“er”:{“fb”:380.08,”st”:27,”msg”:”System alarmed”,”val”:0}} Which has a useful "val" attribute in the response json.

Version: 0.97 {“er”:{“fb”:435.10,”st”:204,”msg”:”Limit switch hit – Shutdown occurred”}} It is not possible to know from this which limit switch has triggered the alarm.

dougle avatar Oct 25 '14 05:10 dougle

Taken as a feature request

aldenhart avatar Feb 23 '15 11:02 aldenhart

I would count this more as a regression than a feature request

dougle avatar Apr 03 '15 16:04 dougle

We never put which switch was triggered in the code base. I agree this is is a new feature request. Regression would imply that this was at one point working. It was not.

Alden has been working in the whole IO system however. So he might have some more input. Hes in China this week however.

On Fri, Apr 3, 2015 at 12:39 PM, dougle [email protected] wrote:

I would count this more as a regression than a feature request

Reply to this email directly or view it on GitHub https://github.com/synthetos/TinyG/issues/104#issuecomment-89347304.

ril3y avatar Apr 03 '15 19:04 ril3y

OK if "val" was accidentally and unintentionally revealing which switch was hit then this is a new feature.

dougle avatar Apr 03 '15 20:04 dougle

Yah I have wanted to get this in for awhile now too! I had a mis-wired switch a few years back and could not tell which one it was! But we are all on the same page on this one.

On Fri, Apr 3, 2015 at 4:18 PM, dougle [email protected] wrote:

OK if "st" was accidentally and unintentionally revealing which switch was hit then this is a new feature.

Reply to this email directly or view it on GitHub https://github.com/synthetos/TinyG/issues/104#issuecomment-89409757.

ril3y avatar Apr 04 '15 14:04 ril3y

I'm keen to add a "limit auto backoff" feature to my gcode sender that will reset tinyg after an alarm, back the axis off in the correct direction, reset tinyg again and then back off a bit more depending on the controller settings. I was using "val" from 0.96 to work out which axis and direction to back off but no more.

dougle avatar Apr 04 '15 14:04 dougle