FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
03-22-2024 04:45 PM - edited 03-22-2024 04:46 PM
Hello,
I am trying to build a few generic structs for various components in my project.
For example: there is an IO_Block struct that has an ARRAY[0..7] of BOOL for the inputs and outputs.
I want to be able to comment on the individual array elements after I create an instance of the struct.
I can do a blanket comment on the entire array, which isn't unhelpful in this scenario.
For example: BLOCK1.Input.bit[3] I would like to comment on what the input bit represents, but I cannot find a way to.
The only other way I can think of to get a similar description would be to call out an enumeration for this which I would like to avoid, as it will hide the bit's location behind the enum.
For example: BLOCK1.Input.bit[PRX1234] where PRX1234 is part of an enumeration and is equal to 3.
Please let me know if adding individual comments is possible because I'm planning on doing more complicated structures, and not being able to do this would complicate the programming for me.
Thank you for the assistance, and please let me know if you need more information to understand my question.
Solved! Go to Solution.
04-15-2024 04:48 PM
Hello,
this is a known issue at CODESYS, but neithetr currently there is no way to handle this, nor this feature will be available in the near future.
kind regards