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
Adding the values of two incremental encoders
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Adding the values of two incremental encoders
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.
With a single User program running the addition would be updated every 180us.
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;
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.