Aside from transistor outputs in PNP and NPN connections, PLC can also have relays as outputs. Existence of relays as outputs makes it easier to connect with external devices. Model CPM1A contains exactly these relays as outputs. There a 4 relays whose functional contacts are taken out on a PLC controller housing in the form of screw terminals. In reality this looks as in picture below.With activation of phototransistor, relay comes under voltage and activates a contact between points A and B. Contacts A and B can in our case be either in connection or interrupted. What state these contacts are in is determined by a CPU through appropriate bits in memory location IR010. One example of relay status is shown in a picture below. A true state of devices attached to these relays is displayed.