You can set up the RM9000 for a Speed/Direction output
Use Index 3010 Sub1 to enable it.
The output is in degrees/second (smallest value is 0.1 degree/second).
Positive value indicates clockwise, Negative Counter clockwise.
You have to map the Speed value in the Send PDO section of the device in the Codesys project.