can you send M122 and share the result?
What do you get if you send M587 by itself?
are there any error messages?
How are you sending the M587 command?
The normal steps for getting connected are here: https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_Duet