• Articles
  • API reference
  • Previous Versions
Show / Hide Table of Contents
  • Introduction
  • How to
    • Implement recipe management
    • Connect to a influx database
    • Invoke C# from PLC
    • How to access TwinController
    • How to write documentation blocks
    • How to make Inxton compiler ignore unknown syntax
    • Cyclic, Synchronous and Batched access
    • How to generate UI
    • How to include TcOpen in your project 🔗
    • Video how tos 🔗
  • Core
    • Introduction
    • Compiler
      • Intro to compiler
      • Added Properties
      • Attributes
      • Documentation Block
      • Fake Comments
      • Ignoring Parts Of Code
      • Twin Controller
      • Twin Objects
      • Twins
    • Connector
      • About connector
      • Primitive Twins
  • Essentials
    • Introduction
    • Rendering engine
      • Generating user interface
      • How it works
      • Presentation types
    • Controls
      • Controls
    • Styling your app
      • Styling your application
      • Color system
      • How to apply styles
      • Override default colors
      • Buttons
    • Conmponents convetions 🔗
  • TcOpen 🔗
    • Messaging, Logging, sequences 🔗

Ignoring parts of source PLC code

In order to keep the compiler process safe and consistent the vortex.compiler uses a formal grammar description to parse and subsequently emit C# code. Most of the syntactical constructions are supported. However, due to lack of strict formalization and compliance on part of some PLC systems it could happen that an unforeseen syntax rule is used. Such syntactical construction is correct in the PLC environment yet unknown to the vortex.compiler's parser. In such cases the parsing process fails. To workaround this issue an ignore directives can be introduced to prevent the builder from parsing specific parts of code.

//~
    variable : ARRAY[0..*] OF INT := {1,3,8} // This part of code will be ignored.
//~
  • Improve this Doc
In This Article
Back to top

Generated by DocFX | Developed with ❤ at MTS - putting the heart into manufacturing.