啊鑫
2025-08-01 71f686f5a300d0ed26adf57de254f4168637b17d
config/production_config.json
@@ -2,14 +2,12 @@
  "ConfigVersion": "1.0",
  "ProjectName": "生产线Modbus数据采集系统",
  "Description": "基于需求文档的生产线PLC与MES通信配置文件",
  "Connection": {
    "IpAddress": "192.168.3.250",
    "Port": 502,
    "ConnectionTimeoutMs": 5000,
    "OperationTimeoutMs": 3000
  },
  "Communication": {
    "HeartbeatIntervalMs": 1000,
    "DataPollingIntervalMs": 500,
@@ -17,7 +15,6 @@
    "ReconnectDelayMs": 3000,
    "MaxRetryCount": 3
  },
  "OutputAddresses": {
    "Description": "MES发送给PLC的地址配置",
    "HeartbeatAddress": {
@@ -31,7 +28,6 @@
      "Description": "MES数据读取确认地址,数据读取OK置1"
    }
  },
  "InputAddresses": {
    "Description": "从PLC读取的地址配置",
    "ControlSignals": {
@@ -54,7 +50,6 @@
        }
      }
    },
    "ProductData": {
      "ProductModel": {
        "Address": 6004,
@@ -97,10 +92,9 @@
        "Format": "YYYYMMDDHHMMSS",
        "Encoding": "BigEndian",
        "DisplayName": "记录时间",
        "Description": "数据记录时间戳,大端模式存储,一个字节两个字符,格式:年月日时分秒"
        "Description": "数据记录时间戳,大端模式存储,一个字节两个字符,格式:年月日时分秒(14位)"
      }
    },
    "MeasurementData": {
      "MinInstallSize": {
        "Address": 6033,
@@ -167,10 +161,10 @@
        "DataType": "Integer",
        "Length": 2,
        "Scale": 0.01,
        "Unit": "bar",
        "Unit": "N",
        "DecimalPlaces": 2,
        "DisplayName": "工作压力",
        "Description": "系统工作压力,默认两个小数点"
        "Description": "系统工作压力,默认两个小数点,单位:牛顿"
      },
      "UpHallSensor": {
        "Address": 6047,
@@ -184,7 +178,6 @@
      }
    }
  },
  "DataTypes": {
    "Description": "支持的数据类型定义",
    "Byte": "单字节数值 (0-255),用于心跳包、信号状态等",
@@ -194,18 +187,16 @@
    "Float": "浮点数",
    "Boolean": "布尔值"
  },
  "UI": {
    "WindowTitle": "生产线MES与PLC通信系统",
    "AutoStartPolling": false,
    "LogLevel": "Info",
    "MaxLogLines": 1000
  },
  "Database": {
    "Enabled": true,
    "Type": "Oracle",
    "ConnectionString": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.92)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = lts_dev; Password=ltsdev",
    "ConnectionString": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.223)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = rdmes_dev; Password=rdmesdev",
    "AutoCreateTables": true,
    "DataRetentionDays": 90,
    "Tables": {