Corrected from:
PLC Designer V3.22
Response of the new version:
If a variable is declared at the input of a function block using the input help, the data type of the block input is automatically specified in the input help for the variable and transferred to the declaration editor. Thus, a compilation error no longer occurs.
When translating the PLC project the error message is displayed in the message window:
C0032: Cannot convert type 'xxx' to type 'yyy'
When does this behaviour occur?
A variable is declared at the input of a function block. The input help is used to create the corresponding declaration. In the dialog of the input help an incorrect variable name and an incorrect data type is displayed. If the dialog is confirmed unchanged, these wrong values are also taken over into the declaration and the above error message is displayed when translating the project.
The behavior depends on the order in which the variables are declared at the inputs of the function block.
If the order is changed, especially if the first input of the function block is occupied first, it is possible that the function restriction will no longer occur.
Which products are affected?
Short-term measures:
When declaring variables with the input help, check the variable name and the data type and correct them if necessary.
Evaluation/recommendations:
This functional limitation occurs during project creation and is immediately detected when translating the project and can be corrected manually.
Automatic Translation