top of page
/*
Function description: Store a joint point position information
id - Stores the point id, starting with 1, independently of the point id of CARTPoint
double j1−j6 − 6 joint positions in degrees
*/
int JNTPoint(int id, double j1, double j2, double j3, double j4, double j5, double j6)
// Examples
JNTPoint(1,10,11,12,13,14,15)
/*
Function description: Store a Cartesian point position information
id - Stores the point id, starting from 1, independently of the point id of JNTPoint
double x,y,z,rx,ry,yz - Cartesian point position information, position in mm, Angle in degrees
*/
int CARTPoint(int id, double x,y,z,rx,ry,rz)//Store a point in Cartesian space
// Examples
CARTPoint(1,100,110,200,0,0,0)
/*
Function description: Get the joint or Cartesian position information of the specified sequence point
string name - 'JNT' or 'CART', where JNT stands for getting information about joint points and 'CART' stands for getting information about Cartesian points
int id - The point id, starting at 1
*/
string GET(string name, int id)//Get the contents of the corresponding id sequence number point; name can be entered as JNT or CART
// Examples
GET(JNT,1)
/*
Function description: Drag mode switch
uint8_t state - 1- Enable drag mode,0- disable drag mode
*/
int DragTeachSwitch(uint8_t state)
// Examples
DragTeachSwitch(0)
/*
Function description: Manipulator enable switch
uint8_t state - 1 -manipulator enabled,0 -manipulator deenabled
*/
int RobotEnable(uint8_t state)
// Examples
RobotEnable(1)
/*
Function description:Mode switching
uint8_t state - 1- Manual mode,0- automatic mode
*/
int Mode(uint8_t state)
// Examples
Mode(1)
/*
Function description:Set the manipulator speed in the current mode
float vel - Percentage of speed, ranging from 1-100
*/
int SetSpeed(float vel)
// Examples
SetSpeed(10)
/*
Function description:Sets and loads the tool coordinate system with the specified sequence number
int id - Tool coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information for the tool coordinate system
*/
int SetToolCoord(int id, float x,float y, float z,float rx,float ry,float rz)
// Examples
SetToolCoord(1,0,0,0,0,0,0)
/*
Function description:Set the list of tool coordinate systems
int id - Tool coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information for the tool coordinate system
*/
int SetToolList(int id, float x,float y, float z,float rx,float ry,float rz );
// Examples
SetToolList(1,0,0,0,0,0,0)
/*
Function description:Set the external tool coordinate system
int id - Tool coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information for the external tool coordinate system
*/
int SetExToolCoord(int id, float x,float y, float z,float rx,float ry,float rz);
// Examples
SetExToolCoord(1,0,0,0,0,0,0)
/*
Function description:Sets the list of external tool coordinate systems
int id - Tool coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information for the external tool coordinate system
*/
int SetExToolList(int id, float x,float y, float z,float rx,float ry,float rz);
// Examples
SetExToolList(1,0,0,0,0,0,0)
/*
Function description:Set the workpiece coordinate system
int id - Workpiece coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information of the workpiece coordinate system
*/
int SetWObjCoord(int id, float x,float y, float z,float rx,float ry,float rz);
// Examples
SetWObjCoord(1,0,0,0,0,0,0)
/*
Function description:Set the list of workpiece coordinate systems
int id - Workpiece coordinate system number, range 1-15
float x,y,z,rx,ry,rz - Offset information of the workpiece coordinate system
*/
int SetWObjList(int id, float x,float y, float z,float rx,float ry,float rz);
// Examples
SetWObjList(1,0,0,0,0,0,0)
/*
Function description:Set the end load weight
float weight - Load weight in kg
*/
int SetLoadWeight(float weight);
// Examples
SetLoadWeight(3.5)
/*
Function description:Set the end-load centroid coordinates
float x,y,z - Coordinates of the center of mass in mm
*/
int SetLoadCoord(float x,float y,float z);
// Examples
SetLoadCoord(10,20,30)
/*
Function description:Set the robot installation mode
uint8_t install - Installation mode,0- formal,1- side,2- inverted
*/
int SetRobotInstallPos(uint8_t install);
// Examples
SetRobotInstallPos(0)
/*
Function description:Set the robot installation Angle, free installation
double yangle - Angle of inclination
double zangle - Angle of rotation
*/
int SetRobotInstallAngle(double yangle,double zangle);
// Examples
SetRobotInstallAngle(90,0)
//Security configuration
/*
Function description:Set the robot collision level
float level1-level6 - Collision levels for axes 1-6, ranging from 1-10
*/
int SetAnticollision(float level1, float level2, float level3, float level4, float level5, folat level6);
// Examples
SetAnticollision(1,1,1,1,1,1)
/*
* @brief Set the post-collision strategy
* @param [in] strategy 0-Error and stop, 1-Continue running
* @param [in] safeTime Safe stop time [1000 - 2000] ms
* @param [in] safeDistance Safe stop distance [1-150] mm
* @param [in] safeVel Safe speed [50-250] mm/s
* @param [in] safetyMargin Safety factor for J1-J6 [1-10]
* @return Error code
*/
int SetCollisionStrategy(int strategy, int safeTime, int safeDistance, int safeVel, int safetyMargin[]);
// Example
SetCollisionStrategy(1);
/**
* @brief sets the collision detection method of the robot
* @param [in] method Collision detection method: 0- current mode; 1- Dual encoder; 2- Current and dual encoder turn on simultaneously
* @param [in] thresholdMode Collision level threshold method 0-Collision level fixed threshold mode 1- Customize collision detection thresholds
* @return error code
*/
int SetCollisionDetectionMethod(int method, int thresholdMode);
// Examples
SetCollisionDetectionMethod(0,0)
/**
* @brief Indicates that collision detection is disabled in static mode
* @param [in] status 0- Off; 1- Open
* @return error code
*/
int SetStaticCollisionOnOff(int status);
// Examples
SetStaticCollisionOnOff(1)
/**
* @brief joint torque power detection
* @param [in] status 0- Off; 1- Open
* @param [in] power Set maximum power (W);
* @return error code
*/
int SetPowerLimit(int status, double power);
//Examples
SetPowerLimit(1,100)
/**
*@brief Configured force sensor
*@param [in] company Manufacturer of force sensors, 17-KUNWEI,19-CAAA,20-ATI,21-HKM,22-GZCX,23-NBIT,24-XJC,26-NSR
*@param [in] device Device number, KUNWEI(0-KWR75B),CAAA(0-MCS6A-200-4),ATI(0-AXIA80-M8),HKM(0-MST2010),GZCX(0-WHC6L-YB-10A),NBIT(0-XLH93003ACS),XJC(0-XJC-6F-D82),NSR(0-NSR-FTSensorA)
*@param [in] softvesion Software version. The value is not used. The default value is 0
*@param [in] bus The device is attached to the terminal bus and is not in use. The default value is 0
*@return Error code
*/
int FT_SetConfig(int company, int device,