Variable declaration more difficult in older projects (fixed from V3.22)

Corrected from:
PLC Designer V3.22

Response of the new version:
When opening the dialogue 'Auto Declare', the field 'Scope' is preset to 'VAR'. This allows the variable to be declared locally in the active editor.
 
What happens?
In the 'Auto Declare' dialogue, the 'Scope' field is set to 'None'. This means that the module in which the variable is to be declared cannot be selected in the 'Object' field. The 'Object' field shows a red circle with an exclamation mark with the tooltip 'No object selected'.

When does the behaviour occur?
The behaviour described above  
  • occurs with projects created with PLC Designer V3.19 or older or
  • with newly created projects if a Lenze controller with version V3.17 is used.
Which products are affected?
PLC Designer from V3.20

Short-term measures:
  • Select a value not equal to 'None' in the 'Scope' field and then select the module in which the variable is to be declared in the 'Object' field. 
  • In the 'Project Settings' dialogue (menu command 'Project' > 'Project Settings'), set the compiler version to V3.5.14.
Evaluation/Recommendations:
For the automatic declaration of variables, the scope is not set to 'VAR'. However, the variable can still be entered.

Automatic Translation

URL for linking this AKB article: /en-de/go/akb/202000125/1/
森林舞会游戏