From 331f447bb0e5eccf0b3161ab287c1372b14b8480 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期五, 08 八月 2025 11:53:58 +0800 Subject: [PATCH] 1.增加千传计数,保存计数,重启软件时恢复; 2.千传测试模式,打印相关日志,方便后期提取,用于统计; 3.千传模式时烘烤两腔体都要进入; 4.千传模式时,Fliper到Bonder修改为用手臂2取料; 5.修复千传模式不计运行时的问题; 6.千传模式,最后收料强制放入第一层; 6.修复Buf, 当任务未生成(在符合条件后仍有1秒间隙)而机器单元发送FetchOutJob时,数据检验失败的问题,增加Sleep, 缩小间隙; --- SourceCode/Bond/Servo/CPageGraph1.h | 31 +++++++++++++++++++++++++++++-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/SourceCode/Bond/Servo/CPageGraph1.h b/SourceCode/Bond/Servo/CPageGraph1.h index f891489..ffd2aeb 100644 --- a/SourceCode/Bond/Servo/CPageGraph1.h +++ b/SourceCode/Bond/Servo/CPageGraph1.h @@ -34,6 +34,7 @@ void RotateRobot(float angleInDegrees); void BindEquipmentToGraph(); void MoveRobotToPosition(SERVO::ROBOT_POSITION position); + void StartRobotMoveToPosition(SERVO::ROBOT_POSITION position); POINT LoadArmOffset(const std::string& armName); void SaveArmOffset(const std::string& armName, const POINT& pt); @@ -43,10 +44,36 @@ BOOL m_bIsRobotMoving; COLORREF m_crBkgnd; HBRUSH m_hbrBkgnd; + + // ===== 鏈哄櫒浜哄姩鐢荤浉鍏虫垚鍛樺彉閲� ===== + + // 鍔ㄧ敾鐩爣浣嶇疆锛堟満鍣ㄤ汉鐩爣浣嶇疆鏋氫妇锛� + SERVO::ROBOT_POSITION m_targetRobotPosition; + + // 鍔ㄧ敾璧峰鍜岀洰鏍� X 鍧愭爣锛堟按骞充綅绉伙級 + int m_nRobotMoveStartX; + int m_nRobotMoveEndX; + + // 鍔ㄧ敾姝ユ暟鎺у埗锛堟�绘鏁� & 褰撳墠姝ワ級 + int m_nRobotMoveSteps; // 鍔ㄧ敾鎬绘鏁帮紙鎺у埗鍔ㄧ敾閫熷害锛� + int m_nRobotMoveCurrentStep; // 褰撳墠鍔ㄧ敾姝ユ暟杩涘害 + + // 鍔ㄧ敾璧峰鍜岀洰鏍囪搴︼紙鏃嬭浆瑙掑害锛屽崟浣嶏細搴︼級 + float m_nRobotMoveStartAngle; // 璧峰瑙掑害 + float m_nRobotMoveEndAngle; // 鐩爣瑙掑害锛堟棆杞搴︼級 + + // ===== 鏈哄櫒浜虹姸鎬佺浉鍏虫垚鍛樺彉閲� ===== + + // 涓婁竴娆″凡瀹屾垚鐨勪綅缃紙鐢ㄤ簬鍒ゆ柇鏄惁闇�瑕佺Щ鍔級 SERVO::ROBOT_POSITION m_lastRobotPosition; + + // 涓婁竴娆″凡鏇存柊鐨勬満鍣ㄤ汉 ARM 鍗犵敤鐘舵�侊紙涓や釜鏈烘鑷傦級 BOOL m_lastArmState[2]; - POINT m_arm1Offset; // ARM1 浠庝腑蹇冨悜宸�47, 鍚戜笂33 - POINT m_arm2Offset; // ARM2 浠庝腑蹇冨悜鍙�10, 鍚戜笂33 + + // 涓や釜鏈烘鑷傜浉瀵逛簬鏈哄櫒浜轰腑蹇冪殑鍋忕Щ锛堝儚绱犲潗鏍囷級 + POINT m_arm1Offset; + POINT m_arm2Offset; + // 瀵硅瘽妗嗘暟鎹� #ifdef AFX_DESIGN_TIME -- Gitblit v1.9.3