1.2. Programming

1.2.1. Programming principles

1.2.1.1. Boolean algebra

Any CPU or microcontroller basically understand only logic operations. Main logic operations are AND, OR, and NOT. The following table resume the operations of these operators.

../../../_images/TruthTable.jpeg

Truth table and logic gates

In PLC ladder language is based on logic operations. More on this argument later.