Exemple #1
0
 /// <summary>
 /// 钩号变化后触发
 /// </summary>
 /// <param name="tag"></param>
 private void PFTagChangedExecute(Tag tag)
 {
     ClientProxy.TagEventChange(new TagSimple {
         TagName = tag.TagName, TagValue = tag.Value.ToString(), TagType = tag.DataType
     });
     Console.WriteLine(string.Format("TagName={0}, Value={1}, DataType={2}", tag.TagName, tag.Value, tag.DataTypeName));
     Log4Ex.LogHelper.Debug(string.Format("TagName={0}, Value={1}, DataType={2}", tag.TagName, tag.Value, tag.DataTypeName));
 }
Exemple #2
0
 /// <summary>
 /// tag点发生变化后触发
 /// </summary>
 /// <param name="tag"></param>
 public override void TagChangedExecute(Tag tag)
 {
     ClientProxy.TagEventChange(new TagSimple {
         TagName = tag.TagName, TagValue = tag.Value.ToString(), TagType = tag.DataType
     });
 }