I am a recently retired control systems engineer in the US with 45 years experience. In every project we worked on we made sure the end user owned the custom programming, system configuration, and all the process data. I think it is a mistake for a customer to accept anything less.