• 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 🔗

Fake commenting attributes

In some instances PLC program modification with changes in attributes that do not have effect on running PLC program (e.g. AddedProperties or clr attributes) can prevent online change of the running program. Read more about TwinCat 3 online change;

To circumvent this inconvenience compiler comes with use of faked comments. These represent real comments for the PLC, but Inxton compiler will process those statements. Faked comments are single line comments.

To provide faked comment simply prefix the attribute with '//*' as is shown at example below.

//* {attribute addProperty Name "This is the blocks name"}

(*Is the same as*)

{attribute addProperty Name "This is the blocks name"}

//* {attribute clr [RenderIgnore()]}
(*Is the same as*)
{attribute clr [ReadOnly()]}
  • Improve this Doc
In This Article
Back to top

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