[RT.EquipmentLibrary]
1底层库重连周期从10改为100毫秒 2PLC扫面周期从50改为200毫秒
This commit is contained in:
parent
41202afbaa
commit
168f3f4402
|
@ -280,7 +280,7 @@ namespace MECF.Framework.Common.Communications
|
|||
_lastError = reason;
|
||||
return false;
|
||||
}
|
||||
Thread.Sleep(10);
|
||||
Thread.Sleep(100);
|
||||
if (_connectable.CheckIsConnected())
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace MECF.Framework.RT.Core.IoProviders
|
|||
buffer.SetIoMap(_source, ioMappingPathFile);
|
||||
SetParameter(nodeParameter);
|
||||
State = IoProviderStateEnum.Uninitialized;
|
||||
_thread = new PeriodicJob(50, OnTimer, name);
|
||||
_thread = new PeriodicJob(200, OnTimer, name);
|
||||
}
|
||||
|
||||
public virtual void Initialize(string module, string name, List<IoBlockItem> lstBuffers, IIoBuffer buffer, XmlElement nodeParameter, string ioMappingPathFile, string ioModule)
|
||||
|
@ -89,7 +89,7 @@ namespace MECF.Framework.RT.Core.IoProviders
|
|||
buffer.SetIoMapByModule(_source, 0, ioMappingPathFile, ioModule);
|
||||
SetParameter(nodeParameter);
|
||||
State = IoProviderStateEnum.Uninitialized;
|
||||
_thread = new PeriodicJob(50, OnTimer, name);
|
||||
_thread = new PeriodicJob(200, OnTimer, name);
|
||||
}
|
||||
|
||||
protected void SetState(IoProviderStateEnum newState)
|
||||
|
|
Loading…
Reference in New Issue