Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for PLC Structured Text Language (IEC 61131-3) #7035

Open
lunakk-PL opened this issue Sep 6, 2024 · 7 comments
Open

Add Support for PLC Structured Text Language (IEC 61131-3) #7035

lunakk-PL opened this issue Sep 6, 2024 · 7 comments
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist

Comments

@lunakk-PL
Copy link

Description:

I would like to request the addition of PLC Structured Text (ST) language support in GitHub. This language, which is part of the IEC 61131-3 standard for programming industrial automation systems, is widely used in PLC programming for developing control logic in various industries.

Why is this important?

  1. Industry Usage: Structured Text is a key language in industrial automation, control systems, and machine programming, where it is used for complex logic and algorithms. Despite its extensive use in industrial applications, GitHub currently lacks native support for Structured Text syntax highlighting, making it harder for developers to share and collaborate on code.

  2. Consistency with IEC 61131-3: Structured Text is a standardized language under the IEC 61131-3 framework, which ensures that it follows a clear and structured syntax. Adding support for this language would align with GitHub’s goal of supporting a wide variety of languages, especially those that adhere to international standards.

  3. Improved Developer Experience: Implementing syntax highlighting and language recognition for Structured Text would significantly improve the readability of code and collaboration on projects that involve PLC programming, especially for those working in automation and manufacturing sectors.

Suggested Features:

  • Syntax highlighting for Structured Text files, with typical extensions like .st, .scl, .exp.
  • Language recognition based on keywords and syntax defined in the IEC 61131-3 standard.

Thank you for considering this request. The inclusion of Structured Text would be beneficial to a wide range of developers working in industrial and automation-related fields.

@lunakk-PL lunakk-PL added Add Language Good First Issue This is a great opportunity to start contributing to Linguist labels Sep 6, 2024
@lildude
Copy link
Member

lildude commented Sep 6, 2024

Can you please update your request to use the template that was there and fill in all the fields. The point of these issues is to offer people the opportunity to contribute to the project where the authors of the issues are not in a position to contribute a PR themselves. This is why we ask for a link to a grammar that supports the language you're requesting.

@EERichardJi
Copy link

You said something I've always wanted to say,I was looking for a software that would support this language, after all, a lot of code had to be written down。

@sikilde
Copy link

sikilde commented Sep 18, 2024

Removed due to comment below.

@lildude
Copy link
Member

lildude commented Sep 18, 2024

Any sample added to a PR needs to be locatable on GitHub with a clear license covering the source.

@sikilde
Copy link

sikilde commented Sep 18, 2024

Alright, here is a few repos with SCL code:
https://github.com/OttoMeister/Siemens-Tia-Portal-PID-Controller
https://github.com/ChristofGroschke/MQTT-Siemens-S7-1500
https://github.com/d-ani/SCL-UnitTesting

Any SCL or UDT files within these repos are examples in plain text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist
Projects
None yet
Development

No branches or pull requests

5 participants
@lildude @sikilde @lunakk-PL @EERichardJi and others