Skip to main content

Compiler Error C0050

Message: Bitaccess requires literal or symbolic integer constant

Possible error cause: No literal or an integer constant is specified in a bit access.

Error correction: Use a literal or an integer constant.

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

i.x := FALSE;

Message:

C0018: 'i.x' is no valid assignment target

C0050: Bitaccess requires literal or symbolic integer constant

Error correction:

i := Test(x);