|
- using BPASmartClient.AGV;
- using BPASmartClient.Helper;
- using FryPot_DosingSystem.Control;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
-
- namespace FryPot_DosingSystem.View
- {
- /// <summary>
- /// DebugView.xaml 的交互逻辑
- /// </summary>
- public partial class DebugView : UserControl
- {
- public DebugView()
- {
- InitializeComponent();
- }
- string taskId = string.Empty;
- private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- if (sender is ComboBox cbo)
- {
- if (cbo.SelectedValue != null)
- {
- ActionManage.GetInstance.Send("EightWorkLoc",cbo.SelectedValue);
- }
- }
- }
-
- private void ComboBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
- {
- if (sender is ComboBox cbo)
- {
- if (cbo.SelectedValue != null)
- {
- ActionManage.GetInstance.Send("TwoEightWorkLoc", cbo.SelectedValue);
- }
- }
- }
-
- private void ComboBox_SelectionChanged_2(object sender, SelectionChangedEventArgs e)
- {
- if (sender is ComboBox cbo)
- {
- if (cbo.SelectedValue != null)
- {
- ActionManage.GetInstance.Send("ThreeEightWorkLoc", cbo.SelectedValue);
- }
- }
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- DeviceOperate.GetInstance.WritePlcData("D1060", 0);
- // AGVHelper.GetInstance.AgvFromLineOneToFryFourLoadRoller(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvToLineTwoLoadRoller(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_2(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvFromLineTwoToFryFiveLoadRoller(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_3(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvToLineThreeLoadRoller(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_4(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveFryPotOne(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_5(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveFryPotTwo(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_6(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveFryPotThree(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_7(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveFryPotFour(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_8(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveFryPotFive(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_9(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveLOneToClean(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_10(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveLTwoToClean(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_11(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvLeaveLThreeToClean(Guid.NewGuid().ToString("D"));
- }
-
- private void Button_Click_12(object sender, RoutedEventArgs e)
- {
- AGVHelper.GetInstance.AgvFromCleanToLineFourUnLoadRoller(Guid.NewGuid().ToString("D"));
-
- }
-
-
- }
- }
|