Skip to main content

Compiler Error C0115

Message: The second parameter of a conditional call (????ALWAYS CALC???? ) has to be a valid call statement.

Error correction: Specify the call of a function, method, or function block in the second parameter of the conditional ????CALC??? call.

Example 382. Example of the error:
PROGRAM PLC_PRG
VAR
    condition : BOOL;
END_VAR
CALC(condition, 1+2);

Message:

C0115: The second parameter of a conditional call has to be a valid call statement.

Error correction:

CALC(condition, MyFunction(1,2))