A Comprehensive Guide to Programmable Logic Controllers for Industrial Automation: Understanding Basic PLC Systems