| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573 |
-
- using CCDCount.DLL;
- using CCDCount.DLL.SqlDataClass;
- using CCDCount.MODEL.AuditTrailModel;
- using CCDCount.MODEL.ConfigModel;
- using LogClass;
- using MvCameraControl;
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Threading;
- 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.Interop;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using static System.Net.Mime.MediaTypeNames;
- namespace CCDCountWpf.WpfPage
- {
- /// <summary>
- /// MainPage.xaml 的交互逻辑
- /// </summary>
- public partial class MainPage : Page
- {
- #region 变量与实例
- #endregion
- public MainPage()
- {
- InitializeComponent();
- DataContext = ShowMessageBus.ShowBinding;
- InitFormationItems();
- }
- private void DataClear_Click(object sender, RoutedEventArgs e)
- {
- if(MessageBus.MainThreadS.Count<MessageBus.NowLoadCameraIndex+1)
- return;
- MessageBus.MainThreadS[MessageBus.NowLoadCameraIndex].ClearHistoryActive();
- }
- private void Page_Loaded(object sender, RoutedEventArgs e)
- {
- this.Width = double.NaN; // 等效于 Auto
- this.Height = double.NaN;
- StopIdentifyBtn.IsEnabled = false;
- StopIdentifyBtn.Opacity = 0.5;
- if(MessageBus.NowLoadCameraIndex>=0)
- {
- if (MessageBus.MainThreadS[MessageBus.NowLoadCameraIndex].CameraRunStatic)
- {
- StartIdentifyBtn.IsEnabled = false;
- StartIdentifyBtn.Opacity = 0.5;
- StopIdentifyBtn.IsEnabled = true;
- StopIdentifyBtn.Opacity = 1;
- }
- else
- {
- StartIdentifyBtn.IsEnabled = true;
- StartIdentifyBtn.Opacity = 1;
- StopIdentifyBtn.IsEnabled = false;
- StopIdentifyBtn.Opacity = 0.5;
- }
- }
- }
- private void MiniShowImageBox2_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- if(MessageBus.MainThreadS.Count < 2) return;
- MessageBus.NowLoadCameraIndex = 1;
- }
- private void MiniShowImageBox1_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- if (MessageBus.MainThreadS.Count < 1) return;
- MessageBus.NowLoadCameraIndex = 0;
- }
- private void MiniShowImageBox3_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- if (MessageBus.MainThreadS.Count < 3) return;
- MessageBus.NowLoadCameraIndex = 2;
- }
- private void MiniShowImageBox4_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
- {
- if (MessageBus.MainThreadS.Count < 4) return;
- MessageBus.NowLoadCameraIndex = 3;
- }
- /// <summary>
- /// 启动相机识别
- /// </summary>
- private void RunCameraIdentify()
- {
- for (int i = 0; i < MessageBus.MainThreadS.Count; i++)
- {
- MessageBus.MainThreadS[i].BatchNumber = ShowMessageBus.ShowBinding.BatchNumber;
- if (MessageBus.MainThreadS[i].CameraConfigIsChange)
- {
- MessageBus.MainThreadS[i].ReLoadCameraConfig();
- }
- //启动单相机实例的全部线程
- if (!MessageBus.MainThreadS[i].StartMianThread())
- {
- FaultLog.RecordErrorMessage(MessageBus.MainThreadS[i].cameraConfig.DeviceName + "_" + MessageBus.MainThreadS[i].cameraConfig.CameraSNNum + "启动失败", "CCDCountWpf:MainPage-RunCameraIdentify");
- //LOG.error(MessageBus.MainThreadS[i].cameraConfig.DeviceName + "_" + MessageBus.MainThreadS[i].cameraConfig.CameraSNNum + "启动失败");
- MessageBox.Show(MessageBus.MainThreadS[i].cameraConfig.DeviceName + "_" + MessageBus.MainThreadS[i].cameraConfig.CameraSNNum + "启动失败");
- continue;
- }
- }
- MessageBus.NowLoadCammeraSN = MessageBus.MainThreadS[0].cameraConfig.CameraSNNum;
- MessageBus.SeetingNowLoadInMaThreadsIndex = 0;
- MessageBus.NowLoadCameraIndex = 0;
- }
- /// <summary>
- /// 停止相机识别
- /// </summary>
- private void StopCameraIdentify()
- {
- for (int i = 0; i < MessageBus.MainThreadS.Count; i++)
- {
- //启动单相机实例的全部线程
- if (!MessageBus.MainThreadS[i].StopMianThread())
- {
- FaultLog.RecordErrorMessage(MessageBus.MainThreadS[i].cameraConfig.DeviceName + "_" + MessageBus.MainThreadS[i].cameraConfig.CameraSNNum + "关闭失败", "CCDCountWpf:MainPage-StopCameraIdentify");
- MessageBox.Show(MessageBus.MainThreadS[i].cameraConfig.DeviceName + "_" + MessageBus.MainThreadS[i].cameraConfig.CameraSNNum + "关闭失败");
- continue;
- }
- }
- }
- private bool RunBatchIsRun =false;
- /// <summary>
- /// 运行批次记录
- /// </summary>
- /// <param name="BatchNumber"></param>
- private void RunBatchRecord(string BatchNumber)
- {
- if (RunBatchIsRun)
- {
- return;
- }
- List<BatchRecordModel> batchRecordModels = new List<BatchRecordModel>();
- Stopwatch stopwatch = new Stopwatch();
- BatchMessSqliteDataClass batchMessSqliteData = new BatchMessSqliteDataClass($"{AppDomain.CurrentDomain.BaseDirectory}DATA\\BatchData\\BatchData_{BatchNumber}.db");
- RunBatchIsRun = true;
- Task.Run(() =>
- {
- while (RunBatchIsRun)
- {
- stopwatch.Restart();
- DateTime RecordTime = DateTime.Now;
- var OutTimeBatch = batchRecordModels.Where(x => x.RecordTime.AddMinutes(1) < RecordTime).ToList();
- OutTimeBatch.ForEach(x => batchRecordModels.Remove(x));
- PlcSettingMessageBus.pLCManagement.ReadBottingVibrationTableHighSpeedValue(out ushort BottingVibrationTableHighSpeedValue, out ushort FilterVibrationTableHighSpeedValue, out ushort CountVibrationTableHighSpeedValue);
- PlcSettingMessageBus.pLCManagement.ReadBottingCount(out ushort BottingCount);
- ushort CountSPeed = (ushort)(batchRecordModels.Count() > 0 ? (BottingCount - batchRecordModels.Min(o => o.BottingCount)) > 0 ? BottingCount - batchRecordModels.Min(o => o.BottingCount) : 0 : 0);
- ShowMessageBus.ShowBinding.BottingSpeed = CountSPeed;
- BatchRecordModel batchRecordModel = new BatchRecordModel
- {
- BatchNunber = BatchNumber,
- MaterialCylinderVibrationTableSpeed = BottingVibrationTableHighSpeedValue,
- FilterVibrationTableSpeed = FilterVibrationTableHighSpeedValue,
- CountVibrationTableSpeed = CountVibrationTableHighSpeedValue,
- BottingCount = BottingCount,
- BottingSpeed = CountSPeed,
- RecordTime = RecordTime
- };
- batchMessSqliteData.InsertBatchMessage(batchRecordModel);
- batchRecordModels.Add(batchRecordModel);
- stopwatch.Stop();
- int SleepTime = 998 - (int)stopwatch.ElapsedMilliseconds;
- if(SleepTime > 0)
- {
- Thread.Sleep(SleepTime);
- }
- }
- });
- }
- private void StopBatchRecord()
- {
- RunBatchIsRun = false;
- }
- private void StartIdentifyBtn_Click(object sender, RoutedEventArgs e)
- {
- if(String.IsNullOrWhiteSpace(ShowMessageBus.ShowBinding.BatchNumber))
- {
- MessageBox.Show("请输入批次号!");
- return;
- }
- RunBatchRecord(ShowMessageBus.ShowBinding.BatchNumber);
- RunCameraIdentify();
- StartIdentifyBtn.IsEnabled = false;
- StartIdentifyBtn.Opacity = 0.5;
- StopIdentifyBtn.IsEnabled = true;
- StopIdentifyBtn.Opacity = 1;
- if(PlcSettingMessageBus.pLCManagement.IsConnect)
- {
- PlcSettingMessageBus.pLCManagement.InitiateToTrue();
- }
- }
- private void StopIdentifyBtn_Click(object sender, RoutedEventArgs e)
- {
- StopCameraIdentify();
- StopBatchRecord();
- StartIdentifyBtn.IsEnabled = true;
- StartIdentifyBtn.Opacity = 1;
- StopIdentifyBtn.IsEnabled = false;
- StopIdentifyBtn.Opacity = 0.5;
- if (PlcSettingMessageBus.pLCManagement.IsConnect)
- {
- PlcSettingMessageBus.pLCManagement.StopToTrue();
- }
- }
- private void BottingMaterialCylinderVibrationTableHighSpeedValueUpUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue + 10) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue += 10;
- }
- }
- private void BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue + 1) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue += 1;
- }
- }
- private void BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue - 1) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue -= 1;
- }
- }
- private void BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue - 10) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue -= 10;
- }
- }
- private void BottingFilterVibrationTableHighSpeedValueUpUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue + 10) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue += 10;
- }
- }
- private void BottingFilterVibrationTableHighSpeedValueUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue + 1) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue += 1;
- }
- }
- private void BottingFilterVibrationTableHighSpeedValueDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue - 1) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue -= 1;
- }
- }
- private void BottingFilterVibrationTableHighSpeedValueDownDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue - 10) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue -= 10;
- }
- }
- private void BottingCountVibrationTableHighSpeedValueUpUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue + 10) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue += 10;
- }
- }
- private void BottingCountVibrationTableHighSpeedValueUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue + 1) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue += 1;
- }
- }
- private void BottingCountVibrationTableHighSpeedValueDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue - 1) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue -= 1;
- }
- }
- private void BottingCountVibrationTableHighSpeedValueDownDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue - 10) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue -= 10;
- }
- }
- private void BottValueSetUpUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet + 5) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet += 5;
- }
- }
- private void BottValueSetUpBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet + 1) >
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet += 1;
- }
- }
- private void BottValueSetDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet - 1) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet -= 1;
- }
- }
- private void BottValueSetDownDownBtn_Click(object sender, RoutedEventArgs e)
- {
- if ((ushort)(PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet - 5) <
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet)
- {
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet -= 5;
- }
- }
- private void TextBox_KeyDown(object sender,KeyEventArgs e)
- {
- if (e.Key == Key.Enter)
- {
- TextBox textBox = sender as TextBox;
- if (textBox != null)
- {
- // 强制更新源数据
- BindingExpression bindingExpression = textBox.GetBindingExpression(TextBox.TextProperty);
- bindingExpression.UpdateSource();
- }
- }
- }
- /// <summary>
- /// 初始化配方列表
- /// </summary>
- private void InitFormationItems()
- {
- string folderPath = $"{AppDomain.CurrentDomain.BaseDirectory}Formulations";
- if (!Directory.Exists(folderPath))
- {
- // 创建文件夹
- Directory.CreateDirectory(folderPath);
- }
- try
- {
- // 获取文件列表(包含子目录)
- string[] files = Directory.GetFiles(folderPath, "*.*", SearchOption.AllDirectories);
- ShowMessageBus.ShowBinding.FormulationItems.Clear();
- foreach (string file in files)
- {
- ShowMessageBus.ShowBinding.FormulationItems.Add(Path.GetFileNameWithoutExtension(file));
- }
- if (ShowMessageBus.ShowBinding.FormulationName != null && ShowMessageBus.ShowBinding.FormulationName != string.Empty)
- {
- try
- {
- FormulationCoBox.SelectedItem = ShowMessageBus.ShowBinding.FormulationName;
- }
- catch { }
- }
- }
- catch
- { }
- }
- private void SaveFormulationBtn_Click(object sender, RoutedEventArgs e)
- {
- if (string.IsNullOrEmpty(ShowMessageBus.ShowBinding.FormulationName))
- {
- MessageBox.Show("请输入配方名称!");
- return;
- }
- var ParaValue = PlcSettingMessageBus.pLCManagement.ReadAllPara();
- FormulationConfigClass formulationConfigClass = FormulationClass.InitFormulation(
- MessageBus.NowSettingLoadMainThread.cameraConfig, MessageBus.NowSettingLoadMainThread.shuLiConfig,ParaValue);
- if (formulationConfigClass == null)
- {
- MessageBox.Show("获取参数失败,请检查与PLC的连接");
- return;
- }
- formulationConfigClass.FormulationName = ShowMessageBus.ShowBinding.FormulationName;
- string folderPath = $"{AppDomain.CurrentDomain.BaseDirectory}Formulations";
- string FilePath = folderPath + "\\" + ShowMessageBus.ShowBinding.FormulationName + ".xml";
- if (File.Exists(FilePath))
- {
- var confirmResult = MessageBox.Show("配方已存在,是否覆盖?",
- "保存确认", MessageBoxButton.YesNo);
- if (confirmResult == MessageBoxResult.No)
- {
- return;
- }
- }
- if (!Directory.Exists(folderPath)) Directory.CreateDirectory(folderPath);
- {
- XmlStorage.SerializeToXml(formulationConfigClass, FilePath);
- InitFormationItems();
- MessageBus.NowSettingLoadMainThread.FormulationName = formulationConfigClass.FormulationName;
- MessageBus.NowSettingLoadMainThread.IsLoadFormulation = true;
- MessageBox.Show("保存成功");
- }
- }
- private void ReadFormulationBtn_Click(object sender, RoutedEventArgs e)
- {
- string folderPath = $"{AppDomain.CurrentDomain.BaseDirectory}Formulations\\{FormulationCoBox.SelectedItem}.xml";
- if (!File.Exists(folderPath))
- {
- MessageBox.Show("指定文件不存在,请选择一个正确的配方");
- return;
- }
- try
- {
- FormulationConfigClass formulationConfigClass = null;
- formulationConfigClass = XmlStorage.DeserializeFromXml<FormulationConfigClass>(folderPath);
- LoadFormulation(formulationConfigClass);
- MessageBus.NowSettingLoadMainThread.FormulationName = formulationConfigClass.FormulationName;
- MessageBus.NowSettingLoadMainThread.IsLoadFormulation = true;
- MessageBox.Show("加载成功");
- }
- catch (Exception ex)
- {
- MessageBox.Show($"读取文件时出错:{ex.Message}");
- }
- }
- /// <summary>
- /// 加载配方
- /// </summary>
- /// <param name="FormulationConfig"></param>
- private void LoadFormulation(FormulationConfigClass FormulationConfig)
- {
- ShowMessageBus.ShowBinding.AcquistionLineRate = FormulationConfig.AcquistionLineRateValue.ToString();
- ShowMessageBus.ShowBinding.ExposureTimeValue = FormulationConfig.ExposureTimeValue.ToString();
- ShowMessageBus.ShowBinding.Channel = FormulationConfig.Channel.ToString();
- ShowMessageBus.ShowBinding.FormulationName = FormulationConfig.FormulationName;
- ShowMessageBus.ShowBinding.MAX_OBJECT_LENGTH = FormulationConfig.MAX_Object_LENGTH.ToString();
- ShowMessageBus.ShowBinding.MIN_OBJECT_LENGTH = FormulationConfig.MIN_Object_LENGTH.ToString();
- ShowMessageBus.ShowBinding.PandingCode = FormulationConfig.PandingCode.ToString();
- ShowMessageBus.ShowBinding.RegionThreshold = FormulationConfig.RegionThreshold.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.SpeedModeRunningSpeed =
- FormulationConfig.SpeedModeRunningSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.JogSpeed =
- FormulationConfig.JogSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottValueSet =
- FormulationConfig.BottValueSet;
- PlcSettingMessageBus.PlcMessageShowBindage.TransferValveOpeningSpeed =
- FormulationConfig.TransferValveOpeningSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.TransferValveOpeningTime =
- FormulationConfig.TransferValveOpeningTime;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingDecelerationValue =
- FormulationConfig.BottingDecelerationValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheDecelerationValue =
- FormulationConfig.CacheDecelerationValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheCountDelayTiming =
- FormulationConfig.CacheCountDelayTiming;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheShutdownValue =
- FormulationConfig.CacheShutdownValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableHighSpeedValue =
- FormulationConfig.BottingMaterialCylinderVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableHighSpeedValue =
- FormulationConfig.BottingFilterVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableHighSpeedValue =
- FormulationConfig.BottingCountVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingMaterialCylinderVibrationTableDecelerationSpeedValue =
- FormulationConfig.BottingMaterialCylinderVibrationTableDecelerationSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingFilterVibrationTableDecelerationSpeedValue =
- FormulationConfig.BottingFilterVibrationTableDecelerationSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottingCountVibrationTableDecelerationSpeedValue =
- FormulationConfig.BottingCountVibrationTableDecelerationSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheMaterialCylinderVibrationTableHighSpeedValue =
- FormulationConfig.CacheMaterialCylinderVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheFilterVibrationTableHighSpeedValue =
- FormulationConfig.CacheFilterVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheCountVibrationTableHighSpeedValue =
- FormulationConfig.CacheCountVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheMaterialCylinderVibrationTableDecelerationSpeedValue =
- FormulationConfig.CacheMaterialCylinderVibrationTableDecelerationSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheMaterialCylinderVibrationTableHighSpeedValue =
- FormulationConfig.CacheMaterialCylinderVibrationTableHighSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.CacheCountVibrationTableDecelerationSpeedValue =
- FormulationConfig.CacheCountVibrationTableDecelerationSpeedValue;
- PlcSettingMessageBus.PlcMessageShowBindage.GateOpeningDelay =
- FormulationConfig.GateOpeningDelay;
- PlcSettingMessageBus.PlcMessageShowBindage.ReturnToZeroOffsetValue =
- FormulationConfig.ReturnToZeroOffsetValue.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.ReturnToZeroOffsetSpeed =
- FormulationConfig.ReturnToZeroOffsetSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.TransferValveClosingSpeed =
- FormulationConfig.TransferValveClosingSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.TransferValveOpenPosition =
- FormulationConfig.TransferValveOpenPosition.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.TransferValveClosePosition =
- FormulationConfig.TransferValveClosePosition.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.AirValveOpeningDelay =
- FormulationConfig.AirValveOpeningDelay;
- PlcSettingMessageBus.PlcMessageShowBindage.BottlingShutdownValue =
- FormulationConfig.BottlingShutdownValue;
- PlcSettingMessageBus.PlcMessageShowBindage.BottlingShutdownTime =
- FormulationConfig.BottlingShutdownTime;
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelRunningSpeed =
- FormulationConfig.BottleFeedingWheelRunningSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelJogRunningSpeed =
- FormulationConfig.BottleFeedingWheelJogRunningSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelReturnToZeroOffsetValue =
- FormulationConfig.BottleFeedingWheelReturnToZeroOffsetValue.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelReturnToZeroSpeed =
- FormulationConfig.BottleFeedingWheelReturnToZeroSpeed.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelPositionLength =
- FormulationConfig.BottleFeedingWheelPositionLength.ToString();
- PlcSettingMessageBus.PlcMessageShowBindage.BottleFeedingWheelPauseTime =
- FormulationConfig.BottleFeedingWheelPauseTime;
- PlcSettingMessageBus.PlcMessageShowBindage.DelayBlanking =
- FormulationConfig.DelayBlanking;
- }
- }
- }
|