PLCs monitor the state of input devices, like a light switch, and then decide what to do with the output device, like turning the light on or off. PLCs work in a program scan cycle, which consists of reading inputs, executing the program, and writing outputs.