Articles on: Learning & FAQ

How to Use DSY Series Servo Motor RS485 Communication?

This article will demonstrate through sample code how to use RS485 communication of DSY series servo motors.

Speed Mode
hrough the internal multi-speed function of the DSY series servo motor, RS485 can be used to control the motor to run in speed mode. The following is the RS485 example code when the motor is running at 200rpm:

● 01 06 00 00 00 01 48 0A // Set the control mode to speed mode.
● 01 10 0E 00 00 02 04 00 01 00 02 6F CE // Set the multi-segment speed operation mode to cycle operation, and the speed command end segment number is 02.
● 01 06 0E 07 00 C8 3B 75 // Set the speed of segment 01 speed command to 200rpm (hex value: C8).
● 01 06 0E 0A 01 90 AA DC // Set the speed of segment 01 speed command to 200rpm (hex value: 190).
● 01 06 02 0B 00 01 38 70 // Enable the motor and start running.
● 01 06 02 0B 00 00 F9 B0 // Stop running.

In addition, if the motor only needs to run continuously at a constant speed, this can be achieved using the motor's speed mode. Below is an RS485 example code for running the motor continuously at 400rpm:

● 01 06 00 00 00 01 48 0A // Set the control mode to speed mode.
● 01 06 05 03 01 90 78 FA // Set the motor speed to 400rpm (hex value: C8).
● 01 06 02 0B 00 01 38 70 // Enable the motor, and it starts running.
● 01 06 02 0B 00 00 F9 B0 // Stop the motor.

The above is an example of making the motor run simply. If more complex settings are required, please refer to the manual of the DSY series servo motor for settings.

Position Mode


Through the internal multi-speed function of the DSY series servo motor, RS485 can be used to control the motor to run in position mode. The following is an RS485 example code for the 200000 pulse position when the motor is running at 200rpm:

● 01 06 00 00 00 00 89 CA //Set the control mode to position mode.
● 01 06 04 00 00 04 89 39//Set the position command source as multi-segment position command.
● 01 10 0D 00 00 03 06 00 00 00 01 00 01 4D 2C//Set the operating parameters of multi-segment positions, the starting point is 01, and the end point is 01.
● 01 10 0D 08 00 04 08 0D 40 00 03 00 C8 00 00 01 4B //Set the parameters of multi-segment position 01.
● 01 06 02 02 00 1D E9 BB//Set DI2 as the internal multi-segment position enable port (FunIN.29).
● 01 06 02 0B 00 01 38 70//Enable the motor (DI1 defaults to the motor enable port).
● 01 06 02 0C 00 01 89 B1 //Trigger internal multi-segment position enable DI2.
● 01 06 02 0B 00 00 F9 B0//Stop running.

The above is an example of making the motor run simply. If more complex settings are required, please refer to the manual of the DSY series servo motor for settings.

It is important to note that when using RS485 to send commands to set parameters, you need to ensure that the motor is disconnected and enabled, otherwise the parameters will not be written successfully.

Updated on: 10/06/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!