-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacscontroller.h
54 lines (49 loc) · 2.08 KB
/
acscontroller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "ACSC.h"
class ACS_Controller
{
public:
HANDLE hComm;
int X = ACSC_AXIS_X;
int Y = ACSC_AXIS_Y;
int Z = ACSC_AXIS_Z;
int T = ACSC_AXIS_T;
int A = ACSC_AXIS_A;
int B = ACSC_AXIS_B;
int C = ACSC_AXIS_C;
int D = ACSC_AXIS_D;
static ACS_Controller *ACS_getInstance();
HANDLE ConnectACS();
HANDLE ConnectSimulatorACS();
ACSC_CONNECTION_INFO GetConnInfo(HANDLE Handle);
void ErrorsHandler(const char *ErrorMessage, BOOL fCloseComm, BOOL fStopMotors);
int StopBufferProgram(HANDLE Handle, int Buffer);
int RunBufferProgram(HANDLE Handle, int Buffer, char *Label);
int DisconnectACS(HANDLE Handle);
int GetFault(HANDLE Handle, int Axis);
int ClearFault(HANDLE Handle, int Axis);
int Disable(HANDLE Handle, int Axis);
int Enable(HANDLE Handle, int Axis);
int DisableFault(HANDLE Handle, int Axis);
int CommuteExt(HANDLE Handle, int Axis);
double GetPosition(HANDLE Handle, int Axis);
double GetVelocity(HANDLE Handle, int Axis);
double GetAcceleration(HANDLE Handle, int Axis);
int GetErrorDisconnect(HANDLE Handle);
void EmergencyStop(HANDLE Handle);
int ExtToPointM_mm(HANDLE Handle, double abs_point_mm, double vel, double endvel);
int SmoothPointToPointMotion_mm(HANDLE Handle, double abs_point_mm, double vel);
int HaltAxes(HANDLE Handle);
int SetAcceleration(HANDLE Handle, int Axis, double Acceleration);
int SetVelocity(HANDLE Handle, int Axis, double Velocity);
int TrackAxisMotion(HANDLE Handle, int Axis);
int AxisGoMotion(HANDLE Handle, int Axis);
int WriteInternalVar(HANDLE Handle, char *Label, double val);
int ToPointM(HANDLE Handle, double shiftx_mm, double shifty_mm, double shifta_mm);
int SetDeceleration(HANDLE Handle, int Axis, double Deceleration);
int SetKillDeceleration(HANDLE Handle, int Axis, double KillDeceleration);
int SetPosition(HANDLE Handle, int Axis, double FeedbackPosition);
int AxisMovement_timeout_ms(HANDLE Handle, int Axis, int Timeout);
private:
static ACS_Controller *ControllerPtr;
ACS_Controller();
};