终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

749 lines
24 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace FryPot_DosingSystem.Control
  7. {
  8. /// <summary>
  9. /// plc变量
  10. /// </summary>
  11. internal class GlobalVariable
  12. {
  13. /// <summary>
  14. /// 滚筒线1
  15. /// </summary>
  16. public RollerLineOne rollerLineOne = new RollerLineOne();
  17. /// <summary>
  18. /// 滚筒线2
  19. /// </summary>
  20. public RollerLineTwo rollerLineTwo = new RollerLineTwo();
  21. /// <summary>
  22. /// 滚筒线3
  23. /// </summary>
  24. public RollerLineThree rollerLineThree = new RollerLineThree();
  25. /// <summary>
  26. /// 炒锅1
  27. /// </summary>
  28. public FryPotOne fryPotOne= new FryPotOne();
  29. /// <summary>
  30. /// 炒锅2
  31. /// </summary>
  32. public FryPotTwo fryPotTwo= new FryPotTwo();
  33. /// <summary>
  34. /// 炒锅3
  35. /// </summary>
  36. public FryPotThree fryPotThree= new FryPotThree();
  37. /// <summary>
  38. /// 炒锅4
  39. /// </summary>
  40. public FryPotFour fryPotFour= new FryPotFour();
  41. /// <summary>
  42. /// 炒锅5
  43. /// </summary>
  44. public FryPotFive fryPotFive= new FryPotFive();
  45. /// <summary>
  46. /// 洗桶进桶滚筒运行信号
  47. /// </summary>
  48. public ushort CleadBarrelEnterSingle { get; set; }
  49. /// <summary>
  50. /// 洗桶出桶滚筒运行信号
  51. /// </summary>
  52. public ushort CleadBarrelExitSingle { get; set; }
  53. /// <summary>
  54. /// PLC初始化状态
  55. /// </summary>
  56. public ushort PlcInite { get; set; }
  57. /// <summary>
  58. /// 清洗台清洗完成信号/洗桶出桶AGV呼叫信号
  59. /// </summary>
  60. public ushort CleanComplete { get; set; }
  61. #region 上位机内部逻辑条件
  62. /// <summary>
  63. /// 退出线体1任务
  64. /// </summary>
  65. public bool ExitLineOneTask { get; set; }
  66. /// <summary>
  67. /// 退出线体2任务
  68. /// </summary>
  69. public bool ExitLineTwoTask { get; set; }
  70. /// <summary>
  71. /// 退出线体3任务
  72. /// </summary>
  73. public bool ExitLineThreeTask { get; set; }
  74. /// <summary>
  75. /// 允许AGV去线体1装桶条件
  76. /// </summary>
  77. public bool AllowAgvToLineLoadRoller { get; set; } = true;
  78. /// <summary>
  79. /// 允许AGV去线体2装桶条件
  80. /// </summary>
  81. public bool AllowAgvToLineTwoLoadRoller { get; set; } = true;
  82. /// <summary>
  83. /// 允许AGV去线体3装桶条件
  84. /// </summary>
  85. public bool AllowAgvToLineThreeLoadRoller { get; set; } = true;
  86. ///// <summary>
  87. ///// 配方唯一ID
  88. ///// </summary>
  89. //public string RecipeId { get; set; }
  90. /// <summary>
  91. /// 线体1对应的进桶出桶互锁
  92. /// </summary>
  93. public bool InOrOutputLock { get; set; }
  94. /// <summary>
  95. /// 线体2对应的进桶出桶互锁
  96. /// </summary>
  97. public bool LTwoInOrOutputLock { get; set; }
  98. /// <summary>
  99. /// 线体3对应的进桶出桶互锁
  100. /// </summary>
  101. public bool LThreeInOrOutputLock { get; set; }
  102. ///// <summary>
  103. ///// 线体1任务执行锁
  104. ///// </summary>
  105. //public bool LOneTaskLock { get; set; }
  106. ///// <summary>
  107. ///// 线体2任务执行锁
  108. ///// </summary>
  109. //public bool LTwoTaskLock { get; set; }
  110. ///// <summary>
  111. ///// 线体3任务执行锁
  112. ///// </summary>
  113. //public bool LThreeTaskLock { get; set; }
  114. /// <summary>
  115. /// 线体1当前正在制作的配方名称
  116. /// </summary>
  117. public string LOneCurrentRecipeName { get; set; } = string.Empty;
  118. /// <summary>
  119. /// 线体2当前正在制作的配方名称
  120. /// </summary>
  121. public string LTwoCurrentRecipeName { get; set; } = string.Empty;
  122. /// <summary>
  123. /// 线体3当前正在制作的配方名称
  124. /// </summary>
  125. public string LThreeCurrentRecipeName { get; set; } = string.Empty;
  126. #endregion
  127. #region 线体1流程互锁变量
  128. public bool LoadRoller { get; set; }
  129. public bool AgvToFryPot { get; set; }
  130. public bool PotOneInputMaterialArrive { get; set; }
  131. public bool PotOneOutputRollerArrive { get; set; }
  132. public bool AgvArrivePot { get; set; }
  133. #endregion
  134. #region 线体2流程互锁变量
  135. public bool LTwoLoadRoller { get; set; }
  136. public bool LTwoAgvToFryPot { get; set; }
  137. public bool LTwoPotInputMaterialArrive { get; set; }
  138. public bool LTwoPotOutputRollerArrive { get; set; }
  139. public bool LTwoAgvArrivePot { get; set; }
  140. #endregion
  141. #region 线体3流程互锁变量
  142. public bool LThreeLoadRoller { get; set; }
  143. public bool LThreeAgvToFryPot { get; set; }
  144. public bool LThreePotInputMaterialArrive { get; set; }
  145. public bool LThreePotOutputRollerArrive { get; set; }
  146. public bool LThreeAgvArrivePot { get; set; }
  147. #endregion
  148. #region AGV视图显示变量
  149. public int LOneMaterialNum { get; set; } = 0;
  150. public int LOneFryPotSerial { get; set; } = 1;
  151. public int LOneCurrentCookingStep { get; set; } = 0;
  152. public bool agvArriveUpLoad { get; set; }
  153. public bool agvArriveUnLoad { get; set; }
  154. public bool agvFryPotEmptyRollerArrive { get; set; }
  155. public bool EmptyRollerUnLoadcCom { get; set; }//AGV空桶4号线体下料完成
  156. public bool agvLineOneLoadCom { get; set; }//线体1上料完成
  157. public int LTwoMaterialNum { get; set; } = 0;
  158. public int LTwoFryPotSerial { get; set; } = 2;
  159. public int LTwoCurrentCookingStep { get; set; } = 0;
  160. public bool agvArriveLTwoUpLoad { get; set; }
  161. public bool LTwoagvArriveUnLoad { get; set; }
  162. public bool LTwoagvFryPotEmptyRollerArrive { get; set; }
  163. public bool agvLineTwoLoadCom { get; set; }//线体2上料完成
  164. public int LThreeMaterialNum { get; set; } = 0;
  165. public int LThreeFryPotSerial { get; set; } = 3;
  166. public int LThreeCurrentCookingStep { get; set; } = 0;
  167. public bool agvArriveLThreeUpLoad { get; set; }
  168. public bool LThreeagvArriveUnLoad { get; set; }
  169. public bool LThreeagvFryPotEmptyRollerArrive { get; set; }
  170. public bool agvLineThreeLoadCom { get; set; }//线体1上料完成
  171. public int LFourRollerNum { get; set; } = 0;//4号线体空桶数量
  172. //新增空桶清洗系列变量
  173. public bool agvArriveLineFour { get; set; }//agv从清洗台到达线体4下料位置
  174. //public bool agvArriveCleanUnLoad { get; set; }//agv到达清洗台下料位置
  175. public bool agvArriveCleanLoad { get; set; }//agv到达清洗台上料位置
  176. public bool agvArriveLineOneLoadEmptyRoller { get; set; }//agv到达线体1空桶上料位置
  177. public bool agvArriveLineTwoLoadEmptyRoller { get; set; }//agv到达线体2空桶上料位置
  178. public bool agvArriveLineThreeLoadEmptyRoller { get; set; }//agv到达线体3空桶上料位置
  179. public bool agvArriveLineOneLoadCom { get; set; } //agv线体1空桶上料完成
  180. public bool agvArriveLineTwoLoadCom { get; set; } //agv线体2空桶上料完成
  181. public bool agvArriveLineThreeLoadCom { get; set; }//agv线体3空桶上料完成
  182. /// <summary>
  183. /// 允许下一个空桶去洗桶
  184. /// </summary>
  185. public bool AllowNextEmptyRollerToClean { get; set; } = true;
  186. #endregion
  187. }
  188. /// <summary>
  189. /// 滚筒线1相关变量
  190. /// </summary>
  191. public class RollerLineOne
  192. {
  193. /// <summary>
  194. /// 工位号1
  195. /// </summary>
  196. public ushort StationOne { get; set; }
  197. /// <summary>
  198. /// 工位号2
  199. /// </summary>
  200. public ushort StationTwo { get; set; }
  201. /// <summary>
  202. /// 工位号3
  203. /// </summary>
  204. public ushort StationThree { get; set; }
  205. /// <summary>
  206. /// 工位号4
  207. /// </summary>
  208. public ushort StationFour { get; set; }
  209. /// <summary>
  210. /// 工位号5
  211. /// </summary>
  212. public ushort StationFive { get; set; }
  213. /// <summary>
  214. /// 工位号6
  215. /// </summary>
  216. public ushort StationSix { get; set; }
  217. /// <summary>
  218. /// 工位号7
  219. /// </summary>
  220. public ushort StationSeven { get; set; }
  221. /// <summary>
  222. /// 工位号8
  223. /// </summary>
  224. public ushort StationEight { get; set; }
  225. /// <summary>
  226. /// 输送出料滚筒运行信号
  227. /// </summary>
  228. public ushort OutMaterialingSingle { get; set; }
  229. /// <summary>
  230. /// 输送出料滚筒运行故障信号
  231. /// </summary>
  232. public ushort OutMaterialingTroubleSingle { get; set; }
  233. /// <summary>
  234. /// 当前线体配方完成信号
  235. /// </summary>
  236. public ushort RecipeCompleteSingle { get; set; }
  237. /// <summary>
  238. /// 当前配方完成的中转信号
  239. /// </summary>
  240. public ushort RecipeComMidSingle { get; set; } = 1;
  241. /// <summary>
  242. /// 线体1上空桶确认信号
  243. /// </summary>
  244. public ushort EmptyRollerConfirmSingle { get; set; }
  245. /// <summary>
  246. /// 线体1上单个空桶编号
  247. /// </summary>
  248. public ushort EmptyRollerNum { get; set; }
  249. /// <summary>
  250. /// 上一个桶是否是空桶,空桶上料结束后,配方料桶AGV才能去1号线装桶
  251. /// </summary>
  252. public bool IsEpmtyBefore { get; set; } //空桶上料结束后,配方料桶AGV才能去1号线装桶
  253. /// <summary>
  254. /// 配方料桶上料结束后,线体空桶AGV才能1号线装桶
  255. /// </summary>
  256. public bool CanRun { get; set; } = true; //配方料桶上料结束后,线体空桶AGV才能1号线装桶
  257. /// <summary>
  258. /// 线体1上所有空桶的编号集合
  259. /// </summary>
  260. public List<ushort> EmptyRollerNums { get; set; } = new List<ushort>();
  261. /// <summary>
  262. /// AGV从炒锅到达线体4空桶下料位置
  263. /// </summary>
  264. public bool agvArriveLineFour { get; set; }
  265. /// <summary>
  266. /// AGV从线体1到达清洗台
  267. /// </summary>
  268. public bool agvArriveCleanUnLoad { get; set; }
  269. /// <summary>
  270. /// 下位确认执行信号 true:执行 false:不执行
  271. /// </summary>
  272. public ushort ExcuteIsConfirm { get; set;} //默认为:0,确认执行:1,取消执行:2
  273. /// <summary>
  274. /// 线体1流程控制互锁信号
  275. /// </summary>
  276. public bool NextStart { get; set; }
  277. /// <summary>
  278. /// 下位信号判断
  279. /// </summary>
  280. public bool LowSignalJude { get; set; }
  281. /// <summary>
  282. /// 集中洗桶模式
  283. /// </summary>
  284. public ushort WashEmptyRollerModel { get; set; }
  285. /// <summary>
  286. /// 洗桶就位信号
  287. /// </summary>
  288. public ushort WashRollerArriveSignal { get; set; }
  289. }
  290. /// <summary>
  291. /// 滚筒线2相关变量
  292. /// </summary>
  293. public class RollerLineTwo
  294. {
  295. /// <summary>
  296. /// 工位号1
  297. /// </summary>
  298. public ushort StationOne { get; set; }
  299. /// <summary>
  300. /// 工位号2
  301. /// </summary>
  302. public ushort StationTwo { get; set; }
  303. /// <summary>
  304. /// 工位号3
  305. /// </summary>
  306. public ushort StationThree { get; set; }
  307. /// <summary>
  308. /// 工位号4
  309. /// </summary>
  310. public ushort StationFour { get; set; }
  311. /// <summary>
  312. /// 工位号5
  313. /// </summary>
  314. public ushort StationFive { get; set; }
  315. /// <summary>
  316. /// 工位号6
  317. /// </summary>
  318. public ushort StationSix { get; set; }
  319. /// <summary>
  320. /// 工位号7
  321. /// </summary>
  322. public ushort StationSeven { get; set; }
  323. /// <summary>
  324. /// 工位号8
  325. /// </summary>
  326. public ushort StationEight { get; set; }
  327. /// <summary>
  328. /// 输送出料滚筒运行信号
  329. /// </summary>
  330. public ushort OutMaterialingSingle { get; set; }
  331. /// <summary>
  332. /// 输送出料滚筒运行故障信号
  333. /// </summary>
  334. public ushort OutMaterialingTroubleSingle { get; set; }
  335. /// <summary>
  336. /// 当前线体配方完成信号
  337. /// </summary>
  338. public ushort RecipeCompleteSingle { get; set; }
  339. /// <summary>
  340. /// 当前配方完成的中转信号
  341. /// </summary>
  342. public ushort RecipeComMidSingle { get; set; } = 1;
  343. /// <summary>
  344. /// 线体1上空桶确认信号
  345. /// </summary>
  346. public ushort EmptyRollerConfirmSingle { get; set; }
  347. /// <summary>
  348. /// 线体1上单个空桶编号
  349. /// </summary>
  350. public ushort EmptyRollerNum { get; set; }
  351. /// <summary>
  352. /// 上一个同时否是空桶
  353. /// </summary>
  354. public bool IsEpmtyBefore { get; set; }
  355. public bool CanRun { get; set; } = true; //配方料桶上料结束后,线体空桶AGV才能1号线装桶
  356. /// <summary>
  357. /// 线体2上所有空桶的编号集合
  358. /// </summary>
  359. public List<ushort> EmptyRollerNums { get; set; } = new List<ushort>();
  360. /// <summary>
  361. /// AGV从炒锅到达线体4空桶下料位置
  362. /// </summary>
  363. public bool agvArriveLineFour { get; set; }
  364. /// <summary>
  365. /// AGV从线体2到达清洗台
  366. /// </summary>
  367. public bool agvArriveCleanUnLoad { get; set; }
  368. /// <summary>
  369. /// 下位确认执行信号 true:执行 false:不执行
  370. /// </summary>
  371. public ushort ExcuteIsConfirm { get; set; }
  372. /// <summary>
  373. /// 线体1流程控制互锁信号
  374. /// </summary>
  375. public bool NextStart { get; set; }
  376. /// <summary>
  377. /// 下位信号判断
  378. /// </summary>
  379. public bool LowSignalJude { get; set; }
  380. /// <summary>
  381. /// 集中洗桶模式
  382. /// </summary>
  383. public ushort WashEmptyRollerModel { get; set; }
  384. /// <summary>
  385. /// 洗桶就位信号
  386. /// </summary>
  387. public ushort WashRollerArriveSignal { get; set; }
  388. }
  389. /// <summary>
  390. /// 滚筒线3相关变量
  391. /// </summary>
  392. public class RollerLineThree
  393. {
  394. /// <summary>
  395. /// 工位号1
  396. /// </summary>
  397. public ushort StationOne { get; set; }
  398. /// <summary>
  399. /// 工位号2
  400. /// </summary>
  401. public ushort StationTwo { get; set; }
  402. /// <summary>
  403. /// 工位号3
  404. /// </summary>
  405. public ushort StationThree { get; set; }
  406. /// <summary>
  407. /// 工位号4
  408. /// </summary>
  409. public ushort StationFour { get; set; }
  410. /// <summary>
  411. /// 工位号5
  412. /// </summary>
  413. public ushort StationFive { get; set; }
  414. /// <summary>
  415. /// 工位号6
  416. /// </summary>
  417. public ushort StationSix { get; set; }
  418. /// <summary>
  419. /// 工位号7
  420. /// </summary>
  421. public ushort StationSeven { get; set; }
  422. /// <summary>
  423. /// 工位号8
  424. /// </summary>
  425. public ushort StationEight { get; set; }
  426. /// <summary>
  427. /// 输送出料滚筒运行信号
  428. /// </summary>
  429. public ushort OutMaterialingSingle { get; set; }
  430. /// <summary>
  431. /// 输送出料滚筒运行故障信号
  432. /// </summary>
  433. public ushort OutMaterialingTroubleSingle { get; set; }
  434. /// <summary>
  435. /// 当前线体配方完成信号
  436. /// </summary>
  437. public ushort RecipeCompleteSingle { get; set; }
  438. /// <summary>
  439. /// 当前配方完成的中转信号
  440. /// </summary>
  441. public ushort RecipeComMidSingle { get; set; } = 1;
  442. /// <summary>
  443. /// 线体1上空桶确认信号
  444. /// </summary>
  445. public ushort EmptyRollerConfirmSingle { get; set; }
  446. /// <summary>
  447. /// 线体1上单个空桶编号
  448. /// </summary>
  449. public ushort EmptyRollerNum { get; set; }
  450. /// <summary>
  451. /// 上一个同时否是空桶
  452. /// </summary>
  453. public bool IsEpmtyBefore { get; set; }
  454. public bool CanRun { get; set; } = true;//配方料桶上料结束后,线体空桶AGV才能1号线装桶
  455. /// <summary>
  456. /// 线体3上所有空桶的编号集合
  457. /// </summary>
  458. public List<ushort> EmptyRollerNums { get; set; } = new List<ushort>();
  459. /// <summary>
  460. /// AGV从炒锅到达线体4空桶下料位置
  461. /// </summary>
  462. public bool agvArriveLineFour { get; set; }
  463. /// <summary>
  464. /// AGV从线体3到达清洗台
  465. /// </summary>
  466. public bool agvArriveCleanUnLoad { get; set; }
  467. /// <summary>
  468. /// 下位确认执行信号 true:执行 false:不执行
  469. /// </summary>
  470. public ushort ExcuteIsConfirm { get; set; }
  471. /// <summary>
  472. /// 线体1流程控制互锁信号
  473. /// </summary>
  474. public bool NextStart { get; set; }
  475. /// <summary>
  476. /// 下位信号判断
  477. /// </summary>
  478. public bool LowSignalJude { get; set; }
  479. /// <summary>
  480. /// 集中洗桶模式
  481. /// </summary>
  482. public ushort WashEmptyRollerModel { get; set; }
  483. /// <summary>
  484. /// 洗桶就位信号
  485. /// </summary>
  486. public ushort WashRollerArriveSignal { get; set; }
  487. }
  488. /// <summary>
  489. /// 滚筒线4相关变量
  490. /// </summary>
  491. public class RollerLineFour
  492. {
  493. /// <summary>
  494. /// 工位号1
  495. /// </summary>
  496. public ushort StationOne { get; set; }
  497. /// <summary>
  498. /// 工位号2
  499. /// </summary>
  500. public ushort StationTwo { get; set; }
  501. /// <summary>
  502. /// 工位号3
  503. /// </summary>
  504. public ushort StationThree { get; set; }
  505. /// <summary>
  506. /// 工位号4
  507. /// </summary>
  508. public ushort StationFour { get; set; }
  509. /// <summary>
  510. /// 工位号5
  511. /// </summary>
  512. public ushort StationFive { get; set; }
  513. /// <summary>
  514. /// 工位号6
  515. /// </summary>
  516. public ushort StationSix { get; set; }
  517. /// <summary>
  518. /// 工位号7
  519. /// </summary>
  520. public ushort StationSeven { get; set; }
  521. /// <summary>
  522. /// 工位号8
  523. /// </summary>
  524. public ushort StationEight { get; set; }
  525. /// <summary>
  526. /// 输送出料滚筒运行信号
  527. /// </summary>
  528. public ushort OutMaterialingSingle { get; set; }
  529. /// <summary>
  530. /// 输送出料滚筒运行故障信号
  531. /// </summary>
  532. public ushort OutMaterialingTroubleSingle { get; set; }
  533. /// <summary>
  534. /// 当前线体配方完成信号
  535. /// </summary>
  536. public ushort RecipeCompleteSingle { get; set; }
  537. /// <summary>
  538. /// 当前配方完成的中转信号
  539. /// </summary>
  540. public ushort RecipeComMidSingle { get; set; } = 1;
  541. }
  542. /// <summary>
  543. /// 炒锅1相关变量
  544. /// </summary>
  545. public class FryPotOne
  546. {
  547. /// <summary>
  548. /// 进料滚筒运行信号
  549. /// </summary>
  550. public ushort InputMaterialRollerRunningSingle { get; set; }
  551. /// <summary>
  552. /// 进料到位信号
  553. /// </summary>
  554. public ushort InputMaterialArrivedSingle { get; set; }
  555. /// <summary>
  556. /// 空桶到位信号
  557. /// </summary>
  558. public ushort EmptyBarrelArrivedSingle { get; set; }
  559. /// <summary>
  560. /// 空桶滚筒运行信号
  561. /// </summary>
  562. public ushort EmptyBarrelRollerRunningSingle { get; set; }
  563. /// <summary>
  564. /// 滚筒故障信号
  565. /// </summary>
  566. public ushort RollerTroubleSingle { get; set; }
  567. /// <summary>
  568. /// 用油量确认信号
  569. /// </summary>
  570. public ushort OilConfirm { get; set; }
  571. /// <summary>
  572. /// 当前配方用油量
  573. /// </summary>
  574. public double OilCapacity { get; set; }
  575. }
  576. /// <summary>
  577. /// 炒锅2相关变量
  578. /// </summary>
  579. public class FryPotTwo
  580. {
  581. /// <summary>
  582. /// 进料滚筒运行信号
  583. /// </summary>
  584. public ushort InputMaterialRollerRunningSingle { get; set; }
  585. /// <summary>
  586. /// 进料到位信号
  587. /// </summary>
  588. public ushort InputMaterialArrivedSingle { get; set; }
  589. /// <summary>
  590. /// 空桶到位信号
  591. /// </summary>
  592. public ushort EmptyBarrelArrivedSingle { get; set; }
  593. /// <summary>
  594. /// 空桶滚筒运行信号
  595. /// </summary>
  596. public ushort EmptyBarrelRollerRunningSingle { get; set; }
  597. /// <summary>
  598. /// 滚筒故障信号
  599. /// </summary>
  600. public ushort RollerTroubleSingle { get; set; }
  601. /// <summary>
  602. /// 用油量确认信号
  603. /// </summary>
  604. public ushort OilConfirm { get; set; }
  605. /// <summary>
  606. /// 当前配方用油量
  607. /// </summary>
  608. public double OilCapacity { get; set; }
  609. }
  610. /// <summary>
  611. /// 炒锅3相关变量
  612. /// </summary>
  613. public class FryPotThree
  614. {
  615. /// <summary>
  616. /// 进料滚筒运行信号
  617. /// </summary>
  618. public ushort InputMaterialRollerRunningSingle { get; set; }
  619. /// <summary>
  620. /// 进料到位信号
  621. /// </summary>
  622. public ushort InputMaterialArrivedSingle { get; set; }
  623. /// <summary>
  624. /// 空桶到位信号
  625. /// </summary>
  626. public ushort EmptyBarrelArrivedSingle { get; set; }
  627. /// <summary>
  628. /// 空桶滚筒运行信号
  629. /// </summary>
  630. public ushort EmptyBarrelRollerRunningSingle { get; set; }
  631. /// <summary>
  632. /// 滚筒故障信号
  633. /// </summary>
  634. public ushort RollerTroubleSingle { get; set; }
  635. /// <summary>
  636. /// 用油量确认信号
  637. /// </summary>
  638. public ushort OilConfirm { get; set; }
  639. /// <summary>
  640. /// 当前配方用油量
  641. /// </summary>
  642. public double OilCapacity { get; set; }
  643. }
  644. /// <summary>
  645. /// 炒锅4相关变量
  646. /// </summary>
  647. public class FryPotFour
  648. {
  649. /// <summary>
  650. /// 进料滚筒运行信号
  651. /// </summary>
  652. public ushort InputMaterialRollerRunningSingle { get; set; }
  653. /// <summary>
  654. /// 进料到位信号
  655. /// </summary>
  656. public ushort InputMaterialArrivedSingle { get; set; }
  657. /// <summary>
  658. /// 空桶到位信号
  659. /// </summary>
  660. public ushort EmptyBarrelArrivedSingle { get; set; }
  661. /// <summary>
  662. /// 空桶滚筒运行信号
  663. /// </summary>
  664. public ushort EmptyBarrelRollerRunningSingle { get; set; }
  665. /// <summary>
  666. /// 滚筒故障信号
  667. /// </summary>
  668. public ushort RollerTroubleSingle { get; set; }
  669. /// <summary>
  670. /// 用油量确认信号
  671. /// </summary>
  672. public ushort OilConfirm { get; set; }
  673. /// <summary>
  674. /// 当前配方用油量
  675. /// </summary>
  676. public double OilCapacity { get; set; }
  677. }
  678. /// <summary>
  679. /// 炒锅5相关变量
  680. /// </summary>
  681. public class FryPotFive
  682. {
  683. /// <summary>
  684. /// 进料滚筒运行信号
  685. /// </summary>
  686. public ushort InputMaterialRollerRunningSingle { get; set; }
  687. /// <summary>
  688. /// 进料到位信号
  689. /// </summary>
  690. public ushort InputMaterialArrivedSingle { get; set; }
  691. /// <summary>
  692. /// 空桶到位信号
  693. /// </summary>
  694. public ushort EmptyBarrelArrivedSingle { get; set; }
  695. /// <summary>
  696. /// 空桶滚筒运行信号
  697. /// </summary>
  698. public ushort EmptyBarrelRollerRunningSingle { get; set; }
  699. /// <summary>
  700. /// 滚筒故障信号
  701. /// </summary>
  702. public ushort RollerTroubleSingle { get; set; }
  703. /// <summary>
  704. /// 用油量确认信号
  705. /// </summary>
  706. public ushort OilConfirm { get; set; }
  707. /// <summary>
  708. /// 当前配方用油量
  709. /// </summary>
  710. public double OilCapacity { get; set; }
  711. }
  712. }