The PLC is usually in a control cabinet that can be opened by a control cabinet key:
https://www.knipex.de/schaltschrankschluessel?v=2921
Real locks in such systems are rare, sometimes even disallowed. Usually, a lock with a real key is only used to temporarily prevent switching on a machine during maintenance or such.