using Newtonsoft.Json; using Opc.Ua; using OpcBasic; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Threading; namespace MesWork { public partial class Temp { } public partial class MesWorkForm { /// /// 01 /// /// /// /// public static void S_C_B_TagIDTrigger(string opName, string tagID, string tagValue) { SendMsg(MesServer_SendProtocol_Tag + "{\"DeviceCode\":\"" + opName + "\",\"TagID\":\"" + tagID + "\",\"TagValue\":\"" + tagValue + "\"}"); } /// /// 02 /// /// /// public static string Move_Joint(List joints) { var sendStr = MesServer_SendProtocol_Joint + JsonConvert.SerializeObject(joints); return sendStr; } /// /// 11 /// /// public static void S_C_B_Info_Fast(List tagValue) { SendMsg(MesServer_SendProtocol_Info_Fast + JsonConvert.SerializeObject(tagValue)); } /// /// 12 /// /// public static void S_C_B_Info_Slow(Param_Slow tagValue) { SendMsg(MesServer_SendProtocol_Info_Slow + JsonConvert.SerializeObject(tagValue)); } public static string Make_DeviceInfo(List di) { var sendStr = MesServer_SendProtocol_DeviceInfo + JsonConvert.SerializeObject(di); return sendStr; } } }