Solution
Two things you need to pay attention to:
- Exclude the possibility that the enable signal is connected incorrectly
Connect the driver's enable pin directly to the ground of the 24V supply, and make sure the digital display indicates the driver is enabled..
- Confirm the encoder's polarity is set correctly.
Push the motor manually and make sure the position count displayed in MAX reflects the motor's direction.
The configuration of the axes in MAX is as follow: