14. Simple Positioning Design Examples Control program:
M1002 Set accel/decel time to 200ms Y6 M10 Servo ON M11 Y7 Error reset M0 M1 M2 M3 M4 Zero return M1346 Clear pulse register of servo M1 M0 M2 M3 M4 Run forward for 10 rotations M2 M0 M1 M3 M4 Run reverse for 10 rotations M3 M0 M1 M2 M4 Drive to absolute designation 400,000 M4 M0 M1 M2 M3 Drive to absolute designation -50,000 M1029 Reset M0~M4 after positioning is completed X0 Y10 Forward inhibit limit X1 Y11 Reverse inhibit limit M12 M1334 Stopping pulse output M13 Y12 Emergency stop X3 M20 Servo ready X4 M21 Servo at zero speed X5 M22 Servo homing completed X6 M23 Servo at positioning completed X7 M24 Error alarm DVP-PLC Application Examples 14-4 MOV K200 D1343 DZRN K10000 K5000 X2 Y0 DDRVI K100000 K20000 Y0 Y1 DDRVI K-100000 K20000 Y0 Y1 DDRVA K400000 K200000 Y0 Y1 DDRVA K-50000 K200000 Y0 Y1 ZRST M0 M4