Thanks .. that fixed it ... GIGO once again :)

Regards

On Sun, 1 Aug 2021 at 01:55, Fless <forge@codesys.com> wrote:

take a look in your Program Modbus

IF  GVL.AC_Running := TRUE THEN
    AC_PWR_Use := GVL.AC_Watts;
END_IF

you wanted to check GVL.AC_Running = TRUE but you set it to true.

to avoid such mistakes simply use statements like

IF xRunning THEN
    ...;
END_IF

IF NOT xRunning THEN
    ...;
END_IF

Error result in simple ST 'IF Else' result


Sent from forge.codesys.com because you indicated interest in https://forge.codesys.com/forge/talk/CODESYS-V2/

To unsubscribe from further messages, please visit https://forge.codesys.com/auth/subscriptions/