protected TLAutoCustomBasePLCDeviceSerialPort(TLAutoDeviceSerialPort tlAutoDeviceSerialPort, bool hasControlRelayResultStatus, string logModuleName = null, int timeOutMs = 5000) : base(tlAutoDeviceSerialPort) { _hasControlRelayResultStatus = hasControlRelayResultStatus; _logModuleName = logModuleName; _timeOutMs = timeOutMs; }
public virtual async Task <bool> RaiseDigitalSwitchStatus(int deviceNumber, int itemCount, int switchNumber, SwitchStatus swtichStatus) { var sendCommand = new AutoUploadSwitchStatusCommand(deviceNumber, itemCount, switchNumber); var buffer = sendCommand.GetRaiseSwitchData(swtichStatus); TLAutoDeviceSerialPort.RaiseDataReceived(buffer); return(await Task.Factory.StartNew(() => true)); }
public TLAutoProjectorDevice ( TLAutoDeviceSerialPort tlAutoDeviceSerialPort, ProjectorDeviceType projectorDeviceType, string logModuleName = null, int timeOutMs = 5000) { _tlAutoDeviceSerialPort = tlAutoDeviceSerialPort; _logModuleName = logModuleName; _timeOutMs = timeOutMs; InitProjectorDevice(projectorDeviceType); }
public TLAutoPLCDevice ( TLAutoDeviceSerialPort tlAutoDeviceSerialPort, bool hasControlRelayResultStatus, PLCDeviceType plcDeviceType, string logModuleName = null, int timeOutMs = 5000) { _tlAutoDeviceSerialPort = tlAutoDeviceSerialPort; _hasControlRelayResultStatus = hasControlRelayResultStatus; _logModuleName = logModuleName; _timeOutMs = timeOutMs; InitPLCDevice(plcDeviceType); }
public TLAutoMS524ProjectorDeviceSerialPort(TLAutoDeviceSerialPort tlAutoDeviceSerialPort, string logModuleName = null, int timeOutMs = 5000) : base(tlAutoDeviceSerialPort) { _logModuleName = logModuleName; _timeOutMs = timeOutMs; }
public TLAutoCustom4PLCDeviceSerialPort(TLAutoDeviceSerialPort tlAutoDeviceSerialPort, string logModuleName = null, int timeOutMs = 5000) : base(tlAutoDeviceSerialPort) { _logModuleName = logModuleName; _timeOutMs = timeOutMs; }
public TLAutoCustom1PLCDeviceSerialPort(TLAutoDeviceSerialPort tlAutoDeviceSerialPort, bool hasControlRelayResultStatus, string logModuleName = null, int timeOutMs = 5000) : base(tlAutoDeviceSerialPort, hasControlRelayResultStatus) { _logModuleName = logModuleName; _timeOutMs = timeOutMs; }
public TLAutoDeviceSerialPortBase(TLAutoDeviceSerialPort tlAutoDeviceSerialPort) { TLAutoDeviceSerialPort = tlAutoDeviceSerialPort; }