TCircularModeUnion¶
不同圆弧描述模式参数联合体
结构体说明:
typedef union TCircularModeUnion
{
TCircularPlaneCenterDirData centerDir;
TCircularPlaneRadiusDirData radiusDir;
TCircularSpaceBorderData spaceBorder;
TCircularSpaceBorderFourData spaceBorderFour;
TCircularPlaneCenterDirSpiralData spiral;
double data[32];
} TCircularModeUnion;
TCircularPlaneCenterDirData
typedef struct TCircularPlaneCenterDirData
{
short endPointMode;
short arcPlane;
short arcPathChoice;
short pad; //对齐
double centralAngle;
double centerPoint[8];
}TCircularPlaneCenterDirData;
arcPlane:圆弧插补平面/螺旋线插补平面。
CIRCULAR_PLANE_XY(0):XY平面圆弧。
CIRCULAR_PLANE_YZ(1):YZ平面圆弧。
CIRCULAR_PLANE_ZX(2):ZX平面圆弧。
CIRCULAR_PLANE_XY_HELIX(10):基于XY平面的螺旋线。
CIRCULAR_PLANE_YZ_HELIX(11):基于YZ平面的螺旋线。
CIRCULAR_PLANE_ZX_HELIX(12):基于ZX平面的螺旋线。
centralAngle:圆心角,单位:度。当终点指定模式为CIRCULAR_END_POINT_MODE_CENTRAL_ANGLE(1)时需要指定。
centerPoint:圆弧的圆心点位置。单位:mm。
radiusDir:平面圆弧半径+方向模式的描述参数。详情说明请参照TCircularPlaneRadiusDirData
TCircularPlaneRadiusDirData
typedef struct TCircularPlaneRadiusDirData
{
short endPointMode;
short arcPlane;
short arcPathChoice;
short pad; //对齐
double centralAngle;
double arcRadius;
}TCircularPlaneRadiusDirData;
arcPlane:圆弧插补平面/螺旋线插补平面。
CIRCULAR_PLANE_XY(0):XY平面圆弧。
CIRCULAR_PLANE_YZ(1):YZ平面圆弧。
CIRCULAR_PLANE_ZX(2):ZX平面圆弧。
CIRCULAR_PLANE_XY_HELIX(10):基于XY平面的螺旋线。
CIRCULAR_PLANE_YZ_HELIX(11):基于YZ平面的螺旋线。
CIRCULAR_PLANE_ZX_HELIX(12):基于ZX平面的螺旋线。
pad:保留参数,必须为0。
centralAngle:圆心角,单位:度。当终点指定模式为CIRCULAR_END_POINT_MODE_CENTRAL_ANGLE(1)时需要指定。
arcRadius:圆弧半径。单位:mm。
spaceBorder:三点空间圆弧模式的描述参数。详情说明请参照TCircularSpaceBorderData
TCircularSpaceBorderData
typedef struct TCircularSpaceBorderData
{
short endPointMode;
short pad[3]; //对齐
double centralAngle;
double auxPoint[8];
}TCircularSpaceBorderData;
pad:保留参数,必须为0。
centralAngle:圆心角,单位:度。当终点指定模式为CIRCULAR_END_POINT_MODE_CENTRAL_ANGLE(1)时需要指定。
auxPoint:圆弧的辅助点位置,表示圆弧上的某个点坐标。单位:mm。
spaceBorderFour:四点空间圆弧模式的描述参数。详情说明请参照TCircularSpaceBorderFourData
TCircularSpaceBorderFourData
typedef struct CircularSpaceBorderFourData
{
short endPointMode;
short auxPointCommandCoord;
short auxPointOrientationMode;
short auxPointConfigIndex;
short auxStartPointCommandCoord;
short auxStartPointOrientationMode;
short auxStartPointConfigIndex;
short pad;
double centralAngle;
double auxPoint[8];
double auxStartPoint[8];
}TCircularSpaceBorderFourData;
auxPointCommandCoord:中间点位置描述坐标系。
auxPointOrientationMode:中间点位置描述姿态。
auxPointConfigIndex:中间点构型解。
auxStartPointCommandCoord:辅助起点位置描述坐标系。
auxStartPointOrientationMode:辅助起点位置描述姿态。
auxStartPointConfigIndex:辅助起点构型解。
centralAngle:圆心角,单位:度。 当终点指定模式为CIRCULAR_END_POINT_MODE_CENTRAL_ANGLE(1)时需要指定。
auxPoint:圆弧的辅助点位置,表示圆弧上的某个点坐标。单位:mm。
auxStartPoint:圆弧的辅助起点位置,圆弧通过辅助起点,辅助点和终点确定,包括圆弧运动的方向,若起点位置和圆弧运动时真正的起点位置相同时,等同于CIRCULAR_MODE_SPACE_BORDER模式,若起点位置不是圆弧运动时真正的起点位置时,则辅助起点仅用于描述圆弧,圆弧运动可以不经过辅助起点。单位:mm。
spiral:涡旋线的描述参数。详情说明请参照TCircularPlaneCenterDirSpiralData
TCircularPlaneCenterDirSpiralData
typedef struct CircularPlaneCenterDirSpiralData
{
short endPointMode;
short arcPlane;
short arcPathChoice;
short periodCount;
double centralAngle;
double centerPoint[8];
double periodDeltaRadius;
}TCircularPlaneCenterDirSpiralData;
arcPlane:圆弧插补平面/螺旋线插补平面。
CIRCULAR_PLANE_XY(0):XY平面圆弧。
CIRCULAR_PLANE_YZ(1):YZ平面圆弧。
CIRCULAR_PLANE_ZX(2):ZX平面圆弧。
CIRCULAR_PLANE_XY_HELIX(10):基于XY平面的螺旋线。
CIRCULAR_PLANE_YZ_HELIX(11):基于YZ平面的螺旋线。
CIRCULAR_PLANE_ZX_HELIX(12):基于ZX平面的螺旋线。
periodCount:圈数。范围:大于等于-1的整数。当periodCount为-1时,圈数由periodDeltaRadius决定,当圈数为0时,只运动一圈。注意:设置的圈数包含不到360度的那一圈。
centralAngle:圆心角,单位:度。当终点指定模式为CIRCULAR_END_POINT_MODE_CENTRAL_ANGLE(1)时需要指定。
centerPoint:圆弧的圆心点位置。单位:mm。 periodDeltaRadius:每转一圈半径的变化值,单位:mm,范围:大于0的值。根据起点半径和终点半径,可以自动计算出圈数。只有在periodCount为-1时生效。
相关指令: