Corrected from:
Project template L_FAST_Standard V3.21 (Application Template)
Response of the new version:
The 'Delete Machine Module References' command also deletes the machine module instance call from the 'MMT' block. When compiling the project, no compiling errors occur due to the deletion.
What happens?
When compiling the PLC project the error messages are displayed:
ERROR] Project name: MMT [Device: PLC logic: Application)(...): C0035: Program name, function or function block instance expected instead of 'MM_Dcl.xxx
ERROR] Project name: MMT [Device: PLC Logic: Application](...): C0004: 'xxx' is not a component of 'MM_DCL
...
When does the behaviour occur?
If the 'Delete Machine Module References' command is used to delete a machine module instance that has a similar instance name to another machine module instance (e.g. SlaveA and SlaveA_1), the machine module call is not deleted from the 'MMT' module (folder 'A10_MaschineModuleTree'). However, since the declaration is correctly deleted from the machine module instance, this leads to the above error messages when compiling the project.
Which products are affected?
Project template L_FAST_Standard from V3.18 (Application Template)
Short-term measures
Delete the machine module instance manually from the program 'MMT'.
Evaluation/Recommendations:
Depending on the machine module instance names used in the PLC project, it is possible that when deleting a machine module instance the call to it is not deleted from the 'MMT' block. This leads to compiling errors.
Automatic Translation