Skip to content

Simulating a Three-Floor Elevator System Using TwinCAT PLC Programming

License

Notifications You must be signed in to change notification settings

Dalageo/TwinCAT-VirtualElevator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bechoff TwinCat

Simulating a Three-Floor Elevator System Using TwinCAT PLC Programming

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.

Setup Instructions

  1. Download and Install: TwinCAT 3 download | eXtended Automation Engineering (XAE)

  2. Clone the repository:

    git clone https://github.com/Dalageo/TwinCAT-VirtualElevator.git
    
  3. Navigate to the cloned directory and execute the 'TwinCAT Virtual Elevator.sln' solution file.

  4. Navigate to TwinCAT directory and execute Start.bat:

    C:/TwinCAT/3.1/Runtimes/UmRT_Default/Start.bat
    
  5. Change the Target System in TwinCAT to UmRT_Default.

  6. Activate Configuration.

  7. Login and Start both 'PLCSim' and 'PLCStudent'.

Contributions

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.

License

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.

CC BY-NC-SA 4.0

Citation

@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}
}

Releases

No releases published

Packages

No packages published