BeckhoffDOAccessor.cs 774 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MECF.Framework.Common.TwinCat
  7. {
  8. public class BeckhoffDOAccessor : BeckhoffIOAccessor<bool>
  9. {
  10. #region 内部变量
  11. private bool _bitOperated = false;
  12. private int _bit = 0;
  13. #endregion
  14. #region 属性
  15. public bool BitOperated { get { return _bitOperated; } }
  16. public int Bit { get { return _bit; } }
  17. #endregion
  18. public BeckhoffDOAccessor(string name, string address, string scaling,bool bitOperated,int bit) : base(name, address, scaling,"bool")
  19. {
  20. _bitOperated = bitOperated;
  21. _bit = bit;
  22. }
  23. }
  24. }