The logical functions are implemented in a ladder circuit by interconnecting ordinarily open (type-A) and normally closed (type-B) contacts. Because the first and second contacts must both be closed to complete the circuit, connecting two contacts in series creates an AND function.