Hello,
I have a type BatteryInRack:
Voltage: real;
Ready: bool;
and a type BatteryRack:
Battery1: BatteryInRack
Battery2: BatteryInRackBattery3: BatteryInRack
...
I have in Logic a variable:
BatteryRack: BatteryRack
I try to assign a value to the Voltage value, for example:
But it isn't work.Code:for i:= 1 to 3 doBatteryRack[i]:= i;end_for;
Is there a way to assign the value in a Loop?
Thank you in advance.