求大神指导,这些代码的具体注释是什么!
#include “ADT836.h”Void main ()
{
Set_address (0,0x1000);
Set_pulse_mode (0,1,1,0,0);
Set_range (0,1,8000000);
Set_startv (0,1,1000);
Set_speed (0,1,1000);
Pmove (0,1,10000);
Int s;
While(1)
{
Get_status (0,1,&s);
If (s==0)break;
}
Return;
}
电机对称加/减速运动
#include ”ADT836.h”
Void main ()
{
Set_address (0,0x1000);
Set_pulse_mode (0,1,1,0,0);
Set_ad_mode (0,1,0);
Set_dec1_mode (0,1,0);
Set_dec2_mode (0,1,0);
Set_range (0,1,1600000);
Set_startv (0,1,400);
Set_speed (0,1,4000);
Set_acc (0,1,64);
Pmove (0,1,20000);
Int s;
While (1)
{
Get_status (0,1,&s) ;
If(s==0) break;
}
Return;
}