I'm currently building an application to control over 200 devices in a building. Originally I wanted to use an Arduino and bunch of relays to control them. After asking some questions and such, people suggested to use a PLC instead (concerning safety and such). My new problem is that I don't really understand how PLCs work for a lot of devices. What do I do if I want to control 200 relays with a PLC? Most PLCs only have 8-16 relay outputs. How can I extend it?
I'm not asking for a recommendation on which product to buy and such, etc. (I know that is against the site rules), I'm just asking on a appropriate approach to my application.