Good morning,
is there an example of how to use properly the State AddOn?
I saw that State.Data.Cur[1] struct is not automatically filled with current typedata values.
I assume that I need to set those values manually somewhere (Station.OnUnitOperational?). Is it correct? Is there an example or some guidelines about it?
Also, where should I assign State.Data.New[1] values? Somewhere in the changeover?
At the moment I have just put this code in Station.OnUnitOperational:
IF ( Module1_MesFu1.OutImm.TypeDataOk )
THEN
StateAddOn.ParImm.TypeNoCur[1] := Module1_MesFu1.OutImm.TypeNoCur;
StateAddOn.ParImm.TypeVarCur[1] := Module1_MesFu1.OutImm.TypeVarCur;
StateAddOn.ParImm.TypeVersionCur[1] := Module1_MesFu1.OutImm.TypeVersion;
END_IF