{ "ConfigVersion": "1.0", "ProjectName": "GSModbus通用配置", "Description": "通用Modbus TCP通信配置文件", "Connection": { "IpAddress": "192.168.3.250", "Port": 502, "ConnectionTimeoutMs": 5000, "OperationTimeoutMs": 3000 }, "Communication": { "HeartbeatIntervalMs": 1000, "DataPollingIntervalMs": 500, "EnableAutoReconnect": true, "ReconnectDelayMs": 3000, "MaxRetryCount": 3 }, "OutputAddresses": { "Description": "MES发送给PLC的地址配置", "HeartbeatAddress": { "Address": 6000, "DataType": "Byte", "Description": "MES心跳包地址" }, "DataConfirmationAddress": { "Address": 6001, "DataType": "Byte", "Description": "MES数据读取确认地址" } }, "InputAddresses": { "Description": "从PLC读取的地址配置", "ControlSignals": { "PlcHeartbeat": { "Address": 6002, "DataType": "Byte", "Length": 1, "DisplayName": "PLC心跳", "Description": "PLC发送的心跳信号" }, "DataReady": { "Address": 6003, "DataType": "Byte", "Length": 1, "DisplayName": "数据就绪", "Description": "PLC数据准备就绪信号" } }, "ProductData": { "ProductModel": { "Address": 6004, "DataType": "String", "Length": 10, "Encoding": "BigEndian", "DisplayName": "产品型号", "Description": "产品型号字符串,大端模式存储" }, "TestStation": { "Address": 6014, "DataType": "Byte", "Length": 1, "DisplayName": "测试工位", "Description": "当前测试工位编号" }, "ProductCode": { "Address": 6015, "DataType": "String", "Length": 10, "Encoding": "BigEndian", "DisplayName": "产品码", "Description": "产品唯一标识码" }, "TestResult": { "Address": 6025, "DataType": "Byte", "Length": 1, "DisplayName": "测试结果", "Description": "测试结果:1=合格,0=不合格", "ValueMap": { "0": "不合格", "1": "合格" } }, "Timestamp": { "Address": 6026, "DataType": "Timestamp", "Length": 7, "Format": "YYYYMMDDHHMMSS", "Encoding": "BigEndian", "DisplayName": "记录时间", "Description": "数据记录时间戳" } }, "MeasurementData": { "MinInstallSize": { "Address": 6033, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "mm", "DecimalPlaces": 2, "DisplayName": "最小安装尺寸", "Description": "最小安装尺寸测量值" }, "MaxInstallSize": { "Address": 6035, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "mm", "DecimalPlaces": 2, "DisplayName": "最大安装尺寸", "Description": "最大安装尺寸测量值" }, "Stroke": { "Address": 6037, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "mm", "DecimalPlaces": 2, "DisplayName": "行程", "Description": "执行器行程测量值" }, "Speed": { "Address": 6039, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "mm/s", "DecimalPlaces": 2, "DisplayName": "速度", "Description": "执行器运行速度" }, "WorkingVoltage": { "Address": 6041, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "V", "DecimalPlaces": 2, "DisplayName": "工作电压", "Description": "系统工作电压" }, "WorkingCurrent": { "Address": 6043, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "A", "DecimalPlaces": 2, "DisplayName": "工作电流", "Description": "系统工作电流" }, "WorkingPressure": { "Address": 6045, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "bar", "DecimalPlaces": 2, "DisplayName": "工作压力", "Description": "系统工作压力" }, "UpHallSensor": { "Address": 6047, "DataType": "Integer", "Length": 2, "Scale": 0.01, "Unit": "", "DecimalPlaces": 2, "DisplayName": "上升霍尔传感器", "Description": "上升霍尔传感器读数" } } }, "DataTypes": { "Description": "支持的数据类型定义", "Byte": "单字节数值 (0-255)", "Integer": "多字节整数,支持缩放", "String": "字符串,支持大端/小端编码", "Timestamp": "时间戳,支持自定义格式", "Float": "浮点数", "Boolean": "布尔值" }, "UI": { "WindowTitle": "GSModbus - 通用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", "AutoCreateTables": true, "DataRetentionDays": 90, "Tables": { "ModbusDataTable": "MODBUS_DATA", "CommunicationLogTable": "COMMUNICATION_LOG", "ErrorLogTable": "ERROR_LOG", "StatisticsTable": "STATISTICS" } } }