Corrected from:
PLC Designer V3.24
Behavior of the new version:
With the help of refactoring, POU pins are renamed correctly. A procedure as described below will not result in a compilation error.
What happens?
The following error message appears when compiling the PLC project:
Identifier 'variable name' not defined
When does this behaviour occur?
If POU pins (e.g. the VAR_INPUT variable of a function block) are subsequently renamed by means of refactoring (menu command Edit > Refactoring > Rename 'Variable name'), the new names will not be considered when the FB is called if the variable has not been assigned when calling the FB (e.g.. fb1(xIn:= , xOut=> ) ). If the FB call is programmed in Structured Text, the above compilation error will occur.
Which products are affected?
PLC Designer from V3.15
Short-term measures:
When renaming a variable, the refactoring displays a dialog indicating all positions where the variable is renamed. Check whether all positions are indicated in the dialog and correct missing positions manually.
Evaluation/recommendations:
Due to the above function restriction, not all POU pins will be renamed when renaming variables by means of refactoring. This leads to a compilation error. The variables can be subsequently renamed manually.