Skip to main content

Compiler Error C0023

Message: '<operator>' needs at least '<number of operands>' operands

Possible error cause: Too few operands are assigned to an operator.

Error correction: Assign the required number of operands to the operator.

Example 327. Example of the error:
PROGRAM PLC_PRG
VAR
    i : INT;
END_VAR

i := MUX(30,40);

Message:

C0023: 'MUX' needs at least '3' operands

Error correction:

i := MUX(30,40,50);