1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using Aitex.Core.RT.Device;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Common
- {
- public class SerialPortDevice : BaseDevice, IDevice
- {
- public string PortName { get; set; }
- public SerialPortDevice(string module, string name)
- {
- Module = module;
- Name = name;
- }
- public virtual bool Initialize()
- {
- return true;
- }
- public virtual bool Initialize(string portName)
- {
- return true;
- }
- public virtual void Monitor()
- {
- }
- public virtual void Terminate()
- {
- }
- public virtual void Reset()
- {
- }
- public virtual bool Home(out string reason)
- {
- reason = string.Empty;
- return true;
- }
- }
- }
|