The present position is 2000, it needs 8000 pulse numbers to get the target position of 10000
pulse numbers in incremental mode.
◆the program in incremental mode
When SM2 is ON, send the pulse numbers, speed, acceleration deceleration time to the related
registers.
Servo is enable, M0 is ffrom OFF to ON, it runs incremental motion instruction MOTO.
M1 is from OFF to ON, send absolute position to the related register.
M2 is from OFF to ON, send the new speed to the related register.
Running flag SM2001 is reset after the pulse sending is completed, reset M0, M1, M2.
SM2
DMOV K8000 HD0
DMOV K5000 HD2
DMOV K50 HD4
HD0 HD2 HD4MOTO K1
M0
DMOV K20000 SD2030
DMOV K6000 SD2032
M1
M2
SM2001
RST M0
RST M1
RST M2