As Val Kilmer said in 'Tombstone' : 'Well, that was certainly a bust'I failed to notice that the script contained a 'Loop Until' commandwhich, once started, continued in spite of the 'run between' decision being 'false'; at sunset, the 'daytime power trim' continued to attempt to raise power back to day valuethe solution was to eliminate the 'loop until' and issue a SINGLE 'raise or 'lower' command in this scriptthen schedule it to run every 2 minutesthis results in a longer time to correct power fluctuations, but a side benefit as outlined below:at power change (example day to night)it takes considerable time (90-120 seconds) for the 'power output' sample from the Gates Five to settle to its new valuethis caused the script to adjust down-down-down-down resulting in overshoot to about 900 watts before it would then go into 'raise-raise-raise' mode, then yo-yo back and forth before hitting a happy mediumthe longer time it takes is actually a benefit in this regard, new version below++++++++++++++++++'Connect to the ARC; if it can not connect, abort the scriptIf Not IsConnected(WIZ_ARC) Then If Connect(WIZ_ARC) <> "Connected" Then Message "Unable to connect to " & WIZ_ARC & ". Aborting script." EndScript End If WIZ_CONN = TrueEnd If If Time() >= Sunrise("KHMO") and Time() < Sunset("KHMO") Then WIZ_UPLIMIT = 5550 WIZ_LOLIMIT = 5200Else WIZ_UPLIMIT = 1130 WIZ_LOLIMIT = 1040End If If NewValue(WIZ_ARC, WIZ_ANLG_MONPWR) > WIZ_UPLIMIT Then 'Decrease power IssueCommand WIZ_ARC, WIZ_CNTRL_LPWR, WIZ_CNTRL_LPWR_USERAISE Wait 2000 ElseIf Value(WIZ_ARC, WIZ_ANLG_MONPWR) < WIZ_LOLIMIT Then 'Increase power IssueCommand WIZ_ARC, WIZ_CNTRL_RPWR, WIZ_CNTRL_RPWR_USERAISE Wait 2000 End If If WIZ_CONN = True Then Disconnect WIZ_ARC