Command: Refactoring – Remove <variable>
Symbol:
Function: The command removes an input or output variable from the POU and all occurrence locations of the POU.
Call: menu; context menu
Requirement: In the declaration part of the POU, the cursor is positioned in the identifier of the variable to be removed.
First the command opens a dialog with information about the desired remove. After you confirm this, the Refactoring dialog opens. For a description of the Refactoring dialog, see the help page for the command.
When you accept the changes in the Refactoring dialog, the respective input and output parameters are deleted at the occurrence locations of the relevant POU.
Tip
In CFC, only the connection is removed between the remote input or output to the block. The input or output itself is retained in the chart.
In a POU, you remove the input4
input variable by means of "refactoring".
The occurrence locations 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);
For more information, see: Refactoring