11/5/2024 1:41 PM | |
Joined: 2/1/2010 Last visit: 9/5/2025 Posts: 212 Rating:
|
CFC access to a sub element of a STRUCT is forbidden except for very limited scenarios such as implicit 'default APL PV' struct (Real + quality byte) to Real. Since you have created a custom struct you will need to create a block like APL Library StruAnIn (or the opposite polarity StruAnOu), but adapted to your structure. 1 block will be needed for each unique struct with your In variable matching your UDT/Struct. I'd recommend defining UDTs so that in case you change the Structs later it's done centrally. Or you can just choose to adapt your DB to not nest the STRUCT inside the DB and just have all the variables individually. EDIT: If you only want to modify 1 value at a time, you'll have to leverage IN/OUT variables for the DB interface Struct but this will be trickier. |
Last edited by: RVS.wick at: 11/05/2024 13:42:41Last edited by: RVS.wick at: 11/05/2024 13:46:16If my post helped you, please rate. Thanks. |
|
This contribution was helpful to
1 thankful Users |
Follow us on