public void DoGetParams(MachineParams src) { Axis_acc_xy = src.pMotion.Items[define_motion.wd_axis_xx].AccTime; Axis_limit_nx = src.pMotion.Items[define_motion.wd_axis_xx].LimitNeg; Axis_limit_ny = src.pMotion.Items[define_motion.wd_axis_yy].LimitNeg; Axis_limit_px = src.pMotion.Items[define_motion.wd_axis_xx].LimitPos; Axis_limit_py = src.pMotion.Items[define_motion.wd_axis_yy].LimitPos; Axis_orgin_x = src.pMotion.Items[define_motion.wd_axis_xx].OrginOff; Axis_orgin_y = src.pMotion.Items[define_motion.wd_axis_yy].OrginOff; }
public void DoInit() { //开启线程 mThread = new Thread(new ThreadStart(Do_Thread_Work)); mThread.Priority = ThreadPriority.Highest; pParams = mConfig.pParams; mConfig.DoOpen(); mMotion.pConfig = pParams; mMotion.DoInit(); }