Electromechanical Drive Control 8

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.