0209整理

This commit is contained in:
2026-02-10 10:18:17 +08:00
parent d6ad01274a
commit 6e74eaf206
62 changed files with 838 additions and 9136 deletions

View File

@ -25,6 +25,7 @@ class SystemState:
self._upper_door_closed=True
self._upper_weight=0
self._upper_volume=0.0
#下料比例变频
self.vf_frequencys=[{'radio':0,'fre':230},{'radio':0.3,'fre':230},{'radio':0.6,'fre':230}]
#使用
@ -32,55 +33,26 @@ class SystemState:
self._mould_vibrate_status=False #True振动中False未振动
#记录模具开始振动的时间
self.mould_vibrate_time=0
#下料斗状态想着
self.lower_feeding_stage = 0 # 0:未下料, 1:第一阶段, 2:第二阶段, 3:第三阶段, 4:等待模具车对齐
#下料斗状态
self._lower_is_arch_=False
self._lower_weight=0
self._lower_angle=0.0
#模具车状态
self._mould_weight=0
self.lower_feeding_cycle = 0 # 下料斗下料循环次数
self.upper_feeding_count = 0 # 上料斗已下料次数
self.upper_feeding_max = 2 #上料斗最大下料次数
# 重量相关
self.last_upper_weight = 0
self.last_lower_weight = 0
self.last_weight_time = 0
#需要下料的总重量
self._mould_need_weight=0
#完成下料的总重量
self._mould_finish_weight=0
self.initial_upper_weight=0
self.initial_lower_weight=0
# 错误计数
self.upper_weight_error_count = 0
self.lower_weight_error_count = 0
# 视觉系统状态
self.angle_control_mode = "normal" # 角度控制模式: normal, reducing, maintaining, recovery
self.overflow_detected = "0" # 堆料检测
self.current_finish_status=False # 当前是否完成浇筑满
self.door_opening_large = False # 夹角
self.vehicle_aligned = False # 模具车是否对齐
self.last_angle = None # 上次检测角度
#当前RFID的内容格式为 模块编号,分块号,尺寸规格,方量
self.rfid_current=None
#当前生产的管片
self.current_artifact=None
#当前生产状态
self._feed_status=FeedStatus.FNone
#每方重量
self.density=2416.4
self.bll_artifact=ArtifactBll()
self.bll_pdrecord=PDRecordBll()
#记录正在生产code模具编号,status:2正生产3完成生成,weight:完成重量