-

Semantic Error: Assignments to read-only variables are not valid.

A write access to a read-only variable was detected.

Two possible reasons:

Read-only variables cannot be written.

Further Info
Please refer to the user manual of the controller for further information on system variables.