Files
18-MINO-ZNZZ_TV/public/config.js
2026-06-08 16:38:05 +08:00

108 lines
5.4 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
window.dt_Config = {
serverAddress: 'http://127.0.0.1:8055/submit/MESCommonBase.ashx',
// serverAddress: 'http://192.168.0.110:8001/submit/MESCommonBase.ashx',
mqttIp: '127.0.0.1',
mqttPort: '8083',
pageCutSpeed: 30, // 页面切换周期(秒)
isPageCut: false, // 是否进行自动页面切换
outerLeftDeviceName: 'MILL E 700 U', // 第一页左侧设备名
outerRightDeviceName: 'CUT E 350', // 第一页右侧设备名
outerBottomLeftDeviceName: 'FORM P 450', // 第一页底部左侧设备名
outerBottomRightDeviceName: 'Mikron HSM 500', // 第一页底部右侧设备名
servicePlc_1Address: 'http://127.0.0.1:41185/api/PLC1',
// servicePlc_1Address: 'http://192.168.113.111:41185/api/PLC1',
servicePlc_2Address: 'http://127.0.0.1:41185/api/PLC2',
// servicePlc_2Address: 'http://192.168.113.111:41185/api/PLC2',
serviceDT_ProcessAddress: 'http://127.0.0.1:41185/api/SqlCraft',
// serviceDT_ProcessAddress: 'http://192.168.113.111:41185/api/SqlCraft',
serviceDT_ProcessDataAddress: 'http://127.0.0.1:41181/api/GetPositionData',
dt_iframe: 'http://192.168.1.104:8080/#/',
// serviceDT_ProcessDataAddress: 'http://192.168.113.111:41181/api/GetPositionData',
constantRouter: {
path: '可视化中心',
title: '可视化中心',
meta: { title: '可视化中心', icon: 'MaterialManagement' },
alwaysShow: true,
children: [
{
// path: 'http://192.168.35.1:8080/#',
path: 'http://124.220.32.217:8014/#',
// path: 'http://192.168.192.62:8002/#',
meta: { title: '生产看板', icon: 'MaterialManagement' }
}
]
}
}
window.g = {
// SPC控制图的时间
"spcTitleList":["14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30","21:00","21:30"],
// SPC 数据
"spcDataList":["0.1","0.02","0.1","0.3","0","0.2","0","0.12","0.1","0.2","0.02","0.08","0.3","0.08","0.06","0.24"],
// SPC 表定线数组
'spcData':[
{
name: 'UCL',
yAxis: 0.275
}, {
name: 'CL',
yAxis: 0.132
}, {
name: 'LCL',
yAxis: 0
}
],
// 工序能力分析数据
gData:[[0,0.001],[0.5,0.0001],[1,0.002],[1.5,0],[2,0.005],[2.5,0.007],[3,0.01],[3.5,0],[4,0.035],[4.5,0.055],[5,0.07],[5.5,0],[6,0.12],[6.5,0.15],[7,0.17],[7.5,0],[8,0.19],[8.5,0.175],[9,0.17],[10,0.12],[10.5,0.10],[11,0.07],[12,0.035],[12.5,0.02],[13,0.01],[14,0.005],[14.5,0.004],[15,0.004],[16,0.003],[17,0.002],[18,0.001]],
// 工序能力分析标线
gData2:[
{xAxis: '9.1', name: 'QU',seriesName: '108.25'},
{xAxis: '3.1', name: 'QL',seriesName: '108.25'}
],
gData3:[[0,0.001],[1,0.002],[2,0.005],[3,0.01],[4,0.035],[5,0.07],[6,0.12],[7,0.17],[8,0.19],[9,0.17],[10,0.12],[11,0.07],[12,0.035],[13,0.01],[14,0.005],[15,0.004],[16,0.003],[17,0.002],[18,0.001]],
// 均值极差图 X
jXData:['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24'],
jYData1:[14, 12, 12, 11, 13, 13, 14, 12, 13, 16, 11,14,13,12,12,13,15,12,11,15,16,14,12,14],
jYData2:[92, 90, 87,100,78, 72, 89, 75,88,74,89,91,92,89,78,84,82,83,81,92,94,91,92,80],
// 生产进度
meter1:70,
// 时间开动率
meter2:50,
// 性能开动率
meter3:52,
// 报警数据
errData:[
{opName:'OP010',motorcycleType:'OP010moby故障报警(DB126.DBX0.7)',time:'50',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'气源压力低(DB126.DBX0.5)',time:'42',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'FESTO_电缸未一键寻零报警(DB126.DBX1.3)',time:'22',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'配方参数下载错误报警(DB126.DBX1.4)',time:'57',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'OP010工件托举夹紧气缸禁止伸出(DB126.DBX21.0)',time:'50',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'OP010换型气缸2退回超时(DB126.DBX22.7',time:'180',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'OP010机器人报警(DB126.DBX25.1',time:'12',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'OP010换型气缸2伸出超时(DB126.DBX22.6',time:'50',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
{opName:'OP010',motorcycleType:'机器人放置后的产品水平异常(DB126.DBX25.4',time:'66',startTime:'2023-12-04 20:05:03',endTime:'2023-12-04 20:05:53'},
],
// 日常量
dayDataX:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
dayDataY:[86,67,95,75,85,96,86,48,96,58,74,89,78,89,78],
// 标题数据
titleData:{
ProductionPlan:'300', // 生产计划(辆)
ActualOutput:'215', // 实际产量(辆)
rhythm:'86', // 节拍JPH/小时
OEEAnalysis:'100', // 设备效能OEE%
NumberFaults:'1', // 故障数量
FaultsTime:'10' // 故障时间min
},
// 刀具管理数据
knifeData:[
{name:'外圆车刀',status:'良好',size:'5',useCount:'12265',remainCount:'32445',isRed:'0'},
{name:'螺纹刀',status:'良好',size:'5',useCount:'45435',remainCount:'74645',isRed:'0'},
{name:'左右偏刀',status:'良好',size:'5',useCount:'22122',remainCount:'46423',isRed:'0'},
{name:'内圆刀',status:'良好',size:'5',useCount:'11231',remainCount:'13411',isRed:'1'},
]
}