This document discusses relay logic diagrams and ladder logic programming used in programmable logic controllers (PLCs). It covers the basic concepts of binary logic, logic gates, Boolean algebra, and how these concepts are applied in hardwired relay circuits and programmable ladder logic. Examples are provided to illustrate the relationships between relay ladder schematics, ladder logic programs, and equivalent logic gate circuits. Word-level logic instructions for PLCs are also discussed.