提交整体修改
This commit is contained in:
@ -21,10 +21,7 @@ namespace DH.Commons.Base
|
||||
private string _ip = "192.168.6.61";
|
||||
private int _port = 502;
|
||||
private BindingList<PLCItem> _PLCItemList = new BindingList<PLCItem>();
|
||||
private BindingList<PLCItem> _PLCStartProcessList = new BindingList<PLCItem>();
|
||||
private BindingList<PLCItem> _PLCStopProcessList = new BindingList<PLCItem>();
|
||||
private BindingList<PLCItem> _PLCStartResetList = new BindingList<PLCItem>();
|
||||
private BindingList<PLCItem> _PLCStopResetList = new BindingList<PLCItem>();
|
||||
|
||||
[Category("设备配置")]
|
||||
[DisplayName("是否启用")]
|
||||
[Description("是否启用")]
|
||||
@ -194,46 +191,7 @@ namespace DH.Commons.Base
|
||||
}
|
||||
}
|
||||
|
||||
public BindingList<PLCItem> PLCStartProcessList
|
||||
{
|
||||
get => _PLCStartProcessList;
|
||||
set
|
||||
{
|
||||
if (_PLCStartProcessList == value) return;
|
||||
_PLCStartProcessList = value;
|
||||
OnPropertyChanged(nameof(PLCStartProcessList));
|
||||
}
|
||||
}
|
||||
public BindingList<PLCItem> PLCStopProcessList
|
||||
{
|
||||
get => _PLCStopProcessList;
|
||||
set
|
||||
{
|
||||
if (_PLCStopProcessList == value) return;
|
||||
_PLCStopProcessList = value;
|
||||
OnPropertyChanged(nameof(PLCStopProcessList));
|
||||
}
|
||||
}
|
||||
public BindingList<PLCItem> PLCStartResetList
|
||||
{
|
||||
get => _PLCStartResetList;
|
||||
set
|
||||
{
|
||||
if (_PLCStartResetList == value) return;
|
||||
_PLCStartResetList = value;
|
||||
OnPropertyChanged(nameof(PLCStartResetList));
|
||||
}
|
||||
}
|
||||
public BindingList<PLCItem> PLCStopResetList
|
||||
{
|
||||
get => _PLCStopResetList;
|
||||
set
|
||||
{
|
||||
if (_PLCStopResetList == value) return;
|
||||
_PLCStopResetList = value;
|
||||
OnPropertyChanged(nameof(PLCStopResetList));
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool PLCConnect()
|
||||
{
|
||||
Connected = true;
|
||||
@ -246,16 +204,23 @@ namespace DH.Commons.Base
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual Int16 ReadInt16(string address) { return 0; }
|
||||
|
||||
public virtual ushort ReadShort(string address) { return 0; }
|
||||
public virtual int ReadInt(string address) { return 0; }
|
||||
public virtual Int32 ReadInt32(string address) { return 0; }
|
||||
|
||||
public virtual UInt16 ReadUInt16(string address) { return 0; }
|
||||
|
||||
public virtual UInt32 ReadUInt32(string address) { return 0; }
|
||||
public virtual float ReadFloat(string address) { return 0; }
|
||||
public virtual bool ReadBool(string address) { return false; }
|
||||
public virtual bool WriteShort(string address, short value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteInt(string address, int value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteDInt(string address, int value, bool waitForReply = true) { return false; }
|
||||
|
||||
public virtual bool WriteDInt1(string address, int value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteInt16(string address, Int16 value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteInt32(string address, Int32 value, bool waitForReply = true) { return false; }
|
||||
|
||||
|
||||
public virtual bool WriteUInt16(string address, UInt16 value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteUInt32(string address, UInt32 value, bool waitForReply = true) { return false; }
|
||||
|
||||
public virtual bool WriteFloat(string address, float value, bool waitForReply = true) { return false; }
|
||||
public virtual bool WriteBool(string address, bool value, bool waitForReply = true) { return false; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user