|
|
#pragma once
|
|
|
|
|
|
//读写文件的标签,目的是灵活读写mak 文件,可以随时添加删除参数,并且不影响之前的mak 文件
|
|
|
|
|
|
|
|
|
//新加入的类型必须加在后面,否则以前保存的文档不能读取
|
|
|
enum LAB_TYPE
|
|
|
{
|
|
|
LAB_NULL = 0,//也可以不指定任何标签,由模块自己管理
|
|
|
LAB_MODULE_START,//模块开始,后面跟模块的索引值
|
|
|
LAB_MODULE_END,//模块结束
|
|
|
LAB_MODULE_TYPE,//模块的类型
|
|
|
//模板数据的标签-----------------------------------
|
|
|
LAB_TEMPLATE_START,//模板开始
|
|
|
LAB_TEMPLATE_END,//模板结束
|
|
|
LAB_OBJ_START,//对象开始
|
|
|
LAB_OBJ_END,//对象结束
|
|
|
LAB_OBJ_TYPE,//obj 的类型
|
|
|
LAB_PEN_NUM,//obj 轮廓的笔号
|
|
|
LAB_POINT_START,//obj 数据点开始
|
|
|
LAB_POINT_END,//obj 数据点结束
|
|
|
LAB_POINT_X,//数据点的X 坐标
|
|
|
LAB_POINT_Y,//数据点的Y 坐标
|
|
|
LAB_POINT_IS_NODE,//数据点是否为节点
|
|
|
LAB_SIZE_W,//尺寸宽度
|
|
|
LAB_SIZE_H,//尺寸高度
|
|
|
LAB_MARK_PAR_START,//振镜参数
|
|
|
LAB_MARK_PAR_END,//振镜参数
|
|
|
LAB_MARK_AREA_START,//标刻区域
|
|
|
LAB_MARK_AREA_END,//标刻区域
|
|
|
LAB_PRODUCT_START,//产品
|
|
|
LAB_PRODUCT_END,//产品
|
|
|
LAB_OBJ_IS_CIRCLE,//原件对象是否为圆形
|
|
|
LAB_CIRCLE_R,//圆半径
|
|
|
LAB_CIRCLE_D,//圆直径
|
|
|
LAB_CIRCLE_EDGE_CNT,//圆边数
|
|
|
//杭州士兰激光退火设备-----------------------------------------------
|
|
|
LAB_TH_START,//激光退火
|
|
|
LAB_TH_END,//激光退火
|
|
|
LAB_TH_SCAN_OVERLAP,//扫描重叠率
|
|
|
LAB_TH_SCAN_LINE_START,//扫描线START
|
|
|
LAB_TH_SCAN_LINE_END,//扫描线END
|
|
|
LAB_TH_SCAN_LINE_SPT_X,//开始点的X
|
|
|
LAB_TH_SCAN_LINE_SPT_Y,//开始点的Y
|
|
|
LAB_TH_SCAN_LINE_EPT_X,//结束点的X
|
|
|
LAB_TH_SCAN_LINE_EPT_Y,//结束点的Y
|
|
|
LAB_TH_SCAN_LINE_SPOT_DIA,//光斑直径
|
|
|
LAB_TH_SCAN_LINE_BSCAN,//是否被扫描过
|
|
|
LAB_TH_M_PT_START,//测量点START
|
|
|
LAB_TH_M_PT_END,//测量点END
|
|
|
LAB_TH_M_PT_X,//坐标X
|
|
|
LAB_TH_M_PT_Y,//坐标Y
|
|
|
LAB_TH_M_PT_TMP,//温度
|
|
|
LAB_TH_M_PT_POWER,//功率
|
|
|
LAB_TH_M_PT_OBJ_IDX,//OBJ 索引值
|
|
|
LAB_TH_LOT_ID,//lot ID
|
|
|
LAB_TH_WAFER_ID,//晶圆ID
|
|
|
LAB_TH_LASER_808_V,//808 激光器的电压
|
|
|
//优派克CO2 设备--------------------------------------------------------
|
|
|
LAB_UPK_PRODUCT_THICKNESS,//产品厚度
|
|
|
LAB_UPK_PRODUCT_DIA,//产品直径
|
|
|
LAB_UPK_HOLE_WIDTH,//方孔宽度
|
|
|
LAB_UPK_HOLE_DIA,//开孔直径
|
|
|
LAB_UPK_LASER_POWER,//激光功率
|
|
|
|
|
|
LAB_OBJ_IS_MARK,//obj 对象是否是mark 点
|
|
|
|
|
|
LAB_OBJ_ARC_START_X,
|
|
|
LAB_OBJ_ARC_START_Y,
|
|
|
LAB_OBJ_ARC_END_X,
|
|
|
LAB_OBJ_ARC_END_Y,
|
|
|
LAB_OBJ_ARC_CENTER_X,
|
|
|
LAB_OBJ_ARC_CENTER_Y,
|
|
|
LAB_OBJ_ARC_EDGE_CNT,
|
|
|
LAB_OBJ_ARC_DIR,
|
|
|
|
|
|
LAB_ADJUST_OFFSET_X,
|
|
|
LAB_ADJUST_OFFSET_Y,
|
|
|
LAB_ADJUST_SIZE_X,
|
|
|
LAB_ADJUST_SIZE_Y,
|
|
|
LAB_ROTATO_ADJUST,
|
|
|
|
|
|
LAB_RCD_START,
|
|
|
LAB_RCD_END,
|
|
|
LAB_RCD_WORK_START_TIME,//开始加工时间
|
|
|
LAB_RCD_WORK_END_TIME,//结束加工时间
|
|
|
LAB_RCD_WORK_SPAN_TIME,//加工用时
|
|
|
LAB_RCD_WORK_SPAN_TIME_SECOND,//加工用时(秒)
|
|
|
LAB_RCD_USER_NAME,//用户名
|
|
|
LAB_RCD_USER_TYPE,//用户权限
|
|
|
LAB_RCD_WORK_PAR1,//加工参数
|
|
|
LAB_RCD_WORK_PAR2,//加工参数
|
|
|
LAB_RCD_WORK_PAR3,//加工参数
|
|
|
LAB_RCD_WORK_PAR4,//加工参数
|
|
|
LAB_RCD_WORK_PAR5,//加工参数
|
|
|
LAB_RCD_WORK_PAR6,//加工参数
|
|
|
LAB_RCD_WORK_PAR7,//加工参数
|
|
|
LAB_RCD_WORK_PAR8,//加工参数
|
|
|
LAB_RCD_WORK_PAR9,//加工参数
|
|
|
LAB_RCD_WORK_PAR10,//加工参数
|
|
|
LAB_RCD_WORK_PAR11,//加工参数
|
|
|
LAB_RCD_WORK_PAR12,//加工参数
|
|
|
LAB_RCD_WORK_PAR13,//加工参数
|
|
|
LAB_RCD_WORK_PAR14,//加工参数
|
|
|
LAB_RCD_WORK_PAR15,//加工参数
|
|
|
LAB_RCD_WORK_PAR16,//加工参数
|
|
|
LAB_RCD_WORK_PAR17,//加工参数
|
|
|
LAB_RCD_WORK_PAR18,//加工参数
|
|
|
LAB_RCD_WORK_PAR19,//加工参数
|
|
|
LAB_RCD_WORK_PAR20,//加工参数
|
|
|
LAB_RCD_PRODUCT_ID,//产品ID
|
|
|
|
|
|
LAB_TUIHUO_FOCUS_ADJUST_VAL,//焦距调整量
|
|
|
LAB_TUIHUO_SCAN_AREA_NAME,//扫描区域的名字
|
|
|
|
|
|
LAB_RCD_PRODUCT_IDX,//产品片号
|
|
|
LAB_RCD_SCAN_AREA_NAME,//扫描区域的名字
|
|
|
LAB_RCD_PEN_SEL_STATE,//笔号的选中状态
|
|
|
|
|
|
LAB_RCD_WORK_DATE_TIME_NAME,//日期和时间(用来查找对应的测量结果文件)
|
|
|
|
|
|
LAB_RCD_END_SCAN_LINE_IDX,////结束扫描时扫描线的索引值(用来恢复中断的情况)
|
|
|
LAB_RCD_TOTAL_SCAN_LINE_CNT,//扫描线的总数
|
|
|
|
|
|
LAB_TUIHUO_AUTO_POWER_MODE,//功率自动匹配模式
|
|
|
};
|
|
|
|
|
|
//写成可读的txt 文件才需要
|
|
|
inline CString GetLabTypeStr(LAB_TYPE type)
|
|
|
{
|
|
|
CString str;
|
|
|
switch(type)
|
|
|
{
|
|
|
case LAB_MODULE_START:
|
|
|
str = "LAB_MODULE_START";
|
|
|
break;
|
|
|
case LAB_MODULE_END:
|
|
|
str = "LAB_MODULE_END";
|
|
|
break;
|
|
|
case LAB_TEMPLATE_START:
|
|
|
str = "LAB_TEMPLATE_START";
|
|
|
break;
|
|
|
case LAB_TEMPLATE_END:
|
|
|
str = "LAB_TEMPLATE_END";
|
|
|
break;
|
|
|
case LAB_MARK_PAR_START:
|
|
|
str = "LAB_MARK_PAR_START";
|
|
|
break;
|
|
|
case LAB_MARK_PAR_END:
|
|
|
str = "LAB_MARK_PAR_END";
|
|
|
break;
|
|
|
case LAB_MARK_AREA_START:
|
|
|
str = "LAB_MARK_AREA_START";
|
|
|
break;
|
|
|
case LAB_MARK_AREA_END:
|
|
|
str = "LAB_MARK_AREA_END";
|
|
|
break;
|
|
|
case LAB_OBJ_START:
|
|
|
str = "LAB_OBJ_START";
|
|
|
break;
|
|
|
case LAB_OBJ_END:
|
|
|
str = "LAB_OBJ_END";
|
|
|
break;
|
|
|
case LAB_OBJ_TYPE:
|
|
|
str = "LAB_OBJ_TYPE";
|
|
|
break;
|
|
|
case LAB_PEN_NUM:
|
|
|
str = "LAB_PEN_NUM";
|
|
|
break;
|
|
|
case LAB_POINT_START:
|
|
|
str = "LAB_POINT_START";
|
|
|
break;
|
|
|
case LAB_POINT_END:
|
|
|
str = "LAB_POINT_END";
|
|
|
break;
|
|
|
case LAB_POINT_X:
|
|
|
str = "LAB_POINT_X";
|
|
|
break;
|
|
|
case LAB_POINT_Y:
|
|
|
str = "LAB_POINT_Y";
|
|
|
break;
|
|
|
case LAB_POINT_IS_NODE:
|
|
|
str = "LAB_POINT_IS_NODE";
|
|
|
break;
|
|
|
default:
|
|
|
str = "LAB_NULL";
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return str;
|
|
|
}
|
|
|
|
|
|
|
|
|
|