Commit 335b82d9 authored by 潘栩锋's avatar 潘栩锋 🚴

1. 添加 FLYAD7 每秒GetIO, 因为 输出口是没有推送的,当为变频器时,无法看到输出口的变化。

parent 8db7013a
...@@ -125,6 +125,20 @@ namespace FlyADBase ...@@ -125,6 +125,20 @@ namespace FlyADBase
} }
}, TimeSpan.FromSeconds(1)); }, TimeSpan.FromSeconds(1));
//每隔1秒发送一次 GetIO
PollModule.Current.Poll_Config(PollModule.POLL_CONFIG.ADD, () =>
{
if (!IsConnected)
return;
//FLYIO
CurrObjSys.GetValueEx(
conn,
FLYAD7_OBJ_INTERFACE.FLYIO_OBJ_INTERFACE.ID,
ID,
FLYAD7_OBJ_INTERFACE.FLYIO_OBJ_INTERFACE.GET_IO);
}, TimeSpan.FromSeconds(1));
constructor2(); constructor2();
} }
...@@ -365,6 +379,8 @@ namespace FlyADBase ...@@ -365,6 +379,8 @@ namespace FlyADBase
ID, ID,
FLYAD7_OBJ_INTERFACE.FLYIO_OBJ_INTERFACE.GET_IO); FLYAD7_OBJ_INTERFACE.FLYIO_OBJ_INTERFACE.GET_IO);
NotifyPropertyChanged(nameof(Pos1LCShift));//写入到AD盒 NotifyPropertyChanged(nameof(Pos1LCShift));//写入到AD盒
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment