Files
16-Xikai-MES_ApiFailRetry/public/config.js
2026-05-29 09:34:12 +08:00

40 lines
2.8 KiB
JavaScript
Raw 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.
const baseIP = '127.0.0.1'
window.g = {
API_WEB_URL: `http://${baseIP}:10040/submit/MESCommonBase.ashx`,
API_MES_Controller_URL: `http://${baseIP}:9982`,
mqttIP: baseIP,
mqttPortNumber: '8083',
mqttSubscriptionTopic: 'MES/InstantMessaging/CATL_PDC',
mqttPublishTopic: 'WEB/InstantMessaging/CATL_PDC/MisServer',
imageShareRoot: '\\\\Cait-officefile\\mes\\首件照片',
showPosList: [
// name 数据名称
// source 数据来源
// isWrite 是否可写入
// dataType 数据类型 ,目前是 Bool
// TagCode 变量类型代码
// ========== 可写入点位 (TagCode < 450 MES 点位) ==========
{ name: 'AGV插头完成', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '400' },
{ name: 'AGV拔插头完成', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '401' },
{ name: 'MES允许开始磨合', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '402' },
{ name: 'MES反馈磨合结束', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '403' },
{ name: '托盘压紧气缸压紧', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '404' },
{ name: '托盘压紧气缸松开', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '405' },
{ name: '插头推靠气缸推靠', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '406' },
{ name: '插头推靠气缸退回', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '407' },
{ name: '自动模式', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '408' },
{ name: '手动模式', source: 'MES', isWrite: true, dataType: 'Bool', TagCode: '409' },
// ========== 不可写入点位 (TagCode >= 450PLC点位) ==========
{ name: '请求上线', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '450' },
{ name: '请求下线', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '451' },
{ name: '请求插插头', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '452' },
{ name: '请求拔插头', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '453' },
{ name: '开始磨合', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '454' },
{ name: '磨合完成', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '455' },
{ name: '推靠气缸原位', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '456' },
{ name: '推靠气缸到位', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '457' },
{ name: '压紧气缸原位', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '458' },
{ name: '压紧气缸到位', source: 'PLC', isWrite: false, dataType: 'Bool', TagCode: '459' },
]
};
// http://localhost:5173/#/?stationNo=xxx&workpieceNo=xxx