First, the system hardware interface definition
1. Inside and outside the elevator Operation button and display screen
The operating interface of the elevator includes a floor button, a corresponding indicator light, an open Close button (Emergency call button) and a screen showing the current number of floors. The button has an interface to the indicator light and the CPU, and the screen has an interface to accept the CPU transmission.
The operating interface of each floor includes the upstream and downstream buttons, corresponding indicators and screens showing the number of floors and the operating status of the two elevators. The trip switch on each floor transmits the elevator operation information to the screen via the CPU, and the button has an interface to the indicator light and the CPU transmission.
2. Action of the elevator
The elevator movement includes the elevator to the downward and the elevator door opening and shutting. The elevator is driven by a large motor, and the opening and closing of the elevator door is controlled by an independent small motor. The control motor remains connected to the CPU interface, and the travel switch of the elevator door has an interface to the small motor.
Second, the system function definition
1. Elevator movement
Elevators take passengers to the destination floor, the upper and lower line acceleration slow, smooth running, in each floor to determine whether to stop and run direction. After pressing the elevator door opening and closing button can respond to open the elevator door.
2. Floor Display and control
The display screen in the elevator shows the current number of floors, and the indicator indicates whether the corresponding button is pressed. The button can control the elevator's upper and lower line and the opening and closing of the elevator door.
The display screen of each floor not only shows the number of floors of the two elevators, but also shows the status of the elevator operation. The indicator light shows if the corresponding button is pressed, the upper and lower line buttons control the suitable elevator to run to the floor to carry passengers.
3. Logical Judgment
According to the two elevators on the floor and the direction of movement to determine which elevator in response to the passenger press down the line button, according to the position of the elevator to decide whether to respond to the elevator passengers issued by the opening instructions, in order to ensure safety, comfort and energy saving.
Third, software function module decomposition and inter-module interface definition
Software function module is divided into screen display, elevator button, elevator up and down and elevator door opening and closing.
Elevator screen display and the elevator up and down there is an interface between the light and elevator buttons, elevator up and down and elevator door opening and closing between the interface, elevator buttons and elevators up and down with the elevator door opening and closing between the interface.
Elevator switch and elevator up and down interlock, elevator door opening and closing and elevators interlock. Elevator stop after the action to trigger the elevator door, the door after closing to trigger the elevator action. There are passengers in the operation of the elevator up and down and elevator door opening and closing can be timely response, from the set mode to human control.
Big job: Overview design document for elevator design