Safety Semantic Error: Invalid overwriting of input variable '...'.
Write access to a variable that is assigned to an input process data item (input terminal/signal). Inputs can only be read.
Remedy:
There are two possibilities to fix this error:- Use a local or output variable instead in the code.
- Double-click the error in the Error List to jump to the suspected code position (where the variable is marked).
- Replace the variable by a variable which is either a local marker variable (not assigned to any device terminal) or which is connected to an output process datum.
- Or remove the assignment of the variable to the input process datum.
- Double-click the error in the Error List to jump to the suspected code position (where the variable is marked).
- Right-click the suspected variable and select 'Go to Definition'.
The Data List of the Safety PLC opens and the declaration line of the variable is marked. - Remove the assignment from the input process data item by right-clicking the declaration line and selecting 'Disconnect Process Datum' from the context menu:
The variable is now a global marker variable. This is indicated by the entry 'M' in the 'I/Q/M' column.
- If required, assign a process output datum to the variable.
Note
In Data Lists, Port Lists and variables tables, the selection in drop-down lists is done with a single-click, not with a double-click.- In the table, left-click into the field where you want to assign a data item and which is showing the text 'Select ... here' or move the table cursor using the arrow keys or <Tab>/<Shift>+<Tab> to this table field and press <Enter>.The Role Picker appears. It is divided into a tree on the left and data items on the right. The Role Picker only provides data items for selection which match the data type for the assignment to be done.
- Select a folder in the tree on the left and then the data item on the right by clicking it or pressing the <Enter> key.
Note
The Role Picker retains your last selection as long as the editor has not been closed.