Several years ago, I questioned the correct way to continue a Trilogi "IF" line, and thought the correct way, was to start the new line with a boolean (AND, OR, etc.). I prefer keeping the lines to length so they print nicely. The statements below, don't execute inside the "IF" to "SETIO EXERCISE".
If the web page messed the line lengths, The first 2 ?? lines are really on the first line. The line starting AND (DM[3984], and the following line are the 2nd line. The remaining 4 lines are as shown, individual lines.
========================
IF ((DATE[3] > (7 * (DM[3975] - 1))) AND (DATE[3] < ((7 * DM[3975]) + 1)) AND (DATE[4] = DM[3976])
AND (DM[3984] = DM[3977]) AND (TIME[2] < 1) AND (TIME[3] <= 30))
'Turn the generator on
SETIO EXERCISE
TIMERPV[9] = 6000
ENDIF
========================
This is in a Cusfn with a 1.0 second special bit. I have numerous times checked the values being compared, pairing of "()", where everything is true, but the SETIO doesn't happen. Also have looked for something being reset elsewhere in the code.
Any thoughts, appreciated.