You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're right, there is no documentation on this feature. I know that it's on the developer's list of things to do, but I don't know if/when it will be done.
Without testing it, something like this should work:
// Define the struct that will be used to declare port variables.// The typeinformation attribute means that the plcncli will generate GDS metadata for this struct.//#typeinformationstructSampleStruct
{
float64 ElemA;
uint32 ElemB;
uint16 ElemC;
boolean ElemD;
};
You should then be able to create dynamic ports of this type, in a similar way to ports of elementary data types.
The Dynamic Ports example lists the limitation that struct metadata is not generated automatically by the plcncli code generator.
It turns out that the
//#typeinformation
comment can be used to do just that.The example should be updated to mention this.
The text was updated successfully, but these errors were encountered: