KNAPP AG interview question

About how the plc workded