Basic function of both PLC and DDC is same. We use PLC for industrial / process applications and DDC for Building automation (BAS/BMS) applications.
Both has digital input, digital output, analog input, analog output for the basic operation.
Basicaly the PLC is more powerful, faster and has redundant system. Suitable for complex and high level process applications.
The main reason for selecting the DDC for BMS Application over PLC are ,
The communication protocol,
Most of the building automation devices use BacNet/Lonwork protocol. PLC don’t support these protocols. we need to use the gateway (protocol convertors). One of my project we used allen bradley compact logix plc for Building automation application. Modbus to Bacnet convertor helped me to communicate with the VRF system. It gave some problems initially. Better to use DDC for hassle free programming.
Programming
DDC programming is much easier than PLC programming.
Overall PLC is designed for industrail application and DDC is designed for BMS (Building management system) applications. Use it wisely to avoid unwanted communication issues.