Electromagnetic relays were once widely used in automation but have been replaced by programmable logic controllers in most applications. Relays are still used in small applications where a PLC would be overkill. Relays use an electromagnet to attract an armature that is mechanically linked to a moving contact, allowing it to make or break an electrical connection. They provide electrical isolation and allow low-voltage control of high-voltage circuits. Common relay applications include controlling high-voltage or high-current loads, isolating circuits at different voltages, and performing logic functions.