增加开动率采集
This commit is contained in:
@@ -89,6 +89,9 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
'alarm_time': machine_data.alarm_time,
|
||||
'alarm_msg': machine_data.alarm_msg,
|
||||
'clear_time': machine_data.clear_time,
|
||||
# 计算出来的数据
|
||||
# 开动率:运行时间/通电时间
|
||||
'run_rate': machine_data.run_rate,
|
||||
})
|
||||
|
||||
return json.JSONEncoder().encode(res)
|
||||
|
||||
@@ -275,7 +275,8 @@ class Machine_ftp(models.Model):
|
||||
alarm_msg = fields.Char('故障报警信息', readonly=True)
|
||||
clear_time = fields.Char('故障消除时间(复原时间)', readonly=True)
|
||||
|
||||
# 当前程序名, 机床累计运行时间, 机床系统日期, 机床系统时间, 当前刀具号, 机床循环时间
|
||||
# # 开动率
|
||||
run_rate = fields.Char('开动率', readonly=True)
|
||||
|
||||
|
||||
class WorkCenterBarcode(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user