top of page
Changed in version Java: SDK-v1.0.4-3.8.1
/**
* @brief Conveyor parameter configuration
* @param [in] encChannel Encoder channel 1~2
* @param [in] resolution Pulses per encoder revolution
* @param [in] lead Conveyor travel distance per encoder revolution
* @param [in] wpAxis Workpiece coordinate system number For tracking motion function, set to 0 for tracking grasp and TPD tracking
* @param [in] vision Whether vision is configured 0 no 1 yes
* @param [in] speedRadio Speed ratio For conveyor tracking grasp option (1-100) Default 1 for other options
* @param [in] followType Tracking motion type, 0-tracking motion; 1-chasing inspection motion
* @param [in] startDis Required for chasing grasp, tracking start distance, -1: auto calculate (automatically chase after workpiece reaches below robot), unit mm, default 0
* @param [in] endDis Required for chasing grasp, tracking end distance, unit mm, default 100
* @return Error code
*/
int ConveyorSetParam(int encChannel, int resolution, double lead, int wpAxis, int vision, double speedRadio, int followType, int startDis, int endDis);
11.29. Set conveyor grasp point compensation
/**
* @brief Set conveyor grasp point compensation
* @param [in] cmp Compensation position double[3]{x, y, z}
* @return Error code
*/
int ConveyorCatchPointComp(Object[] cmp);
11.30. Conveyor linear motion
/**
* @brief Linear motion
* @param [in] name Motion point description
* @param [in] tool Tool coordinate number, range [0~14]
* @param [in] wobj Workpiece coordinate number, range [0~14]
* @param [in] vel Speed percentage, range [0~100]
* @param [in] acc Acceleration percentage, range [0~100], not currently available
* @param [in] ovl Speed scaling factor, range [0~100]
* @param [in] blendR [-1.0]-move to position (blocking), [0~1000.0]-smoothing radius (non-blocking), unit mm
* @return Error code
*/
int ConveyorTrackMoveL(String name, int tool, int wobj, double vel, double acc, double ovl, double blendR);
11.31. Conveyor communication input detection
New in version Java: SDK-v1.0.4-3.8.1
/**
* @brief Conveyor communication input detection
* @param [in] timeout Wait timeout time ms
* @return Error code
*/
int ConveyorComDetect(int timeout);
11.32. Conveyor communication input detection trigger
New in version Java: SDK-v1.0.4-3.8.1
/**
* @brief Conveyor communication input detection trigger
* @param [in] timeout Wait timeout time ms
* @return Error code
*/
int ConveyorComDetectTrigger();
11.33. Robot conveyor operation example program
public static int TestConveyor(Robot robot)
{
int retval = 0;
retval = robot.ConveyorStartEnd(1);
retval = robot.ConveyorPointIORecord();
retval = robot.ConveyorPointARecord();
retval = robot.ConveyorRefPointRecord();
retval = robot.ConveyorPointBRecord();
retval = robot.ConveyorStartEnd(0);
retval = 0;
retval = robot.ConveyorSetParam(1,10000,200,0,0,20,0,0,100);
Object[] cmp = new Object[]{ 0.0, 0.0, 0.0 };
retval = robot.ConveyorCatchPointComp(cmp);
int index = 1;
int max_time = 30000;
int block = 0;
retval = 0;
DescPose p1Desc=new DescPose(-419.524, -13.000, 351.569, -178.118, 0.314, 3.833);
DescPose p2Desc=new DescPose(-321.222, 185.189, 335.520, -179.030, -1.284, -29.869);
retval = robot.MoveCart(p1Desc, 1, 0, 100.0, 100.0, 100.0, -1.0, -1);
retval = robot.WaitMs(1);
retval = robot.ConveyorTrackStart(1);
retval = robot.ConveyorTrackMoveL("cvrCatchPoint", 1, 0, 100, 100, 100, -1.0);
retval = robot.MoveGripper(index, 51, 40, 30, max_time, block, 0, 0, 0, 0);
retval = robot.ConveyorTrackMoveL("cvrRaisePoint", 1, 0, 100, 100, 100, -1.0);
retval = robot.ConveyorTrackEnd();
robot.MoveCart(p2Desc, 1, 0, 100.0, 100.0, 100.0, -1.0, -1);
retval = robot.MoveGripper(index, 100, 40, 10, max_time, block, 0, 0, 0, 0);
return 0;
}
11.34. End sensor configuration
/**
* @brief End sensor configuration
* @param [in] config idCompany Manufacturer, 18-JUNKONG; 25-HUIDE
* @param [in] config idDevice Type, 0-JUNKONG/RYR6T.V1.0
* @param [in] config idSoftware Software version, 0-J1.0/HuiDe1.0(not currently available)
* @param [in] config idBus Mount position, 1-end port 1; 2-end port 2...8-end port 8(not currently available)
* @return Error code
*/
int AxleSensorConfig(DeviceConfig config);
11.35. Get end sensor configuration
/**
* @brief Get end sensor configuration
* @param [out] config idCompany Manufacturer, 18-JUNKONG; 25-HUIDE
* @param [out] config idDevice Type, 0-JUNKONG/RYR6T.V1.0
* @return Error code
*/
int AxleSensorConfigGet(DeviceConfig config);
11.36. End sensor activation
/**
* @brief End sensor activation
* @param [in] actFlag 0-reset; 1-activate
* @return Error code
*/
int AxleSensorActivate(int actFlag);
11.37. End sensor register write
/**
* @brief End sensor register write
* @param [in] devAddr Device address number 0-255
* @param [in] regHAddr Register address high 8 bits
* @param [in] regLAddr Register address low 8 bits
* @param [in] regNum Register count 0-255
* @param [in] data1 Write register value 1
* @param [in] data2 Write register value 2
* @param [in] isNoBlock 0-blocking; 1-non-blocking
* @return Error code
*/
int AxleSensorRegWrite(int devAddr, int regHAddr, int regLAddr, int regNum, int data1, int data2, int isNoBlock);
11.38. End sensor code example
public static int TestAxleSensor(Robot robot)
{
DeviceConfig con=new DeviceConfig(18,0,0,1);
robot.AxleSensorConfig(con);
int company =