Let me save you hours of frustration:

For retrofit locks (SecuRam/LaGard), follow their manual exactly. They use different programming sequences (e.g., 0-0-0-0-0-0, then #, then new code). Here is what I see in forums every week:

The door never opens again.