ShakerControlModel.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Shaker.Model
  7. {
  8. [MessagePack.MessagePackObject]
  9. public class ShakerControlModel : TableBase
  10. {
  11. public ShakerControlModel()
  12. {
  13. IPAddress = "127.0.0.1";
  14. Port = 502;
  15. SlaveID = 1;
  16. Name = "振动台";
  17. Description = "测试用振动台";
  18. PowerAmplifier.ResetBitIndex = 2;
  19. PowerAmplifier.StartBitIndex = 0;
  20. PowerAmplifier.StopBitIndex = 1;
  21. PowerAmplifier.GainSwitchBitIndex = 4;
  22. PowerAmplifier.ResetAddress = 2501;
  23. PowerAmplifier.StartAddress = 2501;
  24. PowerAmplifier.GainSwitchAddress = 2501;
  25. PowerAmplifier.GainAddress = 2502;
  26. OperatingStatus.Address = 3012;
  27. OperatingStatus.Unit = "";
  28. OperatingStatus.IsReadOnly = true;
  29. OperatingStatus.B = 0;
  30. OperatingStatus.K = 1;
  31. OperatingStatus.Name = "系统运行状态";
  32. OutputVoltage.Address = 3014;
  33. OutputVoltage.Unit = "V";
  34. OutputVoltage.IsReadOnly = true;
  35. OutputVoltage.B = 0;
  36. OutputVoltage.K = 1;
  37. OutputVoltage.Name = "功放输出电压";
  38. OutputVoltage.MaxValue = 999;
  39. OutputVoltage.MinValue = 0;
  40. OutputCurrent.MaxValue = 9999;
  41. OutputCurrent.MinValue = 0;
  42. OutputCurrent.Address = 3013;
  43. OutputCurrent.B = 0;
  44. OutputCurrent.K = 1;
  45. OutputCurrent.Unit = "A";
  46. OutputCurrent.IsReadOnly = true;
  47. OutputCurrent.Name = "功放输出总电流";
  48. ExcitationCurrent.MaxValue = 999;
  49. ExcitationCurrent.MinValue = 0;
  50. ExcitationCurrent.Address = 3015;
  51. ExcitationCurrent.B = 0;
  52. ExcitationCurrent.K = 1;
  53. ExcitationCurrent.Unit = "A";
  54. ExcitationCurrent.IsReadOnly = true;
  55. ExcitationCurrent.Name = "励磁电流";
  56. ExcitationVoltage.MaxValue = 999;
  57. ExcitationVoltage.MinValue = 0;
  58. ExcitationVoltage.Address = 3016;
  59. ExcitationVoltage.B = 0;
  60. ExcitationVoltage.K = 1;
  61. ExcitationVoltage.Unit = "V";
  62. ExcitationVoltage.IsReadOnly = true;
  63. ExcitationVoltage.Name = "励磁电压";
  64. ThreePhaseVoltage.MaxValue = 999;
  65. ThreePhaseVoltage.MinValue = 0;
  66. ThreePhaseVoltage.Address = 3017;
  67. ThreePhaseVoltage.B = 0;
  68. ThreePhaseVoltage.K = 1;
  69. ThreePhaseVoltage.Unit = "V";
  70. ThreePhaseVoltage.IsReadOnly = true;
  71. ThreePhaseVoltage.Name = "三相电压";
  72. AbutmentTemperature0.MaxValue = 999;
  73. AbutmentTemperature0.MinValue = 0;
  74. AbutmentTemperature0.Address = 3018;
  75. AbutmentTemperature0.B = 0;
  76. AbutmentTemperature0.K = 1;
  77. AbutmentTemperature0.Unit = "℃";
  78. AbutmentTemperature0.IsReadOnly = true;
  79. AbutmentTemperature0.Name = "台体温度0";
  80. AbutmentTemperature1.MaxValue = 999;
  81. AbutmentTemperature1.MinValue = 0;
  82. AbutmentTemperature1.Address = 3019;
  83. AbutmentTemperature1.B = 0;
  84. AbutmentTemperature1.K = 1;
  85. AbutmentTemperature1.Unit = "℃";
  86. AbutmentTemperature1.IsReadOnly = true;
  87. AbutmentTemperature1.Name = "台体温度1";
  88. DCVoltage1.MaxValue = 999;
  89. DCVoltage1.MinValue = 0;
  90. DCVoltage1.Address = 3020;
  91. DCVoltage1.B = 0;
  92. DCVoltage1.K = 1;
  93. DCVoltage1.Unit = "V";
  94. DCVoltage1.IsReadOnly = true;
  95. DCVoltage1.Name = "1柜直流电压";
  96. DCVoltage2.MaxValue = 999;
  97. DCVoltage2.MinValue = 0;
  98. DCVoltage2.Address = 3021;
  99. DCVoltage2.B = 0;
  100. DCVoltage2.K = 1;
  101. DCVoltage2.Unit = "V";
  102. DCVoltage2.IsReadOnly = true;
  103. DCVoltage2.Name = "2柜直流电压";
  104. DCVoltage3.MaxValue = 999;
  105. DCVoltage3.MinValue = 0;
  106. DCVoltage3.Address = 3022;
  107. DCVoltage3.B = 0;
  108. DCVoltage3.K = 1;
  109. DCVoltage3.Unit = "V";
  110. DCVoltage3.IsReadOnly = true;
  111. DCVoltage3.Name = "3柜直流电压";
  112. DCVoltage4.MaxValue = 999;
  113. DCVoltage4.MinValue = 0;
  114. DCVoltage4.Address = 3023;
  115. DCVoltage4.B = 0;
  116. DCVoltage4.K = 1;
  117. DCVoltage4.Unit = "V";
  118. DCVoltage4.IsReadOnly = true;
  119. DCVoltage4.Name = "4柜直流电压";
  120. ExternalCirculatoryPressure.MaxValue = 999;
  121. ExternalCirculatoryPressure.ValueType = PLCValueType.Float;
  122. ExternalCirculatoryPressure.MinValue = 0;
  123. ExternalCirculatoryPressure.Address = 3063;
  124. ExternalCirculatoryPressure.B = 0;
  125. ExternalCirculatoryPressure.K = 1;
  126. ExternalCirculatoryPressure.Unit = "MPa";
  127. ExternalCirculatoryPressure.IsReadOnly = true;
  128. ExternalCirculatoryPressure.Name = "外循环压力";
  129. MovingCoilPressure.MaxValue = 999;
  130. MovingCoilPressure.ValueType = PLCValueType.Float;
  131. MovingCoilPressure.MinValue = 0;
  132. MovingCoilPressure.Address = 3065;
  133. MovingCoilPressure.B = 0;
  134. MovingCoilPressure.K = 1;
  135. MovingCoilPressure.Unit = "MPa";
  136. MovingCoilPressure.IsReadOnly = true;
  137. MovingCoilPressure.Name = "动圈压力";
  138. ExcitationPressure.MaxValue = 999;
  139. ExcitationPressure.ValueType = PLCValueType.Float;
  140. ExcitationPressure.MinValue = 0;
  141. ExcitationPressure.Address = 3067;
  142. ExcitationPressure.B = 0;
  143. ExcitationPressure.K = 1;
  144. ExcitationPressure.Unit = "MPa";
  145. ExcitationPressure.IsReadOnly = true;
  146. ExcitationPressure.Name = "励磁压力";
  147. OilPumpPressure.MaxValue = 999;
  148. OilPumpPressure.ValueType = PLCValueType.Float;
  149. OilPumpPressure.MinValue = 0;
  150. OilPumpPressure.Address = 3071;
  151. OilPumpPressure.B = 0;
  152. OilPumpPressure.K = 1;
  153. OilPumpPressure.Unit = "MPa";
  154. OilPumpPressure.IsReadOnly = true;
  155. OilPumpPressure.Name = "油泵压力";
  156. DynamicFlow.MaxValue = 999;
  157. DynamicFlow.ValueType = PLCValueType.Float;
  158. DynamicFlow.MinValue = 0;
  159. DynamicFlow.Address = 3073;
  160. DynamicFlow.B = 0;
  161. DynamicFlow.K = 1;
  162. DynamicFlow.Unit = "m³/h";
  163. DynamicFlow.IsReadOnly = true;
  164. DynamicFlow.Name = "动圈流量";
  165. ExcitationFlow.MaxValue = 999;
  166. ExcitationFlow.ValueType = PLCValueType.Float;
  167. ExcitationFlow.MinValue = 0;
  168. ExcitationFlow.Address = 3075;
  169. ExcitationFlow.B = 0;
  170. ExcitationFlow.K = 1;
  171. ExcitationFlow.Unit = "m³/h";
  172. ExcitationFlow.IsReadOnly = true;
  173. ExcitationFlow.Name = "励磁流量";
  174. MovingCoilWaterTemperature.MaxValue = 999;
  175. MovingCoilWaterTemperature.ValueType = PLCValueType.Float;
  176. MovingCoilWaterTemperature.MinValue = 0;
  177. MovingCoilWaterTemperature.Address = 3077;
  178. MovingCoilWaterTemperature.B = 0;
  179. MovingCoilWaterTemperature.K = 1;
  180. MovingCoilWaterTemperature.Unit = "℃";
  181. MovingCoilWaterTemperature.IsReadOnly = true;
  182. MovingCoilWaterTemperature.Name = "动圈供水温度";
  183. ExcitationWaterTemperature.MaxValue = 999;
  184. ExcitationWaterTemperature.ValueType = PLCValueType.Float;
  185. ExcitationWaterTemperature.MinValue = 0;
  186. ExcitationWaterTemperature.Address = 3079;
  187. ExcitationWaterTemperature.B = 0;
  188. ExcitationWaterTemperature.K = 1;
  189. ExcitationWaterTemperature.Unit = "℃";
  190. ExcitationWaterTemperature.IsReadOnly = true;
  191. ExcitationWaterTemperature.Name = "励磁供水温度";
  192. OilPumpTemperature.MaxValue = 999;
  193. OilPumpTemperature.ValueType = PLCValueType.Float;
  194. OilPumpTemperature.MinValue = 0;
  195. OilPumpTemperature.Address = 3083;
  196. OilPumpTemperature.B = 0;
  197. OilPumpTemperature.K = 1;
  198. OilPumpTemperature.Unit = "℃";
  199. OilPumpTemperature.IsReadOnly = true;
  200. OilPumpTemperature.Name = "内部油泵温度";
  201. CoolingWaterOperatingStatus.Name = "冷却状态";
  202. CoolingWaterOperatingStatus.MaxValue = 999;
  203. CoolingWaterOperatingStatus.MinValue = 0;
  204. CoolingWaterOperatingStatus.Address = 3061;
  205. CoolingWaterOperatingStatus.B = 0;
  206. CoolingWaterOperatingStatus.K = 1;
  207. CoolingWaterOperatingStatus.Unit = "";
  208. CoolingWaterOperatingStatus.IsReadOnly = true;
  209. DigitalGroup.Address = 3051;
  210. DigitalGroup.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  211. {
  212. "门开关",
  213. "主柜热继",
  214. "冷却单元",
  215. "水平台油压",
  216. "水平台过位移",
  217. "台体导向静压轴承压力",
  218. "外部触发1",
  219. "台体过位移",
  220. "台体温度",
  221. "变压器温度",
  222. "励磁控制继电器反馈",
  223. "冷却单元控制继电器反馈",
  224. "急停",
  225. "外部触发2",
  226. "柜1模块",
  227. "柜2模块",
  228. "柜1继电器反馈",
  229. "柜2继电器反馈",
  230. "外部1",
  231. "外部变压器温度",
  232. "柜3模块",
  233. "柜4模块",
  234. "柜3继电器反馈",
  235. "柜4继电器反馈",
  236. "","","","","","","",""
  237. };
  238. DigitalGroup.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  239. {
  240. "打开",
  241. "报警",
  242. "报警",
  243. "报警",
  244. "报警",
  245. "报警",
  246. "报警",
  247. "报警",
  248. "报警",
  249. "报警",
  250. "报警",
  251. "报警",
  252. "报警",
  253. "报警",
  254. "报警",
  255. "报警",
  256. "报警",
  257. "报警",
  258. "急停",
  259. "报警",
  260. "报警",
  261. "报警",
  262. "报警",
  263. "报警",
  264. "","","","","","","",""
  265. };
  266. DigitalGroup.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  267. {
  268. "关闭",
  269. "正常",
  270. "正常",
  271. "正常",
  272. "正常",
  273. "正常",
  274. "正常",
  275. "正常",
  276. "正常",
  277. "正常",
  278. "正常",
  279. "正常",
  280. "正常",
  281. "正常",
  282. "正常",
  283. "正常",
  284. "正常",
  285. "正常",
  286. "正常",
  287. "正常",
  288. "正常",
  289. "正常",
  290. "正常",
  291. "正常",
  292. "","","","","","","",""
  293. };
  294. DigitalGroup1.Address = 3104;
  295. DigitalGroup1.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  296. {
  297. "输出电压",
  298. "励磁欠流",
  299. "励磁过流",
  300. "励磁欠压",
  301. "励磁过压",
  302. "三相电压欠压",
  303. "三相电压过压",
  304. "柜1直流电压欠压",
  305. "柜1直流电压过压",
  306. "",
  307. "T01温度过高",
  308. "",
  309. "T00温度过高",
  310. "",
  311. "柜1输出电流过流",
  312. "柜2直流电压欠压",
  313. "柜2直流电压过压",
  314. "",
  315. "柜2输出电流过流",
  316. "",
  317. "",
  318. "",
  319. "",
  320. "柜3直流电压欠压",
  321. "柜3直流电压过压",
  322. "柜4直流电压欠压",
  323. "柜4直流电压过压",
  324. "",
  325. "柜3输出电流过流",
  326. "",
  327. "柜4输出电流过流",
  328. ""
  329. };
  330. DigitalGroup1.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  331. {
  332. "报警",
  333. "报警",
  334. "报警",
  335. "报警",
  336. "报警",
  337. "报警",
  338. "报警",
  339. "报警",
  340. "报警",
  341. "",
  342. "报警",
  343. "",
  344. "报警",
  345. "",
  346. "报警",
  347. "报警",
  348. "报警",
  349. "",
  350. "报警",
  351. "",
  352. "",
  353. "",
  354. "",
  355. "报警",
  356. "报警","报警","报警","","报警","","报警",""
  357. };
  358. DigitalGroup1.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT]
  359. {
  360. "正常",
  361. "正常",
  362. "正常",
  363. "正常",
  364. "正常",
  365. "正常",
  366. "正常",
  367. "正常",
  368. "正常",
  369. "",
  370. "正常",
  371. "",
  372. "正常",
  373. "",
  374. "正常",
  375. "正常",
  376. "正常",
  377. "",
  378. "正常",
  379. "",
  380. "",
  381. "",
  382. "",
  383. "正常",
  384. "正常","正常","正常","","正常","","正常",""
  385. };
  386. CoolingWaterDigitalGroup.Address = 3151;
  387. CoolingWaterDigitalGroup.Values = new byte[PLCDigitalGroupModel.DIGITAL_GROUP_BYTE_COUNT * 3];
  388. CoolingWaterDigitalGroup.ByteCount = PLCDigitalGroupModel.DIGITAL_GROUP_BYTE_COUNT * 3;
  389. CoolingWaterDigitalGroup.Names = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT * 3]
  390. {
  391. "",
  392. "水冷柜热继",
  393. "动圈水箱水位",
  394. "励磁水箱水位",
  395. "油泵液位",
  396. "",
  397. "",
  398. "",
  399. "",
  400. "",
  401. "",
  402. "",
  403. "",
  404. "",
  405. "",
  406. "",
  407. "",
  408. "",
  409. "",
  410. "",
  411. "",
  412. "",
  413. "",
  414. "",
  415. "",
  416. "",
  417. "",
  418. "",
  419. "",
  420. "",
  421. "",
  422. "",
  423. "",
  424. "",
  425. "",
  426. "",
  427. "",
  428. "",
  429. "",
  430. "",
  431. "",
  432. "",
  433. "",
  434. "",
  435. "",
  436. "",
  437. "",
  438. "",
  439. "",
  440. "",
  441. "",
  442. "",
  443. "",
  444. "",
  445. "",
  446. "",
  447. "",
  448. "",
  449. "",
  450. "",
  451. "",
  452. "",
  453. "",
  454. "",
  455. "外循环压力",
  456. "",
  457. "动圈压力",
  458. "",
  459. "励磁压力",
  460. "",
  461. "油泵压力",
  462. "",
  463. "动圈流量",
  464. "",
  465. "励磁流量",
  466. "",
  467. "",
  468. "动圈供水温度",
  469. "",
  470. "励磁供水温度",
  471. "",
  472. "",
  473. "",
  474. "油泵温度",
  475. "",
  476. "",
  477. "",
  478. "",
  479. "",
  480. "",
  481. "",
  482. "",
  483. "",
  484. "",
  485. "",
  486. "",
  487. };
  488. CoolingWaterDigitalGroup.ErrorMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT * 3]
  489. {
  490. "",
  491. "报警",
  492. "低",
  493. "低",
  494. "低",
  495. "",
  496. "",
  497. "",
  498. "",
  499. "",
  500. "",
  501. "",
  502. "",
  503. "",
  504. "",
  505. "",
  506. "",
  507. "",
  508. "",
  509. "",
  510. "",
  511. "",
  512. "",
  513. "",
  514. "",
  515. "",
  516. "",
  517. "",
  518. "",
  519. "",
  520. "",
  521. "",
  522. "",
  523. "",
  524. "",
  525. "",
  526. "",
  527. "",
  528. "",
  529. "",
  530. "",
  531. "",
  532. "",
  533. "",
  534. "",
  535. "",
  536. "",
  537. "",
  538. "",
  539. "",
  540. "",
  541. "",
  542. "",
  543. "",
  544. "",
  545. "",
  546. "",
  547. "",
  548. "",
  549. "",
  550. "",
  551. "",
  552. "",
  553. "",
  554. "低",
  555. "",
  556. "低",
  557. "",
  558. "低",
  559. "",
  560. "低",
  561. "",
  562. "低",
  563. "",
  564. "低",
  565. "",
  566. "",
  567. "高",
  568. "",
  569. "高",
  570. "",
  571. "",
  572. "",
  573. "高",
  574. "",
  575. "",
  576. "",
  577. "",
  578. "",
  579. "",
  580. "",
  581. "",
  582. "",
  583. "",
  584. "",
  585. "",
  586. };
  587. CoolingWaterDigitalGroup.NomalMessage = new string[PLCDigitalGroupModel.DIGITAL_GROUP_BIT_COUNT * 3]
  588. {
  589. "",
  590. "正常",
  591. "正常",
  592. "正常",
  593. "正常",
  594. "",
  595. "",
  596. "",
  597. "",
  598. "",
  599. "",
  600. "",
  601. "",
  602. "",
  603. "",
  604. "",
  605. "",
  606. "",
  607. "",
  608. "",
  609. "",
  610. "",
  611. "",
  612. "",
  613. "",
  614. "",
  615. "",
  616. "",
  617. "",
  618. "",
  619. "",
  620. "",
  621. "",
  622. "",
  623. "",
  624. "",
  625. "",
  626. "",
  627. "",
  628. "",
  629. "",
  630. "",
  631. "",
  632. "",
  633. "",
  634. "",
  635. "",
  636. "",
  637. "",
  638. "",
  639. "",
  640. "",
  641. "",
  642. "",
  643. "",
  644. "",
  645. "",
  646. "",
  647. "",
  648. "",
  649. "",
  650. "",
  651. "",
  652. "",
  653. "正常",
  654. "",
  655. "正常",
  656. "",
  657. "正常",
  658. "",
  659. "正常",
  660. "",
  661. "正常",
  662. "",
  663. "正常",
  664. "",
  665. "",
  666. "正常",
  667. "",
  668. "正常",
  669. "",
  670. "",
  671. "",
  672. "正常",
  673. "",
  674. "",
  675. "",
  676. "",
  677. "",
  678. "",
  679. "",
  680. "",
  681. "",
  682. "",
  683. "",
  684. "",
  685. };
  686. }
  687. [MessagePack.Key(1)]
  688. public string Name = string.Empty;
  689. [MessagePack.Key(2)]
  690. public string Description = string.Empty;
  691. [MessagePack.Key(3)]
  692. public string IPAddress = string.Empty;
  693. [MessagePack.Key(4)]
  694. public int Port = 502;
  695. [MessagePack.Key(5)]
  696. public byte SlaveID = 1;
  697. [MessagePack.Key(6)]
  698. public string ClientID = string.Empty;
  699. [MessagePack.Key(7)]
  700. public bool AllowCoolingWater = true;
  701. [MessagePack.Key(8)]
  702. public PowerAmplifierModel PowerAmplifier = new PowerAmplifierModel();
  703. [MessagePack.Key(9)]
  704. public PLCAnlogModel OperatingStatus = new PLCAnlogModel();
  705. [MessagePack.Key(10)]
  706. public PLCAnlogModel OutputCurrent = new PLCAnlogModel();
  707. [MessagePack.Key(11)]
  708. public PLCAnlogModel OutputVoltage = new PLCAnlogModel();
  709. [MessagePack.Key(12)]
  710. public PLCAnlogModel ExcitationCurrent = new PLCAnlogModel();
  711. [MessagePack.Key(13)]
  712. public PLCAnlogModel ExcitationVoltage = new PLCAnlogModel();
  713. [MessagePack.Key(14)]
  714. public PLCAnlogModel ThreePhaseVoltage = new PLCAnlogModel();
  715. [MessagePack.Key(15)]
  716. public PLCAnlogModel AbutmentTemperature0 = new PLCAnlogModel();
  717. [MessagePack.Key(16)]
  718. public PLCAnlogModel AbutmentTemperature1 = new PLCAnlogModel();
  719. [MessagePack.IgnoreMember]
  720. public string AbutmentTemperatureName => AbutmentTemperature0.Name + AbutmentTemperature1.Name;
  721. [MessagePack.Key(17)]
  722. public PLCAnlogModel DCVoltage1 = new PLCAnlogModel();
  723. [MessagePack.Key(18)]
  724. public PLCAnlogModel DCVoltage2 = new PLCAnlogModel();
  725. [MessagePack.Key(19)]
  726. public PLCAnlogModel DCVoltage3 = new PLCAnlogModel();
  727. [MessagePack.Key(20)]
  728. public PLCAnlogModel DCVoltage4 = new PLCAnlogModel();
  729. [MessagePack.Key(21)]
  730. public PLCAnlogModel ExternalCirculatoryPressure = new PLCAnlogModel();
  731. [MessagePack.Key(22)]
  732. public PLCAnlogModel MovingCoilPressure = new PLCAnlogModel();
  733. [MessagePack.Key(23)]
  734. public PLCAnlogModel ExcitationPressure = new PLCAnlogModel();
  735. [MessagePack.Key(24)]
  736. public PLCAnlogModel OilPumpPressure = new PLCAnlogModel();
  737. [MessagePack.Key(25)]
  738. public PLCAnlogModel DynamicFlow = new PLCAnlogModel();
  739. [MessagePack.Key(26)]
  740. public PLCAnlogModel ExcitationFlow = new PLCAnlogModel();
  741. [MessagePack.Key(27)]
  742. public PLCAnlogModel MovingCoilWaterTemperature = new PLCAnlogModel();
  743. [MessagePack.Key(28)]
  744. public PLCAnlogModel ExcitationWaterTemperature = new PLCAnlogModel();
  745. [MessagePack.Key(29)]
  746. public PLCAnlogModel OilPumpTemperature = new PLCAnlogModel();
  747. [MessagePack.IgnoreMember]
  748. public string DCVoltageName => DCVoltage1.Name + DCVoltage2.Name + DCVoltage3.Name + DCVoltage4.Name;
  749. [MessagePack.Key(30)]
  750. public PLCDigitalGroupModel DigitalGroup = new PLCDigitalGroupModel();
  751. [MessagePack.Key(31)]
  752. public PLCDigitalGroupModel DigitalGroup1 = new PLCDigitalGroupModel();
  753. [MessagePack.Key(32)]
  754. public PLCDigitalGroupModel CoolingWaterDigitalGroup = new PLCDigitalGroupModel();
  755. [MessagePack.Key(34)]
  756. public PLCAnlogModel CoolingWaterOperatingStatus = new PLCAnlogModel();
  757. public short[] GetDatas()
  758. {
  759. return new short[Shaker.Model.DataMangerItemModel.ANALOG_DATA_LENGTH]
  760. {
  761. OperatingStatus.Value[0],
  762. OutputCurrent.Value[0],
  763. OutputVoltage.Value[0],
  764. ExcitationCurrent.Value[0],
  765. ExcitationVoltage.Value[0],
  766. ThreePhaseVoltage.Value[0],
  767. AbutmentTemperature0.Value[0],
  768. AbutmentTemperature1.Value[0],
  769. DCVoltage1.Value[0],
  770. DCVoltage2.Value[0],
  771. DCVoltage3.Value[0],
  772. DCVoltage4.Value[0],
  773. ExternalCirculatoryPressure.Value[0],
  774. ExternalCirculatoryPressure.Value[1],
  775. MovingCoilPressure.Value[0],
  776. MovingCoilPressure.Value[1],
  777. ExcitationPressure.Value[0],
  778. ExcitationPressure.Value[1],
  779. OilPumpPressure.Value[0],
  780. OilPumpPressure.Value[1],
  781. DynamicFlow.Value[0],
  782. DynamicFlow.Value[1],
  783. ExcitationFlow.Value[0],
  784. ExcitationFlow.Value[1],
  785. MovingCoilWaterTemperature.Value[0],
  786. MovingCoilWaterTemperature.Value[1],
  787. ExcitationWaterTemperature.Value[0],
  788. ExcitationWaterTemperature.Value[1],
  789. OilPumpTemperature.Value[0],
  790. OilPumpTemperature.Value[1],
  791. CoolingWaterOperatingStatus.Value[0],
  792. };
  793. }
  794. }
  795. }