I have several controls (ie motors) running that have a structure for all related tags
TYPEstSensors:  STRUCT    EU:      real;    DU:      word;    Level_L:    real;    ..etc  END_STRUCTEND_TYPE
then use the structure for sensors
  Sensor1:    stSensors;  Sensor2:    stSensors;  Motor1:    stMotors;  etc
When you'd have these tags defined individually you could list an initial value so that it is not zero
Sensor1_LevelHH:REAL:=25.0;
I'd like to do the same with the tags defined in the structure, but the same structure is used several times, meaning I can't define these initial values in the structure definition.
My question: Is there a way to set initial values for each structure instance?
I have several controls (ie motors) running that have a structure for all related tags
then use the structure for sensors
When you'd have these tags defined individually you could list an initial value so that it is not zero
I'd like to do the same with the tags defined in the structure, but the same structure is used several times, meaning I can't define these initial values in the structure definition.
My question: Is there a way to set initial values for each structure instance?
Thanks!
Originally created by: Viacheslav Mezentsev
Try something like this:
Things can be so simple sometimes Thank you for that!!!!