Symbol:
Function: This command removes an input or output variable from the POU and all occurrences of the POU.
Call: Main menu “Edit Refactoring”, or right-click.
Requirements: In the declaration part of the POU, the cursor is located in the identifier of the variable to be removed.
Then, the command opens a dialog box with information about the removal. After you confirm this, the “Refactoring” dialog box opens. For a description of the “Refactoring” dialog box, refer to the “Edit Refactoring Rename” help page.
When you accept the changes in the “Refactoring” dialog box, the respective input and output parameters are deleted at the occurrence locations of the affected POU.
In CFC, only the connection is removed between the removed input or output to the block. The input or output itself remains in the chart.
Example in ST
In a POU, refactoring removes the input4
input variable. The occurrences are updated automatically:
Before removal:
inst(input1 := a + b, input2 := 3, input4 := 1, input5 := TRUE); fun(a + b, 3, 1, TRUE);
After removal:
inst(input1 := a + b, input2 := 3, input5 := TRUE); fun(a + b, 3, TRUE);
See also