void PL_SoftStSp::BuildDataDefn(DataDefnBlk & DDB) { DDB.Byte("Mode", "", DC_, "", &iMode, this, isParm, DDBPmpStartMode); DDB.Byte("FwdRevMode", "", DC_, "", &iFwdRev, this, isParm, DDBFwdRevMode ); switch (iMode) { case 0: DDB.CheckBoxBtn("Enable", "Run", DC_, "", &bOn, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Invert", "", DC_, "", &bStartInv,this, isParm, DDBOnOff); break; case 1: case 2: DDB.CheckBoxBtn("Permissive", "", DC_, "", &bOn, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Start", "", DC_, "", &bStart, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Stop", "", DC_, "", &bStop, this, isParm, DDBOnOff); DDB.CheckBoxBtn("StartInvert","", DC_, "", &bStartInv,this, isParm, DDBOnOff); DDB.CheckBoxBtn("StopInvert", "", DC_, "", &bStopInv, this, isParm, DDBOnOff); break; } if (iFwdRev==PLSS_FwdRevLogic) DDB.CheckBoxBtn("Reverse", "", DC_, "", &bRunRev, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Running", "", DC_, "", &bRunning, this, 0, DDBOnOff); DDB.CheckBoxBtn("Tripped", "", DC_, "", &bTripped, this, isParm, DDBOnOff); DDB.Double("StartTime", "StrtTime", DC_Time, "s", &dStartTime, this, isParm); DDB.Double("StopTime", "StopTime", DC_Time, "s", &dStopTime, this, isParm); DDB.Double("LocalY", "Manual", DC_Frac, "%", &m_dManualSpeed, this, isParm|NAN_OK); DDB.Double("Required", "Reqd", DC_Frac, "%", &m_dSpeedReqd, this, isParm); DDB.Double("Actual", "Actual", DC_Frac, "%", &m_dSpeed, this, isResult|0); DDB.Double("", "Regulated", DC_Frac, "%", &m_dSpeedReg, this, isResult); DDB.Double("MapLo", "", DC_Frac, "%", &dMapLo, this, isParm); DDB.Double("MapHi", "", DC_Frac, "%", &dMapHi, this, isParm); DDB.Double("MapSpeed", "", DC_Frac, "%", &m_dMapSpeed, this, isResult|0); DDB.Bool ("LoSpeed", "", DC_, "", &bLoSpeed, this, isResult); DDB.Bool ("HiSpeed", "", DC_, "", &bHiSpeed, this, isResult); DDB.Float ("LoSpeedLimit", "", DC_Frac, "%", &dLoSpeedLimit,this, isParm|InitHidden); DDB.Float ("HiSpeedLimit", "", DC_Frac, "%", &dHiSpeedLimit,this, isParm|InitHidden); DDB.CheckBoxBtn("AutoReStart", "", DC_, "", &m_bAutoRestart, this, isParm, DDBOnOff); DDB.Byte("FailMode", "", DC_, "", &iFailMode, this, isParm, DDBPmpFailMode); DDB.CheckBoxBtn("RunMemory", "", DC_, "", &bRunMemory, this, InitHidden, DDBOnOff); //if (m_pPwr) // m_pPwr->BuildDataDefn(DDB); };
void PL_FwdRev::BuildDataDefn(DataDefnBlk & DDB) { DDB.Byte("Mode", "", DC_, "", &iMode, this, isParm, DDBPmpStartMode); switch (iMode) { case 0: DDB.CheckBoxBtn("Enable", "Run", DC_, "", &bOn, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Invert", "", DC_, "", &bStartInv,this, isParm, DDBOnOff); break; case 1: case 2: DDB.CheckBoxBtn("Permissive", "", DC_, "", &bOn, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Start", "", DC_, "", &bStart, this, isParm, DDBOnOff); DDB.CheckBoxBtn("Stop", "", DC_, "", &bStop, this, isParm, DDBOnOff); DDB.CheckBoxBtn("StartInvert","", DC_, "", &bStartInv,this, isParm, DDBOnOff); DDB.CheckBoxBtn("StopInvert", "", DC_, "", &bStopInv, this, isParm, DDBOnOff); break; } DDB.CheckBoxBtn("Running", "", DC_, "", &bRunning, this, 0, DDBOnOff); DDB.CheckBoxBtn("Tripped", "", DC_, "", &bTripped, this, isParm, DDBOnOff); //DDB.Add_OnOff("State", &bOn, False, this); //DDB.Add_YesNo("Forward", &bFwd, False, this); DDB.CheckBoxBtn("Forward", "", DC_, "", &bFwd, this, isParm, DDBYesNo); DDB.Double("LocalY", "Manual", DC_Frac, "%", &m_dManualSpeed, this, isParm|NAN_OK); DDB.Double("Speed", "Reqd", DC_Frac, "%", &m_dSpeedReqd, this, isParm); DDB.Double("", "Actual", DC_Frac, "%", &m_dSpeed, this, 0); DDB.Double("", "Regulated", DC_Frac, "%", &m_dSpeedReg, this, isResult); DDB.Bool ("LoSpeed", "", DC_, "", &bLoSpeed, this, isResult); DDB.Bool ("HiSpeed", "", DC_, "", &bHiSpeed, this, isResult); DDB.Float ("LoSpeedLimit", "", DC_Frac, "%", &dLoSpeedLimit,this, isParm|InitHidden); DDB.Float ("HiSpeedLimit", "", DC_Frac, "%", &dHiSpeedLimit,this, isParm|InitHidden); DDB.CheckBoxBtn("AutoReStart", "", DC_, "", &m_bAutoRestart, this, isParm, DDBOnOff); DDB.Byte("FailMode", "", DC_, "", &iFailMode, this, isParm, DDBPmpFailMode); DDB.CheckBoxBtn("RunMemory", "", DC_, "", &bRunMemory, this, InitHidden, DDBOnOff); //if (m_pPwr) // m_pPwr->BuildDataDefn(DDB); }