PLCAnlogModel.cs 689 B

123456789101112131415161718192021222324
  1. namespace Shaker.Model
  2. {
  3. public class PLCAnlogModel : PLCValueModel
  4. {
  5. public PLCAnlogModel() => ValueType = PLCValueType.Int16;
  6. [MessagePack.Key(3)]
  7. public float K = 1;
  8. [MessagePack.Key(4)]
  9. public float B = 0;
  10. [MessagePack.Key(5)]
  11. public string Name = "";
  12. [MessagePack.Key(6)]
  13. public string Unit = "";
  14. [MessagePack.Key(10)]
  15. public short[] Value = new short[2];
  16. [MessagePack.Key(7)]
  17. public float MaxValue = float.MaxValue;
  18. [MessagePack.Key(8)]
  19. public float MinValue = float.MinValue;
  20. [MessagePack.Key(9)]
  21. public bool IsEnbled = true;
  22. }
  23. }