123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Shaker.Model
- {
- [MessagePack.MessagePackObject]
- public class ShakerControlModel : TableBase
- {
- public ShakerControlModel()
- {
- IPAddress = "127.0.0.1";
- Port = 502;
- SlaveID = 1;
- Name = "振动台";
- Description = "测试用振动台";
- PowerAmplifier.ResetBitIndex = 2;
- PowerAmplifier.StartBitIndex = 0;
- PowerAmplifier.StopBitIndex = 1;
- PowerAmplifier.GainSwitchBitIndex = 4;
- PowerAmplifier.ResetAddress = 2501;
- PowerAmplifier.StartAddress = 2501;
- PowerAmplifier.GainSwitchAddress = 2501;
- PowerAmplifier.GainAddress = 2502;
- OperatingStatus.Address = 3012;
- OperatingStatus.Unit = "";
- OperatingStatus.IsReadOnly = true;
- OperatingStatus.B = 0;
- OperatingStatus.K = 1;
- OperatingStatus.Name = "系统运行状态";
- OutputVoltage.Address = 3014;
- OutputVoltage.Unit = "V";
- OutputVoltage.IsReadOnly = true;
- OutputVoltage.B = 0;
- OutputVoltage.K = 1;
- OutputVoltage.Name = "功放输出电压";
- OutputVoltage.MaxValue = 999;
- OutputVoltage.MinValue = 0;
- OutputCurrent.MaxValue = 9999;
- OutputCurrent.MinValue = 0;
- OutputCurrent.Address = 3013;
- OutputCurrent.B = 0;
- OutputCurrent.K = 1;
- OutputCurrent.Unit = "A";
- OutputCurrent.IsReadOnly = true;
- OutputCurrent.Name = "功放输出总电流";
- ExcitationCurrent.MaxValue = 999;
- ExcitationCurrent.MinValue = 0;
- ExcitationCurrent.Address = 3015;
- ExcitationCurrent.B = 0;
- ExcitationCurrent.K = 1;
- ExcitationCurrent.Unit = "A";
- ExcitationCurrent.IsReadOnly = true;
- ExcitationCurrent.Name = "励磁电流";
- ExcitationVoltage.MaxValue = 999;
- ExcitationVoltage.MinValue = 0;
- ExcitationVoltage.Address = 3016;
- ExcitationVoltage.B = 0;
- ExcitationVoltage.K = 1;
- ExcitationVoltage.Unit = "V";
- ExcitationVoltage.IsReadOnly = true;
- ExcitationVoltage.Name = "励磁电压";
- ThreePhaseVoltage.MaxValue = 999;
- ThreePhaseVoltage.MinValue = 0;
- ThreePhaseVoltage.Address = 3017;
- ThreePhaseVoltage.B = 0;
- ThreePhaseVoltage.K = 1;
- ThreePhaseVoltage.Unit = "V";
- ThreePhaseVoltage.IsReadOnly = true;
- ThreePhaseVoltage.Name = "三相电压";
- AbutmentTemperature0.MaxValue = 999;
- AbutmentTemperature0.MinValue = 0;
- AbutmentTemperature0.Address = 3018;
- AbutmentTemperature0.B = 0;
- AbutmentTemperature0.K = 1;
- AbutmentTemperature0.Unit = "℃";
- AbutmentTemperature0.IsReadOnly = true;
- AbutmentTemperature0.Name = "台体温度0";
- AbutmentTemperature1.MaxValue = 999;
- AbutmentTemperature1.MinValue = 0;
- AbutmentTemperature1.Address = 3019;
- AbutmentTemperature1.B = 0;
- AbutmentTemperature1.K = 1;
- AbutmentTemperature1.Unit = "℃";
- AbutmentTemperature1.IsReadOnly = true;
- AbutmentTemperature1.Name = "台体温度1";
- DCVoltage1.MaxValue = 999;
- DCVoltage1.MinValue = 0;
- DCVoltage1.Address = 3020;
- DCVoltage1.B = 0;
- DCVoltage1.K = 1;
- DCVoltage1.Unit = "V";
- DCVoltage1.IsReadOnly = true;
- DCVoltage1.Name = "1柜直流电压";
- DCVoltage2.MaxValue = 999;
- DCVoltage2.MinValue = 0;
- DCVoltage2.Address = 3021;
- DCVoltage2.B = 0;
- DCVoltage2.K = 1;
- DCVoltage2.Unit = "V";
- DCVoltage2.IsReadOnly = true;
- DCVoltage2.Name = "2柜直流电压";
- DCVoltage3.MaxValue = 999;
- DCVoltage3.MinValue = 0;
- DCVoltage3.Address = 3022;
- DCVoltage3.B = 0;
- DCVoltage3.K = 1;
- DCVoltage3.Unit = "V";
- DCVoltage3.IsReadOnly = true;
- DCVoltage3.Name = "3柜直流电压";
- DCVoltage4.MaxValue = 999;
- DCVoltage4.MinValue = 0;
- DCVoltage4.Address = 3023;
- DCVoltage4.B = 0;
- DCVoltage4.K = 1;
- DCVoltage4.Unit = "V";
- DCVoltage4.IsReadOnly = true;
- DCVoltage4.Name = "4柜直流电压";
- ExternalCirculatingWaterPressure.MaxValue = 999;
- ExternalCirculatingWaterPressure.MinValue = 0;
- ExternalCirculatingWaterPressure.Address = 3024;
- ExternalCirculatingWaterPressure.B = 0;
- ExternalCirculatingWaterPressure.K = 1;
- ExternalCirculatingWaterPressure.Unit = "MPa";
- ExternalCirculatingWaterPressure.IsReadOnly = true;
- ExternalCirculatingWaterPressure.Name = "外循环水压力";
- ExternalCirculatingWaterFlow.MaxValue = 999;
- ExternalCirculatingWaterFlow.MinValue = 0;
- ExternalCirculatingWaterFlow.Address = 3025;
- ExternalCirculatingWaterFlow.B = 0;
- ExternalCirculatingWaterFlow.K = 1;
- ExternalCirculatingWaterFlow.Unit = "m³/h";
- ExternalCirculatingWaterFlow.IsReadOnly = true;
- ExternalCirculatingWaterFlow.Name = "外循环水流量";
- ExternalCirculatingWaterTemperature.MaxValue = 999;
- ExternalCirculatingWaterTemperature.MinValue = 0;
- ExternalCirculatingWaterTemperature.Address = 3026;
- ExternalCirculatingWaterTemperature.B = 0;
- ExternalCirculatingWaterTemperature.K = 1;
- ExternalCirculatingWaterTemperature.Unit = "℃";
- ExternalCirculatingWaterTemperature.IsReadOnly = true;
- ExternalCirculatingWaterTemperature.Name = "外循环水温度";
- MovingCoilWaterSupplyPressure.MaxValue = 999;
- MovingCoilWaterSupplyPressure.MinValue = 0;
- MovingCoilWaterSupplyPressure.Address = 3027;
- MovingCoilWaterSupplyPressure.B = 0;
- MovingCoilWaterSupplyPressure.K = 1;
- MovingCoilWaterSupplyPressure.Unit = "MPa";
- MovingCoilWaterSupplyPressure.IsReadOnly = true;
- MovingCoilWaterSupplyPressure.Name = "动圈供水压力";
- MovingCoilWaterSupplyFlow.MaxValue = 999;
- MovingCoilWaterSupplyFlow.MinValue = 0;
- MovingCoilWaterSupplyFlow.Address = 3028;
- MovingCoilWaterSupplyFlow.B = 0;
- MovingCoilWaterSupplyFlow.K = 1;
- MovingCoilWaterSupplyFlow.Unit = "m³/h";
- MovingCoilWaterSupplyFlow.IsReadOnly = true;
- MovingCoilWaterSupplyFlow.Name = "动圈供水流量";
- MovingCoilWaterSupplyTemperature.MaxValue = 999;
- MovingCoilWaterSupplyTemperature.MinValue = 0;
- MovingCoilWaterSupplyTemperature.Address = 3029;
- MovingCoilWaterSupplyTemperature.B = 0;
- MovingCoilWaterSupplyTemperature.K = 1;
- MovingCoilWaterSupplyTemperature.Unit = "℃";
- MovingCoilWaterSupplyTemperature.IsReadOnly = true;
- MovingCoilWaterSupplyTemperature.Name = "动圈供水温度";
- ExcitationWaterSupplyFlow.MaxValue = 999;
- ExcitationWaterSupplyFlow.MinValue = 0;
- ExcitationWaterSupplyFlow.Address = 3030;
- ExcitationWaterSupplyFlow.B = 0;
- ExcitationWaterSupplyFlow.K = 1;
- ExcitationWaterSupplyFlow.Unit = "m³/h";
- ExcitationWaterSupplyFlow.IsReadOnly = true;
- ExcitationWaterSupplyFlow.Name = "励磁供水流量";
- ExcitationWaterSupplyPressure.MaxValue = 999;
- ExcitationWaterSupplyPressure.MinValue = 0;
- ExcitationWaterSupplyPressure.Address = 3031;
- ExcitationWaterSupplyPressure.B = 0;
- ExcitationWaterSupplyPressure.K = 1;
- ExcitationWaterSupplyPressure.Unit = "MPa";
- ExcitationWaterSupplyPressure.IsReadOnly = true;
- ExcitationWaterSupplyPressure.Name = "励磁供水压力";
- ExcitationWaterSupplyTemperature.MaxValue = 999;
- ExcitationWaterSupplyTemperature.MinValue = 0;
- ExcitationWaterSupplyTemperature.Address = 3032;
- ExcitationWaterSupplyTemperature.B = 0;
- ExcitationWaterSupplyTemperature.K = 1;
- ExcitationWaterSupplyTemperature.Unit = "℃";
- ExcitationWaterSupplyTemperature.IsReadOnly = true;
- ExcitationWaterSupplyTemperature.Name = "励磁供水温度";
- CoolingWater.StartAddress = 2502;
- CoolingWater.StopAddress = 2502;
- CoolingWater.ResetAddress = 2502;
- CoolingWater.ResetBitIndex = 2;
- CoolingWater.StartBitIndex = 0;
- CoolingWater.StopBitIndex = 1;
- CoolingWaterOperatingStatus.Name = "冷却状态";
- CoolingWaterOperatingStatus.MaxValue = 999;
- CoolingWaterOperatingStatus.MinValue = 0;
- CoolingWaterOperatingStatus.Address = 3033;
- CoolingWaterOperatingStatus.B = 0;
- CoolingWaterOperatingStatus.K = 1;
- CoolingWaterOperatingStatus.Unit = "";
- CoolingWaterOperatingStatus.IsReadOnly = true;
- DigitalGroup.Address = 3051;
- DigitalGroup.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "门开关",
- "主柜热继",
- "冷却单元",
- "水平台油压",
- "水平台过位移",
- "台体导向静压轴承压力",
- "外部触发1",
- "台体过位移",
- "台体温度",
- "变压器温度",
- "励磁控制继电器反馈",
- "冷却单元控制继电器反馈",
- "急停",
- "外部触发2",
- "柜1模块",
- "柜2模块",
- "柜1继电器反馈",
- "柜2继电器反馈",
- "外部1",
- "外部变压器温度",
- "柜3模块",
- "柜4模块",
- "柜3继电器反馈",
- "柜4继电器反馈",
- "","","","","","","",""
- };
- DigitalGroup.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "打开",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "急停",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "","","","","","","",""
- };
- DigitalGroup.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "关闭",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "","","","","","","",""
- };
- DigitalGroup1.Address = 3104;
- DigitalGroup1.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "输出电压",
- "励磁欠流",
- "励磁过流",
- "励磁欠压",
- "励磁过压",
- "三相电压欠压",
- "三相电压过压",
- "柜1直流电压欠压",
- "柜1直流电压过压",
- "",
- "T01温度过高",
- "",
- "T00温度过高",
- "",
- "柜1输出电流过流",
- "柜2直流电压欠压",
- "柜2直流电压过压",
- "",
- "柜2输出电流过流",
- "",
- "",
- "",
- "",
- "柜3直流电压欠压",
- "柜3直流电压过压",
- "柜4直流电压欠压",
- "柜4直流电压过压",
- "",
- "柜3输出电流过流",
- "",
- "柜4输出电流过流",
- ""
- };
- DigitalGroup1.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "报警",
- "",
- "报警",
- "",
- "报警",
- "",
- "报警",
- "报警",
- "报警",
- "",
- "报警",
- "",
- "",
- "",
- "",
- "报警",
- "报警","报警","报警","","报警","","报警",""
- };
- DigitalGroup1.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "",
- "正常",
- "",
- "正常",
- "",
- "正常",
- "正常",
- "正常",
- "",
- "正常",
- "",
- "",
- "",
- "",
- "正常",
- "正常","正常","正常","","正常","","正常",""
- };
- CoolingWaterDigitalGroup.Address = 3105;
- CoolingWaterDigitalGroup.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "1#水泵",
- "2#水泵",
- "动圈水箱液位",
- "励磁水箱液位",
- "水冷单元",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
- CoolingWaterDigitalGroup.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "关闭",
- "关闭",
- "超限",
- "超限",
- "故障",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
- CoolingWaterDigitalGroup.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
- {
- "正常",
- "正常",
- "正常",
- "正常",
- "正常",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
- }
- [MessagePack.Key(1)]
- public string Name = string.Empty;
- [MessagePack.Key(2)]
- public string Description = string.Empty;
- [MessagePack.Key(3)]
- public string IPAddress = string.Empty;
- [MessagePack.Key(4)]
- public int Port = 502;
- [MessagePack.Key(5)]
- public byte SlaveID = 1;
- [MessagePack.Key(6)]
- public string ClientID = string.Empty;
- [MessagePack.Key(7)]
- public bool AllowCoolingWater = true;
- [MessagePack.Key(8)]
- public PowerAmplifierModel PowerAmplifier = new PowerAmplifierModel();
- [MessagePack.Key(9)]
- public PLCAnlogModel OperatingStatus = new PLCAnlogModel();
- [MessagePack.Key(10)]
- public PLCAnlogModel OutputCurrent = new PLCAnlogModel();
- [MessagePack.Key(11)]
- public PLCAnlogModel OutputVoltage = new PLCAnlogModel();
- [MessagePack.Key(12)]
- public PLCAnlogModel ExcitationCurrent = new PLCAnlogModel();
- [MessagePack.Key(13)]
- public PLCAnlogModel ExcitationVoltage = new PLCAnlogModel();
- [MessagePack.Key(14)]
- public PLCAnlogModel ThreePhaseVoltage = new PLCAnlogModel();
- [MessagePack.Key(15)]
- public PLCAnlogModel AbutmentTemperature0 = new PLCAnlogModel();
- [MessagePack.Key(16)]
- public PLCAnlogModel AbutmentTemperature1 = new PLCAnlogModel();
- [MessagePack.IgnoreMember]
- public string AbutmentTemperatureName => AbutmentTemperature0.Name + AbutmentTemperature1.Name;
- [MessagePack.Key(17)]
- public PLCAnlogModel DCVoltage1 = new PLCAnlogModel();
- [MessagePack.Key(18)]
- public PLCAnlogModel DCVoltage2 = new PLCAnlogModel();
- [MessagePack.Key(19)]
- public PLCAnlogModel DCVoltage3 = new PLCAnlogModel();
- [MessagePack.Key(20)]
- public PLCAnlogModel DCVoltage4 = new PLCAnlogModel();
- [MessagePack.Key(21)]
- public PLCAnlogModel ExternalCirculatingWaterPressure = new PLCAnlogModel();
- [MessagePack.Key(22)]
- public PLCAnlogModel ExternalCirculatingWaterFlow = new PLCAnlogModel();
- [MessagePack.Key(23)]
- public PLCAnlogModel ExternalCirculatingWaterTemperature = new PLCAnlogModel();
- [MessagePack.Key(24)]
- public PLCAnlogModel MovingCoilWaterSupplyPressure = new PLCAnlogModel();
- [MessagePack.Key(25)]
- public PLCAnlogModel MovingCoilWaterSupplyFlow = new PLCAnlogModel();
- [MessagePack.Key(26)]
- public PLCAnlogModel MovingCoilWaterSupplyTemperature = new PLCAnlogModel();
- [MessagePack.Key(27)]
- public PLCAnlogModel ExcitationWaterSupplyPressure = new PLCAnlogModel();
- [MessagePack.Key(28)]
- public PLCAnlogModel ExcitationWaterSupplyFlow = new PLCAnlogModel();
- [MessagePack.Key(29)]
- public PLCAnlogModel ExcitationWaterSupplyTemperature = new PLCAnlogModel();
- [MessagePack.IgnoreMember]
- public string DCVoltageName => DCVoltage1.Name + DCVoltage2.Name + DCVoltage3.Name + DCVoltage4.Name;
- [MessagePack.Key(30)]
- public PLCDigitalGroupModel DigitalGroup = new PLCDigitalGroupModel();
- [MessagePack.Key(31)]
- public PLCDigitalGroupModel DigitalGroup1 = new PLCDigitalGroupModel();
- [MessagePack.Key(32)]
- public PLCDigitalGroupModel CoolingWaterDigitalGroup = new PLCDigitalGroupModel();
- [MessagePack.Key(33)]
- public CoolingWaterModel CoolingWater = new CoolingWaterModel();
- [MessagePack.Key(34)]
- public PLCAnlogModel CoolingWaterOperatingStatus = new PLCAnlogModel();
- }
- }
|