Question: why plc is better than microcontroller?
Answer: While the application may be simple, a PLC has lots of built-in capabilities to make things happen behind the scenes, without the user programming needed if a microcontroller is used. PLCs have software watchdogs to keep an eye on the executing program, and hardware watchdogs that monitor I/O modules and devices.