57 void DE_SetMotor(
int mod,
int motor,
int coppia,
int step,
int slope,
int speed)
106 sprintf(buf,
"%s",
"Positioning");
113 if(er) {
Message(
"n Step not sent! 1", er);
break; }
120 sprintf(buf,
"%s",
"Positioning");
127 if(er) {
Message(
"n Step not sent! 1", er);
break; }
134 sprintf(buf,
"%s",
"Positioning");
141 if(er) {
Message(
"n Step not sent! 1", er);
break; }
214 void DE_PWM(
int mod,
int channel,
int value)
void DE_SetRelais(int mod, int channel, int value)
DXL structure. Structure for the serial communication with the AMS adapter.
void MPixmapSetImageFile(MOBJECT pixmap, const char *fname)
flag Flag
Structure for different flags.
#define DBDEMO
execution in demo mode
int DE_ReadAD(int mod, int channel)
void MObjectSetText(MOBJECT obj, const char *text)
void sleep(clock_t wait)
Pauses for a specified number of milliseconds. .
int DE_InitMotor(int mod, int motor, int mswitch)
void DE_SetMotor(int mod, int motor, int coppia, int step, int slope, int speed)
int add
Peripheral address.
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
int DE_StsMotor(int mod, int motor)
void DE_PWM(int mod, int channel, int value)
unsigned int DE_ReadPort(int mod, int port)
void DE_WritePort(int mod, int port, unsigned int data)
int DE_StepMotor(int mod, int motor, long step, int dir)
void Message(char *str, int er)
Create a message shell for the AMS errors (Debug Use). .
unsigned int DE_WriteEP(unsigned int add, unsigned int data)
int AMS_DoPos(int id, int dira, int dirb, unsigned long stepa, unsigned long stepb)
Execute Positioning Execute Stepper positioning. Make all the control on the status of the selected m...
int exemode
Set the Execution MODE (Execution modes)
unsigned int DE_ReadEP(unsigned int add)