TCPSocketDevice.cs 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Aitex.Core.RT.Device;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Common
  8. {
  9. public class TCPSocketDevice : BaseDevice, IDevice
  10. {
  11. public TCPSocketDevice(string module, string name)
  12. {
  13. Module = module;
  14. Name = name;
  15. }
  16. public virtual bool Initialize()
  17. {
  18. return true;
  19. }
  20. public virtual bool Initialize(string portName)
  21. {
  22. return true;
  23. }
  24. public virtual void Monitor()
  25. {
  26. }
  27. public virtual void Terminate()
  28. {
  29. }
  30. public virtual void Reset()
  31. {
  32. }
  33. public virtual bool Home(out string reason)
  34. {
  35. reason = string.Empty;
  36. return true;
  37. }
  38. }
  39. }