(Solved?) Feed override encoder reset

More
5 years 1 month ago #220499 by russell
Hi,
  I've connected a pair of rotary encoders to the inmux mpg encoder inputs on a mesa 7c80 and am using them to control the spindle and feed override via the halui pins which seems to work fine. The encoders also have a push switch and I would like to use these to reset the overrides back to 100% but I can't work out how. I'm using the Probe Basic GUI and there doesn't seem to be any way to trigger the reset via HAL and the INMUX encoder doesn't seem to have a reset signal.

I think the easiest way to implement the reset is to create a component to insert in to the signal chain between the INMUX encoder output and the HALUI input but wanted to check that I've not missed a more elegant solution?

Cheers
 Russell

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

More
5 years 1 month ago #220547 by PCW
Replied by PCW on topic Feed override encoder reset
well... actually the counter should have a reset, there's no hardware reset in the
firmware but an offset could be captured and applied in the driver. Are you running master?

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

More
5 years 1 month ago #220558 by russell
Replied by russell on topic Feed override encoder reset
Hi, Yes I am running master

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

More
5 years 1 month ago #220637 by russell
Replied by russell on topic Feed override encoder reset
I've added a reset function to the inmux driver which was fairly trivial todo, but unfortunately it turned out not to be sufficient to reset the overrides to 100%.

it looks like I need to set halui.feed-override.counts to 1 and then toggle halui.feed-override.direct-value I could do that by connecting the direct-value pin to the reset pin and changing inmux reset logic to set count to 1 instead of 0 but that doesn't feel right, so I think I'm going to create a Hal component I can also use that to handle the run/pause/stop button logic as well.

I have a diff for the inmux change if anyone wants it.

Regards
Russell

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

More
5 years 1 month ago #220644 by PCW
Replied by PCW on topic Feed override encoder reset
I guess instead of a fixed reset you could have a per channel S32 offset
pin (which defaults to 0) Then a reset could set the count to the offset value

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

More
5 years 1 month ago #220669 by cmorley
Replied by cmorley on topic Feed override encoder reset
I think you should add the ability to halui. that is where the current count of the encoders is kept.

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

Time to create page: 0.316 seconds
Powered by Kunena Forum