twincat-virtualtram

Designing and Simulating an Automated Tram Control System Using TwinCAT PLC Programming 🚝

https://github.com/dalageo/twincat-virtualtram

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

automation iec61131-3 plc-programming simulation transportation twincat twincat3 virtual-tram
Last synced: 6 months ago · JSON representation ·

Repository

Designing and Simulating an Automated Tram Control System Using TwinCAT PLC Programming 🚝

Basic Info
  • Host: GitHub
  • Owner: Dalageo
  • License: other
  • Default Branch: main
  • Homepage:
  • Size: 27 MB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
automation iec61131-3 plc-programming simulation transportation twincat twincat3 virtual-tram
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

Bechoff TwinCat
TwinCAT 3.1.4024.55 License: CC BY-NC-SA 4.0 GitHub stars

Designing and Simulating an Automated Tram Control System Using TwinCAT PLC Programming

This repository contains a simulation project for an Automated Tram System, developed within the TwinCAT environment as part of a master's course assignment University West. The assignment involves developing a Human-Machine Interface (HMI) and a virtual process with visualization to control a tram navigating between two stations along a predefined track. The designed system allows for both manual and automatic operation of the tram, ensuring it can handle passenger boarding and alighting with safety and efficiency. It includes the following functionalities:

  • Manual Mode Activation: The tram can be driven manually in any direction without restrictions by the driver using the HMI.
  • Automatic Mode Activation: Automatic driving is enabled when the tram is stationary at the home station, allowing it to shuttle continuously between the two stations.
  • Immediate Stop: The tram can be immediately stopped by the driver regardless of the current mode. Once stopped, it will remain stationary until manually operated back to the home station.
  • Mode Transition Control: To switch from automatic to manual mode, the tram must first be stopped at the home station before changing modes.
  • Tram Position and Status Monitoring: Sensors confirm the tram's presence at stations by turning green, while the HMI provides real-time updates on tram status, including location, movement, and emergency stop.

| Tram | HMI | |------|-----| | Tram | HMI |

Setup Instructions

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

  2. Clone the repository: ```sh git clone https://github.com/Dalageo/TwinCAT-VirtualTram.git

  3. Navigate to the cloned directory and execute the TwinCAT Virtual Tram.sln solution file.

  4. Navigate to TwinCAT directory and execute Start.bat: ```sh C:/TwinCAT/3.1/Runtimes/UmRT_Default/Start.bat

  5. Change the Target System in TwinCAT to UmRT_Default.

  6. Visualization Image Pool Setup:

    • In the Solution Explorer of TwinCAT Virtual Tram.sln, navigate to PLCSim's VISUs and click on the ImagePool.TcIPO.
    • Set the correct file path for each image by navigating to the cloned directory TwinCAT-VirtualTram/Image Pool, where you'll find Background.png, Sensor.png, Station.png, and Tram.png.
  7. Activate Configuration.

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

Contributions

This project was part of a master course assignment at University West, with special thanks to the professors for assigning it.

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

```bibtex @software{DalageorgosTwinCAT-VirtualTram2024, author = {Dalageorgos, Konstantinos}, license = {CC-BY-NC-SA-4.0}, month = jul, title = {{TwinCAT-VirtualTram}}, url = {https://github.com/Dalageo/TwinCAT-VirtualTram}, version = {1.0.0}, year = {2024} }

Owner

  • Login: Dalageo
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If this project was helpful, please cite it as below."
title: "TwinCAT-VirtualTram"
authors:
  - family-names: "Dalageorgos"
    given-names: "Konstantinos"
version: "1.0.0" 
date-released: "2024-07-01"
repository-code: "https://github.com/Dalageo/TwinCAT-VirtualTram"
license: "CC-BY-NC-SA-4.0"

GitHub Events

Total
  • Watch event: 5
  • Push event: 1
Last Year
  • Watch event: 5
  • Push event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 3
  • Total Committers: 1
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 3
  • Committers: 1
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Konstantinos Dalageorgos k****s@g****m 3

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels