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.
09-24-2024 09:25 PM
With Indraworks a pragma existed that would define a namespace in the variable declaration. Is there an equivalent for ctrlX?
Solved! Go to Solution.
09-25-2024 07:36 AM
Could you a bit more describe, what you like to achieve?
See our online documentation for available attributes.
See also official online documentation of CODESYS.
09-26-2024 10:26 PM
In indraworks I could have a global variable list and then give variables in the list their own namespace so that in the application I could reference a variable with the namespace. For example NameSpace1.bVariable, NameSpace2.iVariable,... NamespaceXX.varaiblename all from a single list. That does not appear to exist in ctrlX PLC. The image below is from the Indraworks help manual.
09-27-2024 08:51 AM - last edited on 09-30-2024 08:42 AM by CodeShepherd
When you look at the ctrlX PLC Engineering documenation for pragmas you see that this pragma is not provided by CoDeSys anymore. I can't find any explanation from CoDeSys on the net why the pragma was removed. My guess is that it has to do with uniqueness in variable access and security and maybe extended functionality like restricted limitation by special user groups.
While the CoDeSys compiler does not show any hint, when an unknown attribut pragma is found, you do not realize, that the pragma is not available anymore.
09-30-2024 08:40 AM
As an addition you could use the attribute 'qualified_only' to force the usage of e.g. name of global variable list.
09-30-2024 03:22 PM
@CodeShepherd , that would require I use the List name but would not allow me to specify the list path in the application. It sounds like @HmiGuide, is saying it is no longer supported. It would be great if this could be re-added particularly for project conversions from indraworks to ctrlX PLC.