There is no need to consider the pulse algorithm at all.
For example, I need PLC to send a pulse, and the motor moves1mm.
The upper computer only needs to send a pulse to the servo driver,
Motor motion (1× electronic gear ratio) pulse = 1 mm.
Electronic transmission ratio is related to the movement required by individuals and mechanical wheels, that is, how far the motor actually moves every revolution, and there may be a deceleration mechanism in the middle or a circular movement.
You can look at the electronic transmission ratio setting method.
Implementation method, using PLC position control instructions, different PLC manufacturers, different instructions with the same function,
Mainly control two parameters, 1, pulse frequency, that is, speed,
2, the total number of pulses sent, that is, the moving distance,