Download MCX314As User`s Manual

Transcript
MCX314As – M112
NOVA electronics Inc.
wreg3(0x3, 0x0004);
acac(0x3,1010);
acc(0x3,200);
speed(0x3,4000);
pulse(0x1,50000);
pulse(0x2,25000);
command(0x3,0x21);
wait(0x3);
wreg3(0x3, 0x0000);
startv(0x4,40);
speed(0x4,40);
pulse(0x4,700);
command(0x4,0x20);
wait(0x4);
pulse(0x4,350);
command(0x4,0x21);
wait(0x4);
outpw(adr+wr5, 0x0124);
range(0x1,800000);
range(0x2,1131371);
speed(0x1,100);
pulse(0x1,5000);
pulse(0x2,-2000);
command(0x0,0x30);
wait(0x3);
outpw(adr+wr5, 0x0124);
range(0x1,800000);
range(0x2,1131371);
speed(0x1,100);
center(0x1,-5000);
center(0x2,0);
pulse(0x1,0);
pulse(0x2,0);
command(0x0,0x33);
wait(0x3);
speed(0x1,1);
command(0,0x36);
//S-curve mode
// K = 1010
(Jerk = 619KPPS/SEC2)
// A = 200
(Accleration/deceleration = 250KPPS/SEC)
// V = 4000
(Drive speed = 40000PPS)
// xP = 50000
// yP = 25000
//Fixed pulse drive
//Release of S-curve acceleration/deceleration
//------ Z-axis constant speed drive ---// SV= 40
(Initial speed = 400PPS)
// V = 40
(Drive speed = 400PPS)
// P = 700
// + fixed pulse drive
// (Moving 700 pulses in the + direction at 400pp)
// P = 350
// Fixed pulse drive
// (Moves 350 pulses in the – direction at 400pps)
//------ X and Y axes linear interpolation driving ---// ax1=x, ax2=y,ax3=z, Constant vector speed
// ax1/R = 800000 (Multiple = 10)
// ax2/R = 800000×1.414
// ax1/V = 100 (Drive speed = 1000PPS constant speed)
// xP = +5000 (Finish pointX= +5000)
// yP = -2000 (Finish pointY= −2000)
// 2-axes linear interpolation
//------ X and Y axes circular interpolation driving ---// ax1=x, ax2=y,ax3=z, Constant vector speed
// ax1/R = 800000 (Multiple = 10)
// ax2/R = 800000×1.414
// ax1/V = 100 (Drive speed = 1000PPS constant speed)
// xC = -5000 (Center point X = −5000)
// yC = 0
(Center point Y = 0
)
// xP = 0
(Finish point X = 0) full circle
// yP = 0
(Finish point Y = 0)
// CCW circular interpolation
//------ X and Y axes bit pattern interpolation (Figure 2.32 Example) ---// ax1/V = 1 (Drive speed = 10PPS constant speed)
// Enables bit pattern data write
outpw(adr+bp1p, 0x0000);
outpw(adr+bp1m, 0x2bff);
outpw(adr+bp2p, 0xffd4);
outpw(adr+bp2m, 0x0000);
command(0,0x38);
// 0 ~ 15
Writes bit patter data
outpw(adr+bp1p, 0xf6fe);
outpw(adr+bp1m, 0x0000);
outpw(adr+bp2p, 0x000f);
outpw(adr+bp2m, 0x3fc0);
command(0,0x38);
// 16 ~ 31
Writes bit data
outpw(adr+bp1p, 0x1fdb);
outpw(adr+bp1m, 0x0000);
outpw(adr+bp2p, 0x00ff);
outpw(adr+bp2m, 0xfc00);
command(0,0x38);
// 32 ~ 47
Writes bit data
command(0,0x34);
// Starts 2-axes BP interpolation driving
bp_wait();
// Waits for data write
outpw(adr+bp1p, 0x4000);
outpw(adr+bp1m, 0x7ff5);
outpw(adr+bp2p, 0x0000);
outpw(adr+bp2m, 0x0aff);
command(0,0x38);
// 48 ~ 63
command(0,0x37);
// Disables bit pattern data write
wait(0x3);
// Waits for termination of driving
speed(0x1,100);
//------ X and Y axes continuous interpolation (Figure 2.37 Example) ---// ax1/V = 100 (Drive speed = 1000PPS constant speed)
// Stack
Writes bit data
pulse(0x1,4500);
pulse(0x2,0);
command(0,0x30);
// Seg 1
next_wait();
center(0x1,0);
center(0x2,1500);
pulse(0x1,1500);
pulse(0x2,1500);
command(0,0x33);
//Waits for next data set
// Seg 2
– 112 –