FwWienerMarathonChannelTrd_initialize(string domain, string device) { } FwWienerMarathonChannelTrd_valueChanged( string domain, string device, bool Status_dot_On, bool Status_dot_RampDown, bool Status_dot_RampUp, bool LV_dot_oracleDB_dot_Downloading, int LV_dot_oracleDB_dot_State, bool Status_dot_FailureMinSenseVoltage, string &fwState ) { if ( (Status_dot_On == 0) && (Status_dot_RampDown == 0) && (Status_dot_RampUp == 0) && (LV_dot_oracleDB_dot_Downloading == 0) && (LV_dot_oracleDB_dot_State != 1) ) { fwState = "OFF"; } else if ( (LV_dot_oracleDB_dot_Downloading == 1) && (Status_dot_On == 0) ) { fwState = "DOWNLOADING"; } else if ( (Status_dot_On == 0) && (Status_dot_RampDown == 0) && (Status_dot_RampUp == 0) && (LV_dot_oracleDB_dot_Downloading == 0) && (LV_dot_oracleDB_dot_State == 1) ) { fwState = "STBY_CONFIGURED"; } else if (Status_dot_RampUp == 1) { fwState = "RAMPING_UP"; } else if (Status_dot_RampDown == 1) { fwState = "RAMPING_DOWN"; } else if ( (Status_dot_On == 1) && (Status_dot_RampDown == 0) && (Status_dot_RampUp == 0) && (LV_dot_oracleDB_dot_Downloading == 0) && (LV_dot_oracleDB_dot_State = 1) ) { fwState = "ON"; } else if (Status_dot_FailureMinSenseVoltage == 1) { fwState = "ERROR"; } else { fwState = "NO_CONTROL"; } } FwWienerMarathonChannelTrd_doCommand(string domain, string device, string command) { if (command == "CONFIGURE") { dpSet("LV.oracleDB.Action",1); } if (command == "GO_OFF") { dpSet(device+".Settings.OnOffChannel",0); dpSet("LV.oracleDB.State",4); } if (command == "GO_ON") { dpSet(device+".Settings.OnOffChannel",1); } if (command == "GO_STBY_CONF") { dpSet(device+".Settings.OnOffChannel",0); } if (command == "RECOVER") { dpSet(device+".Settings.OnOffChannel",0); } }