[RT.EquipmentLibrary]

1底层库重连周期从10改为100毫秒
2PLC扫面周期从50改为200毫秒
This commit is contained in:
hanqiangqiang 2023-09-14 17:19:08 +08:00
parent 41202afbaa
commit 168f3f4402
2 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ namespace MECF.Framework.Common.Communications
_lastError = reason;
return false;
}
Thread.Sleep(10);
Thread.Sleep(100);
if (_connectable.CheckIsConnected())
{
return true;

View File

@ -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)