Skip to main content

Compiler Error C0164

Message: POU <name> writes to output <name> and is called in several tasks.

Possible error cause: The device setting codegenerator\check-multiple-task-output-write is set and multiple tasks access the same output.

Error correction: Do not call a program that changes outputs in multiple tasks.

Example 406. Example of the error:
_cds_img_error_c0164.png
PROGRAM PLC_PRG
VAR
    Output AT %QB7 : BYTE
END_VAR

Output := 0;

Message:

C0164: POU PLC_PRG writes to output QB7 and is called in several tasks.