Adding the values of two incremental encoders

Moderators: TomKerekes, dynomotion

Post Reply
McScotty
Posts: 11
Joined: Fri Feb 19, 2021 1:18 pm

Adding the values of two incremental encoders

Post by McScotty » Thu Nov 07, 2024 7:28 pm

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

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: Adding the values of two incremental encoders

Post by TomKerekes » Thu Nov 07, 2024 10:29 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply