Encoder manage with Portenta Machine Control

How can I reset (set to 0) the encoder value present on SysEncoderInput.RevolutionCount ?
I am using a Arduino PLC IDE.

Hi! I had the same problem and as far as I've discovered, it has to be done manually by pressing the reset button of your controller.

If you can port your project to an Ardunio sketch this will work:

// Reset 0 encoder
encoders[0].reset();

Did anyone find any answers on how to reset the PMC encoder pulses in the PLC IDE?
I asked Arduino support for an example of working with the encoders on the PMC board and they said they had nothing at all and to ask the forum. :slight_smile:

I suppose you should all take that as an official huge vote of confidence from Arduino!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.