mcodem - 2020-10-29

Hi, all

I've tried to modify the 'alarm manager' example on CODESYS STORE.
However, I can't understand what the code attached below means.
When I deleted the code, the alarm manager system did not work at all.
Anyone can help me to get it?


Var
arrAlarmsFromHistoryAll : ARRAY [0 .. iMaxCountAlarmsFromHistoryAll - 1] OF Alarm;
arritfAlarmsFromHistoryAll : ARRAY [0 .. iMaxCountAlarmsFromHistoryAll - 1] OF IAlarm2;
End_Var


FOR i := 0 TO iMaxCountAlarmsFromHistory12 - 1 DO
    arritfAlarmsFromHistory12[i] := arrAlarmsFromHistory12[i];
END_FOR