A PLC accomplishes three basic tasks: it scans the input modules, runs through the program and solves logic, and submits changes to the outputs as needed. The PLC’s program then loops back around and the process is repeated. This all seems like a simple task, but it can get quite complex with a large number of inputs and outputs combined with various timers and counters. The time it takes for the PLC to go through these three basic steps is called scan time and is an important factor when programming as it affects how quickly the inputs can be read.
PLCs are very good at controlling outputs based on the inputs they receive. They are quite durable, and able to withstand harsh industrial environments. They are built to last and will give trouble-free service for many years. Unlike relays, they do not have contacts to wear out and they can switch quickly without getting too hot. This means that cooling costs are decreased. Because of their communication abilities, they can be place away from the object they are controlling and it takes a lot less wiring to install PLCs as opposed to a hard-wired relay control system.
On the