B.8.3 sendmessage, B-31 – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 283

v1.addline ( 50000*k_x, 0*k_y);
v1.addline ( 50000*k_x, 15000*k_y);
v1.addcircle( 5000*k_x, 180, -180);
v1.vsp = 50000;
v1.vse = 0;
v1.addline ( 60000*k_x, 0*k_y);
v1.addline ( 60000*k_x, 15000*k_y);
v1.addcircle( 5000*k_x, 180, -180 );
v1.addline ( 70000*k_x, 0*k_y);
//letter
'o'
v1.addline ( 80000*k_x, 15000*k_y);
v1.addcircle( 5000*k_x, 180, -180 );
v1.addline ( 90000*k_x, 5000*k_y);
v1.addcircle( 5000*k_x, 0, -180 );
v1.vsp = 50000;
v1.vse = 0;
v1.addline ( 80000*k_x, 15000*k_y);
v1.ends();
v1.bg;
end function
v1.vqt = 4;
end function
//wait for motion status of vector = 0
function wait_motion()
while( a1.ms||a2.ms )
wait( 1 );
end
end function
// this function re-uses a trajectory that
//was built above
function reUseTrajectory()
v1.vdt
=
500
v1.dotrj(pvtdata)
while((a1.ms==2)||(a2.ms==2))
wait(10)
end
while
end function
B.8.3
SendMessage
//
!!!! Pay attention !!!
// Before running this program please run
// TestInterrupt.exe file from current directory
function run()
int i,k
for
i=1:100
k=i
if(!messagex(i,systime(), k*k))
wait(100)
end
wait(4)
end
for
end function
Maestro
Software Manual
Appendix B: Sample Programs
MAN-MASSW (Ver. Q)
B-31