{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "AppConfig": {
    //是否显示控制台
    "ShowConsole": true,
    "logPath": "D:\\net6.0-windows\\log",
    "InstanceDataPath": "D:\\net6.0-windows\\log",
    "SqlConfig": [
      {
        "configId": "mes",
        "dbType": 0,
        //"connStr": "server=127.0.0.1;uid=sa;pwd=123456;database=WLDB"
        //"connStr": "server=localhost;Database=bt_db;Uid=root;Pwd=123456",
        "connStr": "server=60.205.157.215;Database=bt_db;Uid=root;Pwd=qdhys123456"
        //"connStr": "server=119.45.202.115;uid=sa;pwd=haiwei@123;database=WLDB"
        //"connStr": "server=10.113.254.104;uid=sa;pwd=klltdb@3391123;database=XJMIDDBTOWCS"
      },
      {
        "configId": "Local",
        "dbType": 2,
        "connStr": "Data Source=F:\\net6.0-windows\\data\\HData.db3"
      }
    ],
    "PlcConfig": [
      {
        "configId": 1,
        "plcType": "MelsecBinaryPlc",
        //"plcIp": "127.0.0.1",
        "plcIp": "192.168.1.33",
        "plcPort": 6001,
        "plcKey": "plc",
        "isFlage": true
      }
    ],
    "RfidConfig": [
      {
        "configId": 1,
        "equipIp": "127.0.0.1",
        "equipPort": 6003,
        "equipKey": "test1",
        "isFlage": true
      },
      {
        "configId": 2,
        "equipIp": "127.0.0.1",
        "equipPort": 6004,
        "equipKey": "test2",
        "isFlage": true
      }
    ],
    "visionConfig": [
      {
        "VisionId": 1,
        "VisionIp": "127.0.0.1",
        "VisionPort": 7001,
        "AGVID": "1",
        "VisionState": "1",
        "IsFlag": true
      },
      {
        "VisionId": 2,
        "VisionIp": "127.0.0.1",
        "VisionPort": 7002,
        "AGVID": "2",
        "VisionState": "1",
        "IsFlag": true
      }
    ],

    "deviceInfoConfig": [
      {
        //设备ID，唯一标识
        "DeviceId": "10001",
        //设备名称，显示用
        "Name": "Line1",
        //连接字符串，格式为IP:Port
        "ConnectStr": "192.168.0.7:20108",
        //固定不变
        "Connectmode": "1",
        //固定不变 设备类型，RFly_I160表示RFly_I160读写器
        "Devicetype": "RFly_I160",
        //固定不变
        "Collectid": "102",
        //关键，线体号
        "Addr": "VM006",
        //删除标签，0表示不删除，1表示删除（删除后不再显示本组机台，一个花括号内为一组）
        "Deleteflag": "0",
        //初次读到数据后写入数据延迟设置，单位毫秒
        "WriteDelaySet": 1000,
        //写入失败重试次数（每次写入设置为五秒超时时间）
        //"WriteCount": 30,
        //定时重置盘点间隔时间，单位毫秒
        "InventoryIntervalSeconds": 5000,
        //二次验证超时时间，单位毫秒
        "VerifyTimeoutMilliseconds": 10000,
        //写入超时时间，单位毫秒
        "WriteTimeoutMilliseconds": 10000,
      },
      {
        "DeviceId": "10002",
        "Name": "Line2",
        "ConnectStr": "192.168.0.8:20109",
        "Connectmode": "1",
        "Devicetype": "RFly_I160",
        "Collectid": "102",
        "Addr": "VM006",
        "Deleteflag": "1",
        "WriteDelaySet": 1000,
        "WriteCount": 3,
        "InventoryIntervalSeconds": 5000,
        "VerifyTimeoutMilliseconds": 20000
      }
    ],

    "redisConfig": "175.27.215.92:6379,password=redis@2023",

    "ComPort": "COM1",

    "StationCode": "102",

    "MESConfig": "10.20.8.61:8001",

    //是否启用订单自动刷新
    "AutoOrderRefresh": true,
    //订单自动刷新间隔（秒）
    "OrderRefreshInterval": 60,
    //模拟MES返回数据（调试用，为空则走真实MES接口）
    "MockMesResponse": ""
  },
  "ProductConfig": {
    "OKCount": "0",
    "NGCount": "0"
  },
  "ChangeTypeConfig": {
    "ProductType": "E34FU",
    "KTProductType": "E34F",
    "OpenFlag": "1"
  }
}
