10/3/2014 8:45 AM | |
Joined: 9/3/2008 Last visit: 1/18/2025 Posts: 932 Rating: (163) |
Scott, As bosandzerossays, the warning is not about undefined variables; it is about the reading variable values that has not been written to yet. If you look at the statement you posted earlier: Alm := (Value > Setpoint) or (Alm and Value > Setpoint - DB); Here you are writing to "Alm". But in the expression you are first reading "Alm": (Alm and Value > Setpoint - DB) This is where the warning comes from. In my opinion, the lack of the same warning from earlier compilers is the error. |
Michael |
|
Follow us on