Files
42-CATL-DianChiXian-SCADA_CATL/DT_SCADA/BusinessCode/Loop_Fast.cs
2026-06-08 17:12:01 +08:00

66 lines
1.7 KiB
C#

//using OpcBasic;
//using Robot.Common;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading;
//using System.Threading.Tasks;
//namespace MesWork
//{
// public partial class Temp { }
// public partial class MesWorkForm
// {
// private void Loop_Fast_Task()
// {
// new Thread(new ThreadStart(Loop_Fast_Exec)) { IsBackground = true }.Start();
// }
// private void Loop_Fast_Exec()
// {
// while (true)
// {
// try
// {
// var tagValue = Read_Fast();
// S_C_B_Info_Slow(tagValue);
// }
// catch (Exception err)
// {
// }
// Thread.Sleep(2000);
// }
// }
// private Param_Slow Read_Fast()
// {
// var param_Slow = new Param_Slow();
// param_Slow.produce_task_no = ReadPLC(10, "OP1000").ToString();
// param_Slow.agv_from_loc = agvRead.from_loc;
// param_Slow.agv_to_loc = agvRead.to_loc;
// var lib = new List<Param_Lib>();
// var jointArray = MesWorkForm.ReadPLC_GroupData("OP1000_L");
// foreach (KeyValuePair<string, object> item in jointArray)
// {
// var TF = (TagFormat)item.Value;
// var index = Convert.ToInt32(TF.ShaftID).ToString();
// var value = TF.TagValue.ToString();
// lib.Add(new Param_Lib { lib_loc_no = index, lib_content = value });
// }
// return param_Slow;
// }
// }
//}