Перья в Historian Trend
Добавлено: Чт мар 21, 2013 9:40 am
После рестарта добавленные перья в тренд не сохраняются...
Началось недавно...причину найти не могу...
Старые конфигурации работают...новые тренды только до рестарта проекта...далее окна трендов без перьев...
Подскажите в чем может быть причина...
ЗЫ: один и тот же тренд, первое перо было задано скажем неделю назад...и его запоминает...второе делаю сейчас...его помнит только до рестарта проекта...
такое впечатление что не может переписать файлик (вот только какой?) с конфигурацией...
Беру другой проект (железо и софт тот же) и все в порядке...
Скрипт окна такой:
On Show
While Showing
On hide
Началось недавно...причину найти не могу...
Старые конфигурации работают...новые тренды только до рестарта проекта...далее окна трендов без перьев...
Подскажите в чем может быть причина...
ЗЫ: один и тот же тренд, первое перо было задано скажем неделю назад...и его запоминает...второе делаю сейчас...его помнит только до рестарта проекта...
такое впечатление что не может переписать файлик (вот только какой?) с конфигурацией...
Беру другой проект (железо и софт тот же) и все в порядке...
Скрипт окна такой:
On Show
- Код: Выделить всё
CALL OnShow( "OVER", StringFromIntg(0ST_Trend_TrendIndex, 10), "previous2", "");
HDWStatus = 1;
0ST_Trend_PenScale = 1;
0ST_Trend_Tag1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_MM_TempPen01=0ST_Trend_Tag1.Name;
0ST_Trend_IA_Pen01.Name = 0ST_Trend_Tag1.Name;
0ST_Trend_Tag2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_MM_TempPen02=0ST_Trend_Tag2.Name;
0ST_Trend_IA_Pen02.Name = 0ST_Trend_Tag2.Name;
0ST_Trend_Tag3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_MM_TempPen03=0ST_Trend_Tag3.Name;
0ST_Trend_IA_Pen03.Name = 0ST_Trend_Tag3.Name;
0ST_Trend_Tag4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_MM_TempPen04=0ST_Trend_Tag4.Name;
0ST_Trend_IA_Pen04.Name = 0ST_Trend_Tag4.Name;
0ST_Trend_Tag5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_MM_TempPen05=0ST_Trend_Tag5.Name;
0ST_Trend_IA_Pen05.Name = 0ST_Trend_Tag5.Name;
0ST_Trend_Tag6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_MM_TempPen06=0ST_Trend_Tag6.Name;
0ST_Trend_IA_Pen06.Name = 0ST_Trend_Tag6.Name;
0ST_Trend_Tag7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_MM_TempPen07=0ST_Trend_Tag7.Name;
0ST_Trend_IA_Pen07.Name = 0ST_Trend_Tag7.Name;
0ST_Trend_Tag8 = 0ST_Trend_AuxHT.Pen8;
0ST_Trend_MM_TempPen08=0ST_Trend_Tag8.Name;
0ST_Trend_IA_Pen08.Name = 0ST_Trend_Tag8.Name;
IF 0ST_Trend_AuxHT.MinRange >= 0ST_Trend_AuxHT.MaxRange THEN
0ST_Trend_AuxHT.MaxRange = 100;
0ST_Trend_AuxHT.MinRange = 0;
ENDIF;
While Showing
- Код: Выделить всё
IF 0ST_Trend_CheckBox ==1 THEN
HTUpdateToCurrentTime(0ST_Trend_AuxHT.Name );
ENDIF;
0ST_Trend_Tag1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_MM_TempPen01=0ST_Trend_Tag1.Name;
0ST_Trend_IA_Pen01.Name = 0ST_Trend_Tag1.Name;
0ST_Trend_Tag2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_MM_TempPen02=0ST_Trend_Tag2.Name;
0ST_Trend_IA_Pen02.Name = 0ST_Trend_Tag2.Name;
0ST_Trend_Tag3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_MM_TempPen03=0ST_Trend_Tag3.Name;
0ST_Trend_IA_Pen03.Name = 0ST_Trend_Tag3.Name;
0ST_Trend_Tag4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_MM_TempPen04=0ST_Trend_Tag4.Name;
0ST_Trend_IA_Pen04.Name = 0ST_Trend_Tag4.Name;
0ST_Trend_Tag5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_MM_TempPen05=0ST_Trend_Tag5.Name;
0ST_Trend_IA_Pen05.Name = 0ST_Trend_Tag5.Name;
0ST_Trend_Tag6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_MM_TempPen06=0ST_Trend_Tag6.Name;
0ST_Trend_IA_Pen06.Name = 0ST_Trend_Tag6.Name;
0ST_Trend_Tag7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_MM_TempPen07=0ST_Trend_Tag7.Name;
0ST_Trend_IA_Pen07.Name = 0ST_Trend_Tag7.Name;
0ST_Trend_Tag8 = 0ST_Trend_AuxHT.Pen8;
0ST_Trend_MM_TempPen08=0ST_Trend_Tag8.Name;
0ST_Trend_IA_Pen08.Name = 0ST_Trend_Tag8.Name;
{reset errors from SaveToFile}
IF HDWStatus == 0 THEN
0ST_Trend_HdwTest = 0ST_Trend_HdwTest + 1;
ENDIF;
IF 0ST_Trend_HdwTest == 2 THEN
HDWStatus = 1;
0ST_Trend_HdwTest = 0;
ENDIF;
On hide
- Код: Выделить всё
DIM File AS MESSAGE;
{If English is the language the file name is HMI.alr, if Russian is 1049\HMI.alr, and so on..}
File="";
IF $Language <> 1033 THEN
File=StringFromIntg( $Language, 10 ) + "\";
ENDIF;
File=InfoInTouchAppDir() + "\Setup\" + File + "Trends.ini";
INIWriteString( File, "TrendsTitles", "Trend" + StringFromIntg(0ST_Trend_TrendIndex,10), 0ST_Trend_Title );
IF 0ST_Trend_TrendIndex == 1 THEN
0ST_Trend_HT1.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT1.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT1.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT1.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT1.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT1.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT1.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT1.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 2 THEN
0ST_Trend_HT2.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT2.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT2.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT2.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT2.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT2.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT2.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT2.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 3 THEN
0ST_Trend_HT3.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT3.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT3.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT3.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT3.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT3.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT3.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT3.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 4 THEN
0ST_Trend_HT4.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT4.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT4.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT4.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT4.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT4.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT4.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT4.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 5 THEN
0ST_Trend_HT5.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT5.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT5.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT5.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT5.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT5.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT5.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT5.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 6 THEN
0ST_Trend_HT6.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT6.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT6.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT6.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT6.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT6.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT6.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT6.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 7 THEN
0ST_Trend_HT7.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT7.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT7.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT7.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT7.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT7.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT7.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT7.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 8 THEN
0ST_Trend_HT8.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT8.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT8.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT8.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT8.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT8.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT8.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT8.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 9 THEN
0ST_Trend_HT9.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT9.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT9.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT9.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT9.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT9.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT9.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT9.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 10 THEN
0ST_Trend_HT10.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT10.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT10.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT10.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT10.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT10.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT10.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT10.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 11 THEN
0ST_Trend_HT11.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT11.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT11.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT11.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT11.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT11.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT11.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT11.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 12 THEN
0ST_Trend_HT12.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT12.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT12.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT12.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT12.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT12.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT12.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT12.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 13 THEN
0ST_Trend_HT13.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT13.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT13.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT13.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT13.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT13.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT13.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT13.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 14 THEN
0ST_Trend_HT14.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT14.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT14.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT14.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT14.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT14.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT14.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT14.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 15 THEN
0ST_Trend_HT15.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT15.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT15.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT15.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT15.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT15.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT15.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT15.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 16 THEN
0ST_Trend_HT16.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT16.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT16.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT16.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT16.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT16.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT16.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT16.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 17 THEN
0ST_Trend_HT17.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT17.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT17.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT17.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT17.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT17.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT17.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT17.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 18 THEN
0ST_Trend_HT18.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT18.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT18.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT18.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT18.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT18.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT18.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT18.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 19 THEN
0ST_Trend_HT19.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT19.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT19.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT19.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT19.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT19.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT19.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT19.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 20 THEN
0ST_Trend_HT20.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT20.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT20.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT20.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT20.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT20.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT20.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT20.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 21 THEN
0ST_Trend_HT21.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT21.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT21.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT21.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT21.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT21.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT21.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT21.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 22 THEN
0ST_Trend_HT22.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT22.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT22.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT22.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT22.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT22.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT22.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT22.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 23 THEN
0ST_Trend_HT23.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT23.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT23.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT23.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT23.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT23.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT23.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT23.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 24 THEN
0ST_Trend_HT24.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT24.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT24.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT24.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT24.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT24.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT24.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT24.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 25 THEN
0ST_Trend_HT25.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT25.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT25.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT25.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT25.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT25.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT25.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT25.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 26 THEN
0ST_Trend_HT26.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT26.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT26.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT26.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT26.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT26.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT26.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT26.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 27 THEN
0ST_Trend_HT27.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT27.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT27.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT27.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT27.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT27.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT27.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT27.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 28 THEN
0ST_Trend_HT28.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT28.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT28.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT28.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT28.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT28.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT28.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT28.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 29 THEN
0ST_Trend_HT29.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT29.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT29.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT29.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT29.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT29.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT29.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT29.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 30 THEN
0ST_Trend_HT30.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT30.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT30.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT30.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT30.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT30.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT30.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT30.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 31 THEN
0ST_Trend_HT31.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT31.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT31.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT31.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT31.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT31.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT31.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT31.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 32 THEN
0ST_Trend_HT32.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT32.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT32.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT32.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT32.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT32.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT32.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT32.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 33 THEN
0ST_Trend_HT33.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT33.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT33.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT33.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT33.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT33.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT33.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT33.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 34 THEN
0ST_Trend_HT34.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT34.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT34.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT34.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT34.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT34.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT34.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT34.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 35 THEN
0ST_Trend_HT35.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT35.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT35.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT35.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT35.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT35.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT35.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT35.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 36 THEN
0ST_Trend_HT36.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT36.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT36.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT36.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT36.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT36.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT36.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT36.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 37 THEN
0ST_Trend_HT37.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT37.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT37.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT37.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT37.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT37.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT37.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT37.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 38 THEN
0ST_Trend_HT38.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT38.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT38.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT38.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT38.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT38.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT38.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT38.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 39 THEN
0ST_Trend_HT39.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT39.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT39.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT39.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT39.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT39.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT39.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT39.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 40 THEN
0ST_Trend_HT40.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT40.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT40.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT40.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT40.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT40.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT40.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT40.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 41 THEN
0ST_Trend_HT41.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT41.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT41.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT41.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT41.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT41.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT41.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT41.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 42 THEN
0ST_Trend_HT42.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT42.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT42.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT42.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT42.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT42.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT42.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT42.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 43 THEN
0ST_Trend_HT43.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT43.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT43.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT43.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT43.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT43.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT43.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT43.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 44 THEN
0ST_Trend_HT44.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT44.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT44.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT44.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT44.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT44.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT44.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT44.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 45 THEN
0ST_Trend_HT45.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT45.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT45.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT45.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT45.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT45.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT45.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT45.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 46 THEN
0ST_Trend_HT46.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT46.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT46.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT46.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT46.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT46.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT46.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT46.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 47 THEN
0ST_Trend_HT47.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT47.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT47.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT47.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT47.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT47.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT47.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT47.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 48 THEN
0ST_Trend_HT48.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT48.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT48.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT48.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT48.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT48.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT48.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT48.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 49 THEN
0ST_Trend_HT49.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT49.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT49.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT49.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT49.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT49.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT49.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT49.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;
IF 0ST_Trend_TrendIndex == 50 THEN
0ST_Trend_HT50.Pen1 = 0ST_Trend_AuxHT.Pen1;
0ST_Trend_HT50.Pen2 = 0ST_Trend_AuxHT.Pen2;
0ST_Trend_HT50.Pen3 = 0ST_Trend_AuxHT.Pen3;
0ST_Trend_HT50.Pen4 = 0ST_Trend_AuxHT.Pen4;
0ST_Trend_HT50.Pen5 = 0ST_Trend_AuxHT.Pen5;
0ST_Trend_HT50.Pen6 = 0ST_Trend_AuxHT.Pen6;
0ST_Trend_HT50.Pen7 = 0ST_Trend_AuxHT.Pen7;
0ST_Trend_HT50.Pen8 = 0ST_Trend_AuxHT.Pen8;
ENDIF;