Naming conventions for FB in/out which are/shall become part of the 4diac standard library? #2126
Replies: 4 comments 5 replies
-
|
@MartinMelikMerkumians thanks for starting this discussion I think now that we are getting more and more FBs this is getting more and more important. I totally agree that hungarian notation is a no go. Does anyone know some guidelines that we could use as starting point, e.g., PLC open? |
Beta Was this translation helpful? Give feedback.
-
|
I agree, apart from that I would also suggest that we start using tags to mark PRs. I find it quite hard to spot which part a PR is about. Tags like |
Beta Was this translation helpful? Give feedback.
-
|
I started a similar Discussion some time ago, just cannot remember on which Channel. one main Topic is e.g. Naming of indexed inputs. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, seems that there are no further comments now. How to proceed? I can try to sum the current consensus in a file. What would be the prefered format? Asciidoc? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have noticed that a lot PRs to add new FBs have been issued in the recent past.
Some of those FBs heavily deviate from the naming schemes we used in the past, which was based on the IEC 61131-3 standard FBs and functions.
I feel we should establish a common naming convention for FBs which are part of, or shall be added to, our standard library, as we are doing the the rest of our code. I think the reasons are clear, a common theme and knowing what to expect and what to avoid in naming ports. internal variables,, etc.
To give my personal opinion, we should avoid
identifiers should always:
What are your thoughts?
Cheers, Martin
Beta Was this translation helpful? Give feedback.
All reactions