SampleMachine.cs 888 B

12345678910111213141516171819202122232425262728293031323334
  1. using SCADA.Drive;
  2. using SCADA_DAQ.Plugin.Machine.Device;
  3. using System.ComponentModel;
  4. namespace SCADA_DAQ.Machines
  5. {
  6. /// <summary>
  7. /// 简单设备
  8. /// </summary>
  9. [DisplayName("简单设备")]
  10. public partial class SampleMachine : BasePLCMachine
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. /// <param name="machieID"></param>
  16. public SampleMachine(string machieID) : base(machieID)
  17. {
  18. }
  19. /// <summary>
  20. ///
  21. /// </summary>
  22. /// <param name="sender"></param>
  23. /// <param name="e"></param>
  24. protected override void RegValueChanged(object sender, RegValueChangedEventArgs e)
  25. {
  26. base.RegValueChanged(sender, e);
  27. var reg = (RegInfo)sender;
  28. //log.Debug($"{reg.RegName} Value Changed:{reg.OldValue}->{reg.Value}");
  29. }
  30. }
  31. }