/// <summary> /// 关闭激光,移动激光聚焦点至加工起始位置 /// </summary> /// <param name="x"></param> /// <param name="y"></param> public static void Rtc_Ready(decimal x, decimal y) { UInt32 List_No = 1u; // wait list List_No to be not busy // load_list( List_No, 0) returns 1 if successful, otherwise 0 // 执行到POS 0 do { }while (RTC5Wrap.load_list(List_No, 0u) == 0); // Transmit the following list commands to the list buffer. RTC5Wrap.set_start_list(List_No); //修正当前位置00 RTC5Wrap.jump_abs(-Convert.ToInt32(y * Para_List.Parameter.Rtc_Pos_Reference), Convert.ToInt32(x * Para_List.Parameter.Rtc_Pos_Reference)); //设置List结束位置 RTC5Wrap.set_end_of_list(); //启动执行 RTC5Wrap.execute_list(List_No); //Busy 运行等待结束 uint Busy; do { RTC5Wrap.get_status(out Busy, out uint Position); } while (Busy != 0U); //goto 指定点 RTC5Wrap.goto_xy(-Convert.ToInt32(y * Para_List.Parameter.Rtc_Pos_Reference), Convert.ToInt32(x * Para_List.Parameter.Rtc_Pos_Reference)); }