This is the most complex but the rather than just resetting the PLC.

If your S7-1500 model features an integrated front-panel display, you can bypass the password without using a computer.

Several commercial tools claim to reset S7-1500 passwords, but they are not endorsed by Siemens:

Create a new, empty text document on the memory card.

$500 – $2,500+ USD depending on the CPU firmware version. Time: 1-5 business days. Verdict: Use this only for irreplaceable code on a critical machine.