Select parameters from Subtrees (enumerations)

Hello all,

I don't know if this is a bug or is something characteristic form CPS. It's happen on OES too.

I'm creating an object and create a parameter as a "ParameterValue". when you want to give a value, CPS gets all values from contatcs and enumerations that match with the type, that is Ok. The problem start when you select a value from that comes from a Subtree, then suddenly whe you press enter the value is missing.

As a Machine developera and object creator, this feature is necesary. Subtrees are par of the station.

 

Thanks and best regards

 

Best reply by nexidator

I have looked into the problem, and the answer is: Part of the problem is a misbehavior, part is by design.

  • Selecting elements of an enumeration or constant variables should be possible across the borders of subtrees. This does not work correctly. We will fix this in the next version.
  • Selecting subtree variables (not constants) from outside their own subtree does not work, because these variables appear as simple-type variables in CpStudio although they are exported as arrays. When referencing them in the main tree, you would need to specify an array index corresponding to a subtree instance. This is technically impossible because the selection control can only link to data elements existing in CpStudio.
View original
2 replies
Resolved