Elevator control Project Outline design document
1. System hardware Interface Definition
The system's hardware mainly has two lifts the motor (elevator rises and falls), two open and close motors (elevator door opening and closing), PLC, the elevator inside the two control panels and each floor outside the control Panel.
2. System function definition
The control Panel outside the floor controls the elevator's rise and Fall (lift motor).
The control Panel in the elevator controls the elevator's rise and fall as well as the opening and closing of the elevator door (opening and closing motors).
3. Software function module decomposition and inter-module interface definition
General use of the object-facing method programming, will build 3 classes, motor class, Panel class, elevator class.
Class ele{
Public
int Nowfloor; Floor where the ele are
int Destinyfloor;
int doorstate; The Door ' s state 0 reprensents closed, 1 reprensents Open, 2 reprensents closing, 3 reprensents opening
};
Class controlpanel{
Public
int Destinyfloor; The floor your want to go
int destinyfloorseled;
BOOL Isopenorclosethedoor;
};
Class motor{
Public
BOOL dir; Direction
int en; Enable
};
The approximate structure is this, the software design process may need to implement the functions, in the existing institutions can be added again. The interaction of several objects is reflected in the data interaction of different classes, and the functions in class are not written.
Electromechanical Drive Control 8