/// <summary> /// 同步OPC点位信息 /// </summary> /// <param name="output"></param> /// <returns></returns> public void SyncOPCTags(Action <string, eOutputType> output) { List <string> lists = new List <string>(); for (int i = 0; i < tags.Length; i++) { lists.Add("合样归批机.#1合样归批机." + tags[i]); } for (int i = 0; i < tags_other.Length; i++) { lists.Add("合样归批机.#1合样归批机." + tags_other[i]); } for (int i = 0; i < tags_xcd.Length; i++) { lists.Add("合样归批机.卸车端." + tags_xcd[i]); } for (int i = 0; i < tags_zcd.Length; i++) { lists.Add("合样归批机.装车端." + tags_zcd[i]); } for (int i = 0; i < tags_cld.Length; i++) { lists.Add("合样归批机.小车端." + tags_cld[i]); } opcServere = new OPCClientDAO(lists, "Kepware.KEPServerEX.V6", "127.0.0.1"); opcServere.InitOPC(output); }
/// <summary> /// 同步OPC点位信息 /// </summary> /// <param name="output"></param> /// <returns></returns> public void SyncOPCTags(Action <string, eOutputType> output) { List <string> lists = new List <string>(); lists.Add("送样小车.装车端." + tags[0]); lists.Add("送样小车.卸车端." + tags[1]); opcServere = new OPCClientDAO(lists, "Kepware.KEPServerEX.V6", "127.0.0.1"); opcServere.InitOPC(output); }
/// <summary> /// 同步OPC点位信息 /// </summary> /// <param name="output"></param> /// <returns></returns> public void SyncOPCTags(Action <string, eOutputType> output) { List <string> lists = new List <string>(); for (int i = 0; i < tags.Length; i++) { lists.Add("全自动存样柜.#1全自动存样柜." + tags[i]); } opcServere = new OPCClientDAO(lists, "Kepware.KEPServerEX.V6", "127.0.0.1"); opcServere.InitOPC(output); }
/// <summary> /// 同步OPC点位信息 /// </summary> /// <param name="output"></param> /// <returns></returns> public void SyncOPCTags(Action <string, eOutputType> output) { List <string> lists = new List <string>(); //lists.Add("汽车机械采样机.#1采样机._System._AutoDemoted"); //lists.Add("汽车机械采样机.#1采样机._System._ConnectTimeout"); //lists.Add("汽车机械采样机.#1采样机._System._DemanPoll"); for (int i = 0; i < tags.Length; i++) { lists.Add("汽车机械采样机.#1采样机." + tags[i]); } for (int i = 0; i < tags.Length; i++) { lists.Add("汽车机械采样机.#2采样机." + tags[i]); } opcServere = new OPCClientDAO(lists, "Kepware.KEPServerEX.V6", "127.0.0.1"); opcServere.InitOPC(output); }
/// <summary> /// 同步OPC点位信息 /// </summary> /// <param name="output"></param> /// <returns></returns> public void SyncOPCTags(Action <string, eOutputType> output) { List <string> lists = new List <string>(); for (int i = 0; i < tags.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags[i]); } for (int i = 0; i < tags_weight.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_weight[i]); } for (int i = 0; i < tags_code.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_code[i]); } for (int i = 0; i < tags_flow.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_flow[i]); } for (int i = 0; i < tags_other.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_other[i]); } for (int i = 0; i < tags_dj.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_dj[i]); } for (int i = 0; i < tags_al.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_al[i]); } for (int i = 0; i < tags_dottedline.Length; i++) { lists.Add("全自动制样机.#1全自动制样机." + tags_dottedline[i]); } opcServere = new OPCClientDAO(lists, "Kepware.KEPServerEX.V6", "127.0.0.1"); opcServere.InitOPC(output); }