Contents [hide]
1 Introduction
1.1 What is a PLC (Programmable Logic Controller)?
1.2 The PLCs purpose in life
1.3 History of PLCs
1.4 Recent developments
2 Basic Concepts
2.1 How the PLC operates
2.1.1 Scan cycle
3 Basic instructions
4 Wikibooks Links
5 External links
[edit]Introduction
[edit]What is a PLC (Programmable Logic Controller)?
A Programmable Logic Controller, or PLC, is more or less a tiny computer with a built-in operating system (OS).
This OS is highly specialized to handle incoming events in real time, i.e. at the time of their occurrence. The PLC has input lines where sensors are connected to notify upon events (e.g. temperature above/below a certain level, liquid level reached, etc.), and it has output lines to signal any reaction to the incoming events (e.g. start an engine, open/close a valve, etc.) The system is user programmable. It uses a language called "Relay Ladder" or RLL (Relay Ladder Logic). The name of this language implies the fact that the control logic of the earlier days, which was built from relays, is being simulated.
[edit]The PLCs purpose in life
The PLC is primarily used to control machinery. A program is written for the PLC which turns on and off outputs based on input conditions and the internal program. In this aspect, a PLC is similar to a computer. However, a PLC is designed to be programmed once, and run repeatedly as needed. In fact, a crafty programmer could use a PLC to control not only simple devices such as a garage door opener, but their whole house, including turning lights on and off at certain times, monitoring a custom built security system, etc.
Most commonly, a PLC is found inside of a machine in an industrial environment. A PLC can run an automatic machine for years with little human intervention. They are designed to withstand most harsh environments a PLC will encounter.
[edit]History of PLCs
When the first electronic machine controls were designed, they