There are various "S7-1200 Password Unlocker" tools found on the internet.
all existing files on the card through Windows Explorer (do not format the card, as it must maintain its Siemens internal formatting). TIA Portal , set the card type to Reset the CPU S7-1200 PLC
Stop the PLC, insert the prepared memory card, and turn on the power.