Corrected from:
PLC Designer V3.22
Response of the new version:
If the value of a user parameter is changed, then this is taken over by both the parameter and the PLC variable linked to the parameter.
What happens?
If the value of a user parameter is changed, it is not taken over. The original value is restored and the PLC variable linked to the user parameter also does not adopt the changed value.
When does the behaviour occur?
The behaviour described above occurs when the element 'BaseIndexOffsets' is used in the pragma 'LenzeParamInst' and more than one instance level is used.
If another instance of another function module or structure is declared in an instance of a function module/structure, and user parameters are to be generated for this second instance, this is referred to as an instance level.
Which products are affected?
PLC Designer V3.x
Short-term measures
Use the pragmas for generating user parameters in such a way that all parameters are linked to PLC variables of the first instance level.
Evaluation/Recommendations:
When creating user parameters by means of a pragma instruction, it is possible that a value change is not accepted by the user parameter due to this function restriction. This is noticed at the latest during the commissioning phase.
Automatic Translation