Download ECLiPS English Control Language Programming

Transcript
2
What Makes State Control Logic Different
Both State Logic and traditional methods of control test the condition of the inputs and
internal data to decide how to control a system. The fundamental difference of State
Logic is its inherent ability to also use the current condition (State) of the process in making control decisions. Traditional methods of control artificially simulate different States
with internal contacts or data values. Consider the following States:
State: Ready_For_Cutting
Turn on the Cutter_Ready_Light.
When the Cut_Push_Button is pressed, go to the Engage_Cutter State.
State: Engage_Cutter
Start the Cutter_Blade.
When the Cut_Complete_Detector is tripped, go to the Raise_Blade State.
These States describe a situation where the only time that the cutter should be activated
from the push button, is when the machine is ready for the cutting operation. State Logic inherently allows the system designer to take the State of the process into the decision.
By making the only transition to the Engage_Cutter State be in the Ready_For_Cutting
State, the designer limits the time that the Cut_Push_Button has any affect on the Cutter_Blade.
In these States the only time the cutter is started is when the Engage_Cutter State is active. Traditional approaches allow for ingenious methods to simulate the States of the
process to protect from an inadvertent pressing of the Cut_Push_Button at the wrong
time. These traditional methods add considerably to the complexity of the system design, especially in intricate systems.
Because a State Machine model reflects sequence of operation over time, the model embedded in the controller matches the actual model the real world process follows. This
model makes it possible to define the control system by describing the process.
Because the model matches the real world, program development and modification is
always simpler and easier to understand. Program developers can more easily build advanced diagnostics for the process into the program because the control program is a
precise model of the process and it is easy to detect when that normal behavior is not
followed.
A Collection of Tasks is a State Logic Program
Finite state machines or tasks define sequential operations. Processes though usually
have more than one sequence of operations executing concurrently. State programs are
usually a collection of Tasks matching the actual real physical Tasks that are inherently
part of the process under control. The State Logic control program is a collection of Tasks
which execute concurrently.
2-4
ECLiPS English Control Language Programming System User’s Guide - March 1998
GFK-0731B