In a programmable controller, means for performing an AND/OR-logic function and storing the result comprising:
- a plurality of flip-flops;
- a control clock;
- means for processing a first series circuit to provide an AND-logic function of state signals comprising:
- means responsive to a first state signal for setting or resetting the first flip-flop under said clock control according to whether said first state signal is "1" or "0";
- means responsive to a second state signal representing a serial circuit relationship with said first state signal for setting or resetting the second flip-flop under said clock control according to whether said second state signal is "1" or "0" as well as whether said first flip-flop is set or reset;
- means for directly setting or not setting the third flip-flop under said clock control according to whether said second flip-flop is set or reset;
- means for normally storing the state of said third flip-flop and then resetting the same under said clock control when an OR-logic function is not involved;
- means responsive to an OR-logic function signal for deferring the storing of the state of said third flip-flop and for inhibiting the resetting of the latter;
- means for processing a second series circuit whose output is connected to the output of said first series circuit to provide an OR-logic function comprising:
- means responsive to a first state signal of said second series circuit for setting or resetting said first flip-flop under said clock control according to whether this signal is "1" or "0";
- means responsive to a second state signal of said second series circuit representing a serial circuit relationship with the last mentioned signal for setting or resetting said second flip-flop according to whether this second state signal is "1" or "0" as well as whether said first flip-flop is set or reset;
- means for directly setting said third flip-flop if it is in reset state or leaving it in set state if it is in set state, or not setting in according to whether said second flip-flop is set or reset;
- and means for storing the state of said third flip-flop and then resetting the same under said clock control.