临时提交

old
xiaoguo 11 months ago
parent 5cb0175ecb
commit e60f1e69ce

2
.gitignore vendored

@ -4,4 +4,4 @@
/guidescreen/GuideScreen/GuideScreen.Control/bin
/guidescreen/GuideScreen/GuideScreen.UI/bin
/guidescreen/GuideScreen/GuideScreen.UI/obj
/guidescreen/GuideScreen/.vs/GuideScreen
/guidescreen/GuideScreen/.vs

@ -156,52 +156,118 @@ namespace GuideScreen.Common.Repositories
//plc点位数据
//真空泵站
var vacuumPumpingStationRealTimeVacuum = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RealTimeVacuum, PointNote = "实时真空度", PointDataType = PLCPointDataType.Int16, PointAddress = "VD100", Unit = "Kpa" };
var vacuumPumpingStationRunningFrequency1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningFrequency1, PointNote = "1#运行频率", PointDataType = PLCPointDataType.Int16, PointAddress = "VD104", Unit = "HZ" };
var vacuumPumpingStationRunningCurrent1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningCurrent1, PointNote = "1#运行电流", PointDataType = PLCPointDataType.Int16, PointAddress = "VD108", Unit = "A" };
var vacuumPumpingStationRunningFrequency2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningFrequency2, PointNote = "2#运行频率", PointDataType = PLCPointDataType.Int16, PointAddress = "VD112", Unit = "HZ" };
var vacuumPumpingStationRunningCurrent2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningCurrent2, PointNote = "2#运行电流", PointDataType = PLCPointDataType.Int16, PointAddress = "VD116", Unit = "A" };
var vacuumPumpingStationPumpStartTimes1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpStartTimes1, PointNote = "1#泵启动次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW120", Unit = "次" };
var vacuumPumpingStationPumpStartTimes2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpStartTimes2, PointNote = "2#泵启动次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW124", Unit = "次" };
var vacuumPumpingStationPumpAccumulatedStartTime1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpAccumulatedStartTime1, PointNote = "1#泵累计启动时间", PointDataType = PLCPointDataType.Int16, PointAddress = "VW128", Unit = "次" };
var vacuumPumpingStationPumpAccumulatedStartTime2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpAccumulatedStartTime2, PointNote = "2#泵累计启动时间", PointDataType = PLCPointDataType.Int16, PointAddress = "VW132", Unit = "次" };
var vacuumPumpingStationPumpingStation1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpingStation1, PointNote = "1#泵站状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.0", Unit = "RUN/STOP" };
var vacuumPumpingStationPumpingStation2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpingStation2, PointNote = "2#泵站状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.1", Unit = "RUN/STOP" };
var vacuumPumpingStationFault1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault1, PointNote = "1#变频器故障", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.2", Unit = "" };
var vacuumPumpingStationFault2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault2, PointNote = "2#变频器故障", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.3", Unit = "" };
var vacuumPumpingStationFault3 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault3, PointNote = "故障3", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.4", Unit = "" };
var vacuumPumpingStationFault4 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault4, PointNote = "故障4", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.5", Unit = "" };
var vacuumPumpingStationRealTimeVacuum = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RealTimeVacuum, PointNote = "实时真空度", PointDataType = PLCPointDataType.Int16, PointAddress = "VD100", Unit = "Kpa", IsReadonly = true };
var vacuumPumpingStationRunningFrequency1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningFrequency1, PointNote = "1#运行频率", PointDataType = PLCPointDataType.Int16, PointAddress = "VD104", Unit = "HZ", IsReadonly = true };
var vacuumPumpingStationRunningCurrent1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningCurrent1, PointNote = "1#运行电流", PointDataType = PLCPointDataType.Int16, PointAddress = "VD108", Unit = "A", IsReadonly = true };
var vacuumPumpingStationRunningFrequency2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningFrequency2, PointNote = "2#运行频率", PointDataType = PLCPointDataType.Int16, PointAddress = "VD112", Unit = "HZ", IsReadonly = true };
var vacuumPumpingStationRunningCurrent2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.RunningCurrent2, PointNote = "2#运行电流", PointDataType = PLCPointDataType.Int16, PointAddress = "VD116", Unit = "A", IsReadonly = true };
var vacuumPumpingStationPumpStartTimes1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpStartTimes1, PointNote = "1#泵启动次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW120", Unit = "次", IsReadonly = true };
var vacuumPumpingStationPumpStartTimes2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpStartTimes2, PointNote = "2#泵启动次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW124", Unit = "次", IsReadonly = true };
var vacuumPumpingStationPumpAccumulatedStartTime1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpAccumulatedStartTime1, PointNote = "1#泵累计启动时间", PointDataType = PLCPointDataType.Int16, PointAddress = "VW128", Unit = "次", IsReadonly = true };
var vacuumPumpingStationPumpAccumulatedStartTime2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpAccumulatedStartTime2, PointNote = "2#泵累计启动时间", PointDataType = PLCPointDataType.Int16, PointAddress = "VW132", Unit = "次", IsReadonly = true };
var vacuumPumpingStationPumpingStation1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpingStation1, PointNote = "1#泵站状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.0", Unit = "RUN/STOP", IsReadonly = true };
var vacuumPumpingStationPumpingStation2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.PumpingStation2, PointNote = "2#泵站状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.1", Unit = "RUN/STOP", IsReadonly = true };
var vacuumPumpingStationFault1 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault1, PointNote = "1#变频器故障", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.2", Unit = "", IsReadonly = true };
var vacuumPumpingStationFault2 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault2, PointNote = "2#变频器故障", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.3", Unit = "", IsReadonly = true };
var vacuumPumpingStationFault3 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault3, PointNote = "故障3", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.4", Unit = "", IsReadonly = true };
var vacuumPumpingStationFault4 = new PLCPointEntity { DeviceName = PLCDeviceNames.VacuumPumpingStation, PointName = PLCPointNameByVacuumPumpingStation.Fault4, PointNote = "故障4", PointDataType = PLCPointDataType.Bool, PointAddress = "V138.5", Unit = "", IsReadonly = true };
//厕位监控
var toiletManStatus1 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus1, PointNote = "男1状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.0", Unit = "有/无" };
var toiletManStatus2 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus2, PointNote = "男2状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.1", Unit = "有/无" };
var toiletManStatus3 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus3, PointNote = "男3状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.2", Unit = "有/无" };
var toiletManStatus4 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus4, PointNote = "男4状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.3", Unit = "有/无" };
var toiletManStatus5 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus5, PointNote = "男5状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.4", Unit = "有/无" };
var toiletWomanStatus1 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus1, PointNote = "女1状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.5", Unit = "有/无" };
var toiletWomanStatus2 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus2, PointNote = "女2状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.6", Unit = "有/无" };
var toiletWomanStatus3 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus3, PointNote = "女3状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.7", Unit = "有/无" };
var toiletManStatus1 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus1, PointNote = "男1状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.0", Unit = "有/无", IsReadonly = true };
var toiletManStatus2 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus2, PointNote = "男2状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.1", Unit = "有/无", IsReadonly = true };
var toiletManStatus3 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus3, PointNote = "男3状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.2", Unit = "有/无", IsReadonly = true };
var toiletManStatus4 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus4, PointNote = "男4状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.3", Unit = "有/无", IsReadonly = true };
var toiletManStatus5 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletManStatus5, PointNote = "男5状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.4", Unit = "有/无", IsReadonly = true };
var toiletWomanStatus1 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus1, PointNote = "女1状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.5", Unit = "有/无", IsReadonly = true };
var toiletWomanStatus2 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus2, PointNote = "女2状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.6", Unit = "有/无", IsReadonly = true };
var toiletWomanStatus3 = new PLCPointEntity { DeviceName = PLCDeviceNames.ToiletPosition, PointName = PLCPointNameByToiletPosition.ToiletWomanStatus3, PointNote = "女3状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.7", Unit = "有/无", IsReadonly = true };
//var toiletWomanStatus4 = new PLCPointEntity { DeviceName = "厕位监控", PointName = PLCPointNameByToiletPosition.ToiletWomanStatus4, PointNote = "女4状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V162.0", Unit = "有/无" };
//var toiletWomanStatus5 = new PLCPointEntity { DeviceName = "厕位监控", PointName = PLCPointNameByToiletPosition.ToiletWomanStatus5, PointNote = "女5状态", PointDataType = PLCPointDataType.Bool, PointAddress = "V163.1", Unit = "有/无" };
//环境监测
var environmentalMonitoringH2S = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.H2S, PointNote = "硫化氢", PointDataType = PLCPointDataType.Float, PointAddress = "VW140", Unit = "ppm" };
var environmentalMonitoringNH3 = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.NH3, PointNote = "氨气", PointDataType = PLCPointDataType.Float, PointAddress = "VW144", Unit = "ppm" };
var environmentalMonitoringTemperature = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.Temperature, PointNote = "温度", PointDataType = PLCPointDataType.Int16, PointAddress = "VW150", Unit = "RH" };
var environmentalMonitoringHumidity = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.Humidity, PointNote = "湿度", PointDataType = PLCPointDataType.Int16, PointAddress = "VW152", Unit = "℃" };
var environmentalMonitoringH2S = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.H2S, PointNote = "硫化氢", PointDataType = PLCPointDataType.Float, PointAddress = "VW140", Unit = "ppm", IsReadonly = true };
var environmentalMonitoringNH3 = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.NH3, PointNote = "氨气", PointDataType = PLCPointDataType.Float, PointAddress = "VW144", Unit = "ppm", IsReadonly = true };
var environmentalMonitoringTemperature = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.Temperature, PointNote = "温度", PointDataType = PLCPointDataType.Int16, PointAddress = "VW150", Unit = "RH", IsReadonly = true };
var environmentalMonitoringHumidity = new PLCPointEntity { DeviceName = PLCDeviceNames.EnvironmentalMonitoring, PointName = PLCPointNameByEnvironmentalMonitoring.Humidity, PointNote = "湿度", PointDataType = PLCPointDataType.Int16, PointAddress = "VW152", Unit = "℃", IsReadonly = true };
//能耗监控
var energyMonitoringElectricityConsumption = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.ElectricityConsumption, PointNote = "用电量", PointDataType = PLCPointDataType.Float, PointAddress = "VW164", Unit = "KWh" };
var energyMonitoringWater = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.WaterConsumption, PointNote = "用水量", PointDataType = PLCPointDataType.Float, PointAddress = "VD168", Unit = "" };
var energyMonitoringElectricityConsumption = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.ElectricityConsumption, PointNote = "用电量", PointDataType = PLCPointDataType.Float, PointAddress = "VW164", Unit = "KWh", IsReadonly = true };
var energyMonitoringWater = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.WaterConsumption, PointNote = "用水量", PointDataType = PLCPointDataType.Float, PointAddress = "VD168", Unit = "", IsReadonly = true };
//var energyMonitoringVoltage = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.Voltage, PointNote = "电压", PointDataType = PLCPointDataType.Float, PointAddress = "VW168", Unit = "V" };
//var energyMonitoringElectricity = new PLCPointEntity { DeviceName = PLCDeviceNames.EnergyMonitoring, PointName = PLCPointNameByEnergyMonitoring.Electricity, PointNote = "电流", PointDataType = PLCPointDataType.Float, PointAddress = "VW172", Unit = "A" };
var washCountToiletManCount1 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount1, PointNote = "男1冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW174", Unit = "次", IsReadonly = true };
var washCountToiletManCount2 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount2, PointNote = "男2冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW176", Unit = "次", IsReadonly = true };
var washCountToiletManCount3 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount3, PointNote = "男3冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW178", Unit = "次", IsReadonly = true };
var washCountToiletManCount4 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount4, PointNote = "男4冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW180", Unit = "次", IsReadonly = true };
var washCountToiletManCount5 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount5, PointNote = "男5冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW182", Unit = "次", IsReadonly = true };
var washCountToiletWomanCount1 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount1, PointNote = "女1冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW184", Unit = "次", IsReadonly = true };
var washCountToiletWomanCount2 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount2, PointNote = "女2冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW186", Unit = "次", IsReadonly = true };
var washCountToiletWomanCount3 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount3, PointNote = "女3冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW188", Unit = "次", IsReadonly = true };
//使用次数统计
var washCountToiletManCount1 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount1, PointNote = "男1冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW174", Unit = "次", IsReadonly = false };
var washCountToiletManCount2 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount2, PointNote = "男2冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW176", Unit = "次", IsReadonly = false };
var washCountToiletManCount3 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount3, PointNote = "男3冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW178", Unit = "次", IsReadonly = false };
var washCountToiletManCount4 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount4, PointNote = "男4冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW180", Unit = "次", IsReadonly = false };
var washCountToiletManCount5 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletManCount5, PointNote = "男5冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW182", Unit = "次", IsReadonly = false };
var washCountToiletWomanCount1 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount1, PointNote = "女1冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW184", Unit = "次", IsReadonly = false };
var washCountToiletWomanCount2 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount2, PointNote = "女2冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW186", Unit = "次", IsReadonly = false };
var washCountToiletWomanCount3 = new PLCPointEntity { DeviceName = PLCDeviceNames.WashCount, PointName = PLCPointNameByWashCount.ToiletWomanCount3, PointNote = "女3冲洗次数", PointDataType = PLCPointDataType.Int16, PointAddress = "VW188", Unit = "次", IsReadonly = false };
//控制器时间参数显示及设置
/*
* 1T2 VW190 s INT
1T3 VW192 s INT
1T4 VW194 s INT
1T5 VW196 s INT
2T2 VW198 s INT
2T3 VW200 s INT
2T4 VW202 s INT
2T5 VW204 s INT
3T2 VW206 s INT
3T3 VW208 s INT
3T4 VW210 s INT
3T5 VW212 s INT
4T2 VW214 s INT
4T3 VW216 s INT
4T4 VW218 s INT
4T5 VW220 s INT
5T2 VW222 s INT
5T3 VW224 s INT
5T4 VW226 s INT
5T5 VW228 s INT
1T2 VW230 s INT
1T3 VW232 s INT
1T4 VW234 s INT
1T5 VW236 s INT
2T2 VW238 s INT
2T3 VW240 s INT
2T4 VW242 s INT
2T5 VW244 s INT
3T2 VW246 s INT
3T3 VW248 s INT
3T4 VW250 s INT
3T5 VW252 s INT
*/
var toiletManController1T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController1T2, PointNote = "男1控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW190", Unit = "s", IsReadonly = false };
var toiletManController1T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController1T3, PointNote = "男1控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW192", Unit = "s", IsReadonly = false };
var toiletManController1T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController1T4, PointNote = "男1控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW194", Unit = "s", IsReadonly = false };
var toiletManController1T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController1T5, PointNote = "男1控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW196", Unit = "s", IsReadonly = false };
var toiletManController2T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController2T2, PointNote = "男2控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW198", Unit = "s", IsReadonly = false };
var toiletManController2T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController2T3, PointNote = "男2控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW200", Unit = "s", IsReadonly = false };
var toiletManController2T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController2T4, PointNote = "男2控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW202", Unit = "s", IsReadonly = false };
var toiletManController2T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController2T5, PointNote = "男2控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW204", Unit = "s", IsReadonly = false };
var toiletManController3T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController3T2, PointNote = "男3控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW206", Unit = "s", IsReadonly = false };
var toiletManController3T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController3T3, PointNote = "男3控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW208", Unit = "s", IsReadonly = false };
var toiletManController3T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController3T4, PointNote = "男3控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW210", Unit = "s", IsReadonly = false };
var toiletManController3T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController3T5, PointNote = "男3控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW212", Unit = "s", IsReadonly = false };
var toiletManController4T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController4T2, PointNote = "男4控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW214", Unit = "s", IsReadonly = false };
var toiletManController4T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController4T3, PointNote = "男4控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW216", Unit = "s", IsReadonly = false };
var toiletManController4T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController4T4, PointNote = "男4控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW218", Unit = "s", IsReadonly = false };
var toiletManController4T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController4T5, PointNote = "男4控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW220", Unit = "s", IsReadonly = false };
var toiletManController5T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController5T2, PointNote = "男5控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW222", Unit = "s", IsReadonly = false };
var toiletManController5T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController5T3, PointNote = "男5控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW224", Unit = "s", IsReadonly = false };
var toiletManController5T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController5T4, PointNote = "男5控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW226", Unit = "s", IsReadonly = false };
var toiletManController5T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletManController5T5, PointNote = "男5控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW228", Unit = "s", IsReadonly = false };
var toiletWomanController1T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController1T2, PointNote = "女1控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW230", Unit = "s", IsReadonly = false };
var toiletWomanController1T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController1T3, PointNote = "女1控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW232", Unit = "s", IsReadonly = false };
var toiletWomanController1T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController1T4, PointNote = "女1控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW234", Unit = "s", IsReadonly = false };
var toiletWomanController1T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController1T5, PointNote = "女1控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW236", Unit = "s", IsReadonly = false };
var toiletWomanController2T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController2T2, PointNote = "女2控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW238", Unit = "s", IsReadonly = false };
var toiletWomanController2T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController2T3, PointNote = "女2控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW240", Unit = "s", IsReadonly = false };
var toiletWomanController2T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController2T4, PointNote = "女2控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW242", Unit = "s", IsReadonly = false };
var toiletWomanController2T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController2T5, PointNote = "女2控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW244", Unit = "s", IsReadonly = false };
var toiletWomanController3T2 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController3T2, PointNote = "女3控制器T2", PointDataType = PLCPointDataType.Int16, PointAddress = "VW246", Unit = "s", IsReadonly = false };
var toiletWomanController3T3 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController3T3, PointNote = "女3控制器T3", PointDataType = PLCPointDataType.Int16, PointAddress = "VW248", Unit = "s", IsReadonly = false };
var toiletWomanController3T4 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController3T4, PointNote = "女3控制器T4", PointDataType = PLCPointDataType.Int16, PointAddress = "VW250", Unit = "s", IsReadonly = false };
var toiletWomanController3T5 = new PLCPointEntity { DeviceName = PLCDeviceNames.SetControllerTimeParameters, PointName = PLCPointNameBySetControllerTimeParameters.ToiletWomanController3T5, PointNote = "女3控制器T5", PointDataType = PLCPointDataType.Int16, PointAddress = "VW252", Unit = "s", IsReadonly = false };
context.PLCPointEntites.AddRange(new PLCPointEntity[]
{
vacuumPumpingStationRealTimeVacuum,
@ -248,6 +314,39 @@ namespace GuideScreen.Common.Repositories
washCountToiletWomanCount1,
washCountToiletWomanCount2,
washCountToiletWomanCount3,
toiletManController1T2,
toiletManController1T3,
toiletManController1T4,
toiletManController1T5,
toiletManController2T2,
toiletManController2T3,
toiletManController2T4,
toiletManController2T5,
toiletManController3T2,
toiletManController3T3,
toiletManController3T4,
toiletManController3T5,
toiletManController4T2,
toiletManController4T3,
toiletManController4T4,
toiletManController4T5,
toiletManController5T2,
toiletManController5T3,
toiletManController5T4,
toiletManController5T5,
toiletWomanController1T2,
toiletWomanController1T3,
toiletWomanController1T4,
toiletWomanController1T5,
toiletWomanController2T2,
toiletWomanController2T3,
toiletWomanController2T4,
toiletWomanController2T5,
toiletWomanController3T2,
toiletWomanController3T3,
toiletWomanController3T4,
toiletWomanController3T5,
});
context.SaveChanges();

Loading…
Cancel
Save