This repository contains a three-floor elevator control system simulated in the TwinCAT environment as part of a master's course assignment at University West. The assignment involved the development of the PLCStudent , using PLC programming languages, specifically SFC (Sequential Function Chart) and LD (Ladder Logic) for the elevator functionality, and a ST (Structured Text) function block for the button priority. In this project, PLCSim program, including ElevatorSimulator.TcVIS , was provided by the university. The designed elevator system includes the following functionalities:- System Activation: The control logic and elevator system are activated by pressing the Green Button. - Stop and Resume Operation: The Red Button stops the elevator movement. Pressing the Green Button again resumes the operation from where it was stopped. - Lamp Usage: Indicator lamps display the current status of the elevator, such as moving up, moving down, door open, or door closed. - Floor Display: A digital display inside the elevator shows the current floor number. - Door Control: Elevator doors automatically close when the elevator is in motion to ensure passenger safety. Upon reaching the destination floor, the doors automatically open, allowing passengers to enter and exit. In addition, a delay is implemented at each floor stop to provide sufficient time for safe exit and entry. - Button Functionality: Buttons inside the elevator and on each floor call and direct the elevator. The system processes the pressed buttons in the correct order to ensure efficient operation. |
-
Download and Install: TwinCAT 3 download | eXtended Automation Engineering (XAE)
-
Clone the repository:
git clone https://github.com/Dalageo/TwinCAT-VirtualElevator.git
-
Navigate to the cloned directory and execute the 'TwinCAT Virtual Elevator.sln' solution file.
-
Navigate to TwinCAT directory and execute Start.bat:
C:/TwinCAT/3.1/Runtimes/UmRT_Default/Start.bat
-
Change the Target System in TwinCAT to UmRT_Default.
-
Activate Configuration.
-
Login and Start both 'PLCSim' and 'PLCStudent'.
This project was part of a master course assignment at University West, which provided the initial codebase for PLCSim
. Special thanks to the professors at University West who contributed to its development.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It was chosen to prevent commercial use and to promote free access and open collaboration, ensuring any adaptations remain freely available to everyone.
@software{Dalageorgos_TwinCAT-VirtualElevator_2024,
author = {Dalageorgos, Konstantinos},
license = {CC-BY-NC-SA-4.0},
month = jun,
title = {{TwinCAT-VirtualElevator}},
url = {https://github.com/Dalageo/TwinCAT-VirtualElevator},
version = {1.0.0},
year = {2024}
}