Friday at 02:38 PM1 day I have this program that I am trying to use to set an integer variable to the current day of the month. When I run the THEN clause the INIT value is correct but the variable iCurrentDayOfMonth is set to zero. This doesn't make sense. I expect them both to be the same. I have a couple of other similar programs using different variables and they work fine. What is going on? TIADATTM SetCurDayOfMonth - [ID 0047][Parent 0028]If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then $iCurrentDayOfMonth = [Current Day of Month] $iCurrentDayOfMonth Init To $iCurrentDayOfMonth Else - No Actions - (To add one, press 'Action') Whereas these programs work fine. Both the variables and its INIT values are correct all the time:DATTM SetCurHH - [ID 006D][Parent 0028]If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat 23 times $iCurrentHH = [Current Hour] $iCurrentHH Init To $iCurrentHH Run Program 'DATTM SetCurMM' (Then Path) Wait 1 hour Else - No Actions - (To add one, press 'Action') DATTM SetCurMM - [ID 006E][Parent 0028]If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat 59 times $iCurrentMM = [Current Minute] $iCurrentMM Init To $iCurrentMM Wait 1 minute Else - No Actions - (To add one, press 'Action') EISY running version 6.0.0.
Friday at 02:54 PM1 day Author OK, how do I paste code into a forum post and keep the indenting? For some reason it appears to be all shoved to the left and indenting is lost. If I post the same clipboard into Notepad the code appears indented.Thanks for any tip you can provide.
Friday at 03:17 PM1 day Go to the program in iox. Right click on the program's name on the left. At the bottom of the drop down is Copy, Use that
Yesterday at 01:49 AM1 day Right click on the program name and select copy to clipboard.Are you aware there is a plugin for using dates in programs?
20 hours ago20 hr On 4/10/2026 at 10:38 AM, IndyUDIuser said:I have this program that I am trying to use to set an integer variable to the current day of the month. When I run the THEN clause the INIT value is correct but the variable iCurrentDayOfMonth is set to zero. This doesn't make sense. I expect them both to be the same. I have a couple of other similar programs using different variables and they work fine. What is going on? TIADATTM SetCurDayOfMonth - [ID 0047][Parent 0028]If- No Conditions - (To add one, press 'Schedule' or 'Condition')Then$iCurrentDayOfMonth = [Current Day of Month]$iCurrentDayOfMonth Init To $iCurrentDayOfMonthElse- No Actions - (To add one, press 'Action')I just tried this on my ISY994 and it works as expected (I have not used the "Init to" previously).Since you have other programs working properly, I'm going to guess that your program didn't save properly for some reason. When this has happened in the past I've found it easiest to simply delete the program and start over. Do NOT copy the program. The visual representation will look correct, but the XML may be incorrect.
16 hours ago16 hr On 4/10/2026 at 10:54 AM, IndyUDIuser said:OK, how do I paste code into a forum post and keep the indenting?What are you trying to paste that keeps the indents? You posted a program. That's just fine and readable by many/most here.But for the specific to keep the indenting you would want to click the "+" icon in the format portion of the post block.Click the down arrow next to that and you'll have an option for "editor_tool--codebox". (I really don't like how the forum developer has so messed up some of the options. It's beyond our control as they're a separate company, but it's not quite as intuitive as it once was - IMO)That should get what you might be looking for, but don't sweat it...what you posted originally works perfectly. On 4/10/2026 at 10:38 AM, IndyUDIuser said:EISY running version 6.0.0FYI the current version is 6.0.5. While I'm not sure if you're having problems or not it's advisable to update to fix any little bugs that might be lingering in the older system firmware. You can find info about this version in the "Current Release" portion of the forums. It also indicates best method to update.
Create an account or sign in to comment