Elevator Control Project
First, the system hardware interface definition
The whole system hardware interface is divided into human-computer interactive display and automatic control. The human-Computer interactive display is divided into elevator and elevator in the two environments;
Elevator port = up/down button K + display light LED
Upstream button Kup1~7:bool type, press activate to indicate 1, otherwise represent 0;
downlink button Kdown1~7:bool type, press activate to indicate 2, otherwise 0;
Display light Ledleft1~7:bool type, the left elevator upstream (going upstream) represents 1, the downlink represents 0;
Display light Ledright1~7:bool type, the left elevator upstream (going upstream) represents 1, the downlink represents 0;
Elevator inside = Floor button B + Switch button button O/C + alarm
Left/Right Elevator floor button Bottonleft1~7/bottonright1~7:bool type, press activate to indicate 1, otherwise 0;
Open Close button Openleft/openright/closeleft/closeright:bool type, press activate to indicate 1, otherwise 0; door button execution priority is higher than close button;
Alarm button Pleft/pright:bool type, when the elevator is in a state of failure, the elevator is trapped personnel to trigger the alarm;
The automatic control section includes three switching signals (forward, reverse, stop) of the PLC system to the inverter, flat-level stroke switch, switch-gate travel switch
Variable frequency speed control switch: KA1 (positive turn), KA2 (reverse), KA3 (stop);
Flat-level Travel switch traveswitch1~7: Used to detect whether the elevator car reached the layer, when the PLC detects a certain layer of the travel switch immediately after a stop signal to the inverter, can be considered to ensure that the elevator stops accurately in the layer.
Open/close trip switch Openswitch/closeswitch: The left and right side of the elevator each two, used to detect whether the elevator door has been open or closed normally.
Second, the system function definition
The system is divided into several functions: human-computer interaction function, carrying function, security protection function.
Human-Computer Interaction function: Make the correct response to the instructions issued by the passenger (pressing a button);
Open and close logic: Elevator car in the floor after the delay of 2 seconds to open the elevator door, elevator door opened after 10 seconds after the elevator door automatically closed, during this time if someone pressed the Close button immediately close the elevator door. In the elevator door close process, if someone in the outside press the same direction with the elevator button or someone in the car press the door button, the elevator door opened again, once the elevator door closed, then no longer respond to the button.
Load function: In the case of conflicting instructions, the highest priority action is performed according to the priority of the instruction (interrupt), and the average waiting time and the per capita energy consumption are realized by reasonable scheduling algorithm in the case of multi-user simultaneously issuing the instruction.
Basic scheduling strategy: When the elevator is in a certain state of operation (such as upstream), the operation of the same user requirements (the user pressed the uplink button), the elevator will be the temporary production of the demand to the target reached the floor (more than one);
Security protection function: When the floor is not reached (flat stroke switch is not triggered), the door can not be opened (Button trigger invalid), in the elevator in the fault condition, the passenger can trigger the alarm button, the danger sent out, some of the contents of the above open and close the logic section.
Third, software function module decomposition and inter-module interface definition
Software is divided into functional modules: human-computer interaction signal, elevator scheduling algorithm, motor drive signal.
The human-Computer Interaction module transmits the button signal to the central processing Unit, the processor accepts the signal and combines the current state (position and running direction) of the elevator to determine the movement of the elevator at the next moment. Because the elevator control belongs to the real-time control system, it is possible to adjust the scheduling plan in time when the signal is in operation. Elevator scheduling algorithm output signal into the PLC processor, the PLC will convert the signal after the drive motor work.
Elevator Control project Design Report-Tenth week