增加UI配置项

This commit is contained in:
2025-10-16 17:40:00 +08:00
parent eeb5af98eb
commit f88b815723
181 changed files with 718 additions and 465 deletions

View File

@@ -36,7 +36,7 @@ void P11_IsolationPage::SetStyleStr(QLabel *L,bool Status,QString TStr,QString F
L->setStyleSheet(Style);
}
void P11_IsolationPage::Refresh(const QString Dev,const uint8_t DevIndex,const uint32_t Status,const uint8_t Q_Index,const uint8_t I_Index,const uint8_t G_Index){
uint32_t TmpValue = gOPC_NodeValue["ns=6;s=::AsGlobalPV:HMI_LC_"+Dev] .toUInt();
uint32_t TmpValue = getNodeValue("HMI_LC_"+Dev) .toUInt();
uint16_t ET = static_cast<uint16_t>(TmpValue >> 16); // 漏电检测消耗的时间高16位
uint16_t WaitET = static_cast<uint16_t>(TmpValue & 0xFFFF);// 漏电检测等待的时间低16位
@@ -63,7 +63,7 @@ void P11_IsolationPage::UIRefreshTimeOut()
{
if(gPageIndexStr != "P11")
return;
uint32_t Status = gOPC_NodeValue["ns=6;s=::AsGlobalPV:HMI_LC_Status"] .toUInt();
uint32_t Status = getNodeValue("HMI_LC_Status") .toUInt();
qDebug()<<Status;
/************************************* 电机基本信息 *************************************/
Refresh("Cut" ,1,Status,0,8 ,16);