Page 1 of 1

Adding the values of two incremental encoders

Posted: Thu Nov 07, 2024 7:28 pm
by McScotty
Hello there,

I wonder if it is possible to add the values ​​of two incremental encoders attached to kflop and use the result as input for a servo channel? If this can not be done by software, can it eventually be realized by a piece of hardware?

Best regards
Thomas

Re: Adding the values of two incremental encoders

Posted: Thu Nov 07, 2024 10:29 pm
by TomKerekes
Hi Thomas,

Yes you could add the encoders in software.

Each physical encoder consumes an Axis Channel set to input Mode encoder to maintain the encoder Position. The actual motor Axis would be set to User Input mode. A User Program would add the two Axis positions and set the Axis Position for the motor Axis.

Code: Select all

ch2->Position = ch0->Position + ch1->Position;
With a single User program running the addition would be updated every 180us.