12345678910111213141516171819202122232425262728293031323334 |
- using SCADA.Drive;
- using SCADA_DAQ.Plugin.Machine.Device;
- using System.ComponentModel;
- namespace SCADA_DAQ.Machines
- {
- /// <summary>
- /// 简单设备
- /// </summary>
- [DisplayName("简单设备")]
- public partial class SampleMachine : BasePLCMachine
- {
- /// <summary>
- ///
- /// </summary>
- /// <param name="machieID"></param>
- public SampleMachine(string machieID) : base(machieID)
- {
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected override void RegValueChanged(object sender, RegValueChangedEventArgs e)
- {
- base.RegValueChanged(sender, e);
- var reg = (RegInfo)sender;
- //log.Debug($"{reg.RegName} Value Changed:{reg.OldValue}->{reg.Value}");
- }
- }
- }
|