The error is related to the security setting in the PLC. Follow these steps in Step 7 (TIA Portal): Siemens Security Setup