终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DebugView.xaml.cs 4.1 KiB

pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. using BPASmartClient.AGV;
  2. using BPASmartClient.Helper;
  3. using FryPot_DosingSystem.Control;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. namespace FryPot_DosingSystem.View
  19. {
  20. /// <summary>
  21. /// DebugView.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class DebugView : UserControl
  24. {
  25. public DebugView()
  26. {
  27. InitializeComponent();
  28. }
  29. string taskId = string.Empty;
  30. private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
  31. {
  32. if (sender is ComboBox cbo)
  33. {
  34. if (cbo.SelectedValue != null)
  35. {
  36. ActionManage.GetInstance.Send("EightWorkLoc",cbo.SelectedValue);
  37. }
  38. }
  39. }
  40. private void ComboBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
  41. {
  42. if (sender is ComboBox cbo)
  43. {
  44. if (cbo.SelectedValue != null)
  45. {
  46. ActionManage.GetInstance.Send("TwoEightWorkLoc", cbo.SelectedValue);
  47. }
  48. }
  49. }
  50. private void ComboBox_SelectionChanged_2(object sender, SelectionChangedEventArgs e)
  51. {
  52. if (sender is ComboBox cbo)
  53. {
  54. if (cbo.SelectedValue != null)
  55. {
  56. ActionManage.GetInstance.Send("ThreeEightWorkLoc", cbo.SelectedValue);
  57. }
  58. }
  59. }
  60. private void Button_Click(object sender, RoutedEventArgs e)
  61. {
  62. DeviceOperate.GetInstance.WritePlcData("D1060", 0);
  63. // AGVHelper.GetInstance.AgvFromLineOneToFryFourLoadRoller(Guid.NewGuid().ToString("D"));
  64. }
  65. private void Button_Click_1(object sender, RoutedEventArgs e)
  66. {
  67. AGVHelper.GetInstance.AgvToLineTwoLoadRoller(Guid.NewGuid().ToString("D"));
  68. }
  69. private void Button_Click_2(object sender, RoutedEventArgs e)
  70. {
  71. AGVHelper.GetInstance.AgvFromLineTwoToFryFiveLoadRoller(Guid.NewGuid().ToString("D"));
  72. }
  73. private void Button_Click_3(object sender, RoutedEventArgs e)
  74. {
  75. AGVHelper.GetInstance.AgvToLineThreeLoadRoller(Guid.NewGuid().ToString("D"));
  76. }
  77. private void Button_Click_4(object sender, RoutedEventArgs e)
  78. {
  79. AGVHelper.GetInstance.AgvLeaveFryPotOne(Guid.NewGuid().ToString("D"));
  80. }
  81. private void Button_Click_5(object sender, RoutedEventArgs e)
  82. {
  83. AGVHelper.GetInstance.AgvLeaveFryPotTwo(Guid.NewGuid().ToString("D"));
  84. }
  85. private void Button_Click_6(object sender, RoutedEventArgs e)
  86. {
  87. AGVHelper.GetInstance.AgvLeaveFryPotThree(Guid.NewGuid().ToString("D"));
  88. }
  89. private void Button_Click_7(object sender, RoutedEventArgs e)
  90. {
  91. AGVHelper.GetInstance.AgvLeaveFryPotFour(Guid.NewGuid().ToString("D"));
  92. }
  93. private void Button_Click_8(object sender, RoutedEventArgs e)
  94. {
  95. AGVHelper.GetInstance.AgvLeaveFryPotFive(Guid.NewGuid().ToString("D"));
  96. }
  97. private void Button_Click_9(object sender, RoutedEventArgs e)
  98. {
  99. AGVHelper.GetInstance.AgvLeaveLOneToClean(Guid.NewGuid().ToString("D"));
  100. }
  101. private void Button_Click_10(object sender, RoutedEventArgs e)
  102. {
  103. AGVHelper.GetInstance.AgvLeaveLTwoToClean(Guid.NewGuid().ToString("D"));
  104. }
  105. private void Button_Click_11(object sender, RoutedEventArgs e)
  106. {
  107. AGVHelper.GetInstance.AgvLeaveLThreeToClean(Guid.NewGuid().ToString("D"));
  108. }
  109. private void Button_Click_12(object sender, RoutedEventArgs e)
  110. {
  111. AGVHelper.GetInstance.AgvFromCleanToLineFourUnLoadRoller(Guid.NewGuid().ToString("D"));
  112. }
  113. }
  114. }