Sequence controller with combinatorial Boolean logic
First Claim
1. In a programmable controller having a processor which repeatedly executes instructions of a stored control program to examine the states of input devices connected thereto, and to operate output devices connected thereto in accordance with the states of the input devices, the programmable controller having conductors coupled to the processor for carrying data and control signals, the improvement therein comprising:
- a first means, coupled to the conductors, for storing data regarding each step in a machine control process with the data for each step including;
states for the output devices, a designation of a plurality of other steps in the process to which transitions may occur, data defining a Boolean logic expression specifying the states of a plurality of inputs devices which must exist in order for a transition to occur to a first one of the designated other steps, and a designation of a change in the state of a single input device which must take place in order for a transition to occur to a second one of the designated other steps;
a second means, coupled to the conductors, for storing an indication of the step of the process which is currently active;
means for setting the states of the output devices to the states stored for the currently active machine control process step, said means for setting being coupled to the conductors;
a first means for detecting the truth of a Boolean logic expression defined by data received from said first means for storing;
a second means for detecting the occurrence of the change in the state of the single input device designated in said first means for storing; and
means for loading data into said second means for storing in response to said first and second means for detecting, wherein an indication of the first one of the designated other steps is loaded into said second means for storing when the Boolean logic expression is found to be true, and an indication of the second one of the designated other steps is loaded into said second means for storing when the change in the state of the single input device occurs.
1 Assignment
0 Petitions
Accused Products
Abstract
A programmable controller for sensing the status of input devices and controlling the state of operating devices in accordance with a stored ladder logic control program includes a state machine instruction. A memory is provided for storing data regarding each state of an apparatus being controlled. This data defines the status of apparatus operating devices for each state, and the legitimate transitions from that state to other selected states, along with a Boolean logic expression of selected input conditions which determines when a state transition should occur. A processor responds to the state machine instruction by examining the truth of the Boolean logic expressions for the present state of the apparatus to detect if a state transition should occur. Upon such a detection controller advances to the state associated with the detected true expression. State transitions also can be defined as occurring upon a specified change in the status of a single input. Other mechanisms are provided to detect illegitimate states of the apparatus and take appropriate action.
41 Citations
7 Claims
-
1. In a programmable controller having a processor which repeatedly executes instructions of a stored control program to examine the states of input devices connected thereto, and to operate output devices connected thereto in accordance with the states of the input devices, the programmable controller having conductors coupled to the processor for carrying data and control signals, the improvement therein comprising:
-
a first means, coupled to the conductors, for storing data regarding each step in a machine control process with the data for each step including;
states for the output devices, a designation of a plurality of other steps in the process to which transitions may occur, data defining a Boolean logic expression specifying the states of a plurality of inputs devices which must exist in order for a transition to occur to a first one of the designated other steps, and a designation of a change in the state of a single input device which must take place in order for a transition to occur to a second one of the designated other steps;a second means, coupled to the conductors, for storing an indication of the step of the process which is currently active; means for setting the states of the output devices to the states stored for the currently active machine control process step, said means for setting being coupled to the conductors; a first means for detecting the truth of a Boolean logic expression defined by data received from said first means for storing; a second means for detecting the occurrence of the change in the state of the single input device designated in said first means for storing; and means for loading data into said second means for storing in response to said first and second means for detecting, wherein an indication of the first one of the designated other steps is loaded into said second means for storing when the Boolean logic expression is found to be true, and an indication of the second one of the designated other steps is loaded into said second means for storing when the change in the state of the single input device occurs. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. In a programmable controller having a processor which executes instructions of a stored control program to examine the states of input devices connected thereto, and to operate output devices connected thereto in accordance with the states of the input devices, the programmable controller having conductors coupled to the processor for carrying data and control signals, the improvement therein comprising:
-
a memory coupled to the conductors to store data regarding each step in a machine control process, and for each step said memory having a group of storage locations which include a first storage location containing states for the output devices, a second storage location containing a designation of a given step in the process, a third storage location containing an indication of states of a first plurality of input devices, a fourth storage location containing a data mask for selecting a set of data bits representing states of a second plurality of input devices, a fifth storage location containing designations of changes in the states of the second plurality of input devices, and a plurality of other storage locations each one being associated with a data bit in the set of data bits and containing a designation of another step in the process; a means, coupled to the conductors, for storing an indication of the step of the process which currently is active; means, coupled to the conductors, for setting the status of the output devices to the states stored for the currently active machine control process step; a first means for detecting when all of the first plurality of input devices have the states indicated in the third storage location; means for combining the data mask contained in the fourth storage location with data bits representing the states of the input devices to produce the set of data bits representing the states of the second plurality of input devices; a second means for detecting when a bit in the set of data bits makes one of the changes designated in the fifth storage location; and means for loading data into said means for storing in response to said first and second means for detecting, wherein the designation of the given step is loaded into said means for storing when all of the first plurality of input devices have the states indicated in the third storage location, and designation of another step in the process is loaded from one of the given plurality of other storage locations into said means for storing when a change in the state of a bit in the set of data bits occurs.
-
Specification