Hello,
Resuming this project, I verified that the synchronization between the rotary encoder and the stepper motor was not correct.
The rotary encoder (B E6B2 – CWZ6C) has a resolution of 1000P / R.
The motor stepper completes a rotation in 200 steps (1.8º per step) and the DM542 driver is configured in DIP switches for 8 microsteps (1600 Steps / Rev).
In the Configuration.h file, following Clough, i have
#define ENCODER_RESOLUTION 4000
#define STEPPER_MICROSTEPS 8
#define STEPPER_RESOLUTION 200
But, if I change the STEPPER_MICROSTEPS variable to 12, and test 40 rotations on the rotary encoder, the synchronization with the motor remains correct.
Although the sync remains correct, it seems to me that there is something wrong with this configuration.
Any opinions are welcome.
greetings from
Dias Costa