PLC programming makes more sense when it sits next to the broader control-system context.

Start here:

PLCs: Workings, Applications, Limitations

That article is the better entry point.