diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 986fe838..0bc135c9 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -12,7 +12,7 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── pageStartup.txt +├── bSendStartup.txt │ @@ -173,15 +173,15 @@ │ Max. Text Size : 10 │ @@ -30,52 +30,3 @@ │ crcputs sys0,2 │ crcputs tSend.txt,0 │ //send cmd -├── screensaver.txt -│┄ ordering differences only -│ @@ -64,40 +64,40 @@ -│ -│ Variable (string) tSend -│ Attributes -│ Scope : local -│ Text : -│ Max. Text Size: 50 -│ -│ -Variable (int32) xc1 -│ +Variable (int32) xcR -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) yc1 -│ +Variable (int32) ycR -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) xc2 -│ +Variable (int32) yc2 -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) yc2 -│ +Variable (int32) xc2 -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) ycR -│ +Variable (int32) yc1 -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ -Variable (int32) xcR -│ +Variable (int32) xc1 -│ Attributes -│ Scope: local -│ Value: 0 -│ -│ Text tTime -│ Attributes -│ Scope : local diff --git a/HMI/US/landscape/n2t-out-visual/cardAlarm.txt b/HMI/US/landscape/n2t-out-visual/arm1.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/cardAlarm.txt rename to HMI/US/landscape/n2t-out-visual/arm1.txt index ae5aede3..442e80a1 100644 --- a/HMI/US/landscape/n2t-out-visual/cardAlarm.txt +++ b/HMI/US/landscape/n2t-out-visual/arm1.txt @@ -65,13 +65,6 @@ Page cardAlarm tCode.pco=40179 } -Variable (string) strCommand - Attributes - ID : 6 - Scope : local - Text : - Max. Text Size: 200 - Variable (string) entn Attributes ID : 9 @@ -79,6 +72,13 @@ Variable (string) entn Text : Max. Text Size: 80 +Variable (string) strCommand + Attributes + ID : 6 + Scope : local + Text : + Max. Text Size: 200 + Variable (string) tSend Attributes ID : 25 @@ -121,96 +121,6 @@ Variable (string) vaAddBtn Text : Max. Text Size: 80 -Text tTmp - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 421 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 7 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 114 - y coordinate : 290 - Width : 39 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tCode Attributes ID : 23 @@ -271,6 +181,96 @@ Text tIcon Horizontal Spacing : 0 Vertical Spacing : 0 +Text tId + Attributes + ID : 8 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 114 + y coordinate : 290 + Width : 39 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tInstruction + Attributes + ID : 7 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 15 + y coordinate : 290 + Width : 100 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 20 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tTmp + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 421 + y coordinate : 277 + Width : 34 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Picture p0 Attributes ID : 1 @@ -288,41 +288,47 @@ Picture p0 Effect Time : 300 Picture ID : 0 -Button bNext +Button arm1 Attributes - ID : 3 + ID : 24 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 406 - y coordinate : 16 - Width : 50 + x coordinate : 315 + y coordinate : 91 + Width : 141 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : flat - Font ID : 3 + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 + Font Color (Unpressed) : 1374 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled + Text : + Max. Text Size : 40 + Word wrap : enabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm,bNext" + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va1.txt+"," + tSend.txt+=tCode.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -334,49 +340,49 @@ Button bNext prints sys0,2 prints tSend.txt,0 prints crcval,2 + tCode.txt="" -Button bPrev +Button arm2 Attributes - ID : 4 + ID : 28 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 24 - y coordinate : 16 - Width : 50 + x coordinate : 315 + y coordinate : 152 + Width : 141 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : flat - Font ID : 3 + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 + Font Color (Unpressed) : 1374 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled + Text : + Max. Text Size : 40 + Word wrap : enabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event - tSend.txt="event,buttonPress2,cardAlarm," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va2.txt+"," + tSend.txt+=tCode.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -388,6 +394,115 @@ Button bPrev prints sys0,2 prints tSend.txt,0 prints crcval,2 + tCode.txt="" + +Button arm3 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 315 + y coordinate : 210 + Width : 140 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va3.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" + +Button arm4 + Attributes + ID : 29 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 315 + y coordinate : 266 + Width : 141 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + // event,buttonPress2,entn,arm1,tCode + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+=va4.txt+"," + tSend.txt+=tCode.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + tCode.txt="" Button b0 Attributes @@ -465,6 +580,82 @@ Button b1 Touch Press Event tCode.txt=tCode.txt+"2" +Button b10 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 133 + y coordinate : 266 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : 0 + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt=tCode.txt+"0" + +Button b11 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 224 + y coordinate : 266 + Width : 75 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : border + Border Color : 6371 + Border Width : 0 + Font ID : 2 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 1374 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : CLR + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tCode.txt="" + Button b2 Attributes ID : 14 @@ -789,35 +980,33 @@ Button b9 prints crcval,2 tCode.txt="" -Button b10 +Button bNext Attributes - ID : 22 + ID : 3 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 133 - y coordinate : 266 - Width : 75 + x coordinate : 406 + y coordinate : 16 + Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 + Style : flat + Font ID : 3 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 + Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text : 0 + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -825,49 +1014,7 @@ Button b10 Events Touch Press Event - tCode.txt=tCode.txt+"0" - -Button arm1 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 315 - y coordinate : 91 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va1.txt+"," - tSend.txt+=tCode.txt + tSend.txt="event,buttonPress2,cardAlarm,bNext" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -879,199 +1026,34 @@ Button arm1 prints sys0,2 prints tSend.txt,0 prints crcval,2 - tCode.txt="" -Button arm3 +Button bPrev Attributes - ID : 27 + ID : 4 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 315 - y coordinate : 210 - Width : 140 + x coordinate : 24 + y coordinate : 16 + Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 + Style : flat + Font ID : 3 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 + Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va3.txt+"," - tSend.txt+=tCode.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - tCode.txt="" - -Button arm2 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 315 - y coordinate : 152 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va2.txt+"," - tSend.txt+=tCode.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - tCode.txt="" - -Button arm4 - Attributes - ID : 29 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 315 - y coordinate : 266 - Width : 141 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - // event,buttonPress2,entn,arm1,tCode - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - tSend.txt+=va4.txt+"," - tSend.txt+=tCode.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - tCode.txt="" - -Button b11 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 224 - y coordinate : 266 - Width : 75 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : border - Border Color : 6371 - Border Width : 0 - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 1374 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : CLR + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1079,7 +1061,25 @@ Button b11 Events Touch Press Event - tCode.txt="" + tSend.txt="event,buttonPress2,cardAlarm," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 Hotspot mSwipeNext Attributes @@ -1101,6 +1101,26 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 +Hotspot mSwipePrev + Attributes + ID : 37 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 0 + y coordinate : 5 + Width : 8 + Height : 310 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Hotspot mSwipeUp Attributes ID : 36 @@ -1121,25 +1141,24 @@ Hotspot mSwipeUp Touch Press Event click bPrev,1 -Hotspot mSwipePrev +Timer tmFlash Attributes - ID : 37 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 5 - Width : 8 - Height : 310 - Effect : load - Effect Priority : 0 - Effect Time : 300 + ID : 34 + Scope : local + Period (ms): 600 + Enabled : no Events - Touch Press Event - click bPrev,1 + Timer Event + if(tIcon.isbr==1) + { + tIcon.isbr=0 + vis tIcon,0 + }else + { + tIcon.isbr=1 + vis tIcon,1 + } Timer tmSerial Attributes @@ -1468,25 +1487,6 @@ Timer tmSleep } } -Timer tmFlash - Attributes - ID : 34 - Scope : local - Period (ms): 600 - Enabled : no - - Events - Timer Event - if(tIcon.isbr==1) - { - tIcon.isbr=0 - vis tIcon,0 - }else - { - tIcon.isbr=1 - vis tIcon,1 - } - TouchCap tc0 Attributes ID : 11 diff --git a/HMI/US/landscape/n2t-out-visual/popupThermo.txt b/HMI/US/landscape/n2t-out-visual/b0.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/popupThermo.txt rename to HMI/US/landscape/n2t-out-visual/b0.txt index d2ef381d..8d3f6b60 100644 --- a/HMI/US/landscape/n2t-out-visual/popupThermo.txt +++ b/HMI/US/landscape/n2t-out-visual/b0.txt @@ -64,13 +64,6 @@ Page popupThermo } } -Variable (string) strCommand - Attributes - ID : 8 - Scope : local - Text : - Max. Text Size: 500 - Variable (string) entn Attributes ID : 9 @@ -90,25 +83,26 @@ Variable (int32) mode_temp Scope: local Value: 0 -Variable (int32) vaModePos +Variable (string) strCommand Attributes - ID : 17 - Scope: local - Value: 0 - -Variable (string) vaModeList - Attributes - ID : 18 + ID : 8 Scope : local Text : - Max. Text Size: 400 + Max. Text Size: 500 -Variable (string) vaModeCur +Variable (string) tId Attributes - ID : 19 + ID : 23 Scope : local Text : - Max. Text Size: 40 + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 22 + Scope : local + Text : + Max. Text Size: 20 Variable (string) tSend Attributes @@ -124,32 +118,12 @@ Variable (string) tTmp Text : Max. Text Size: 80 -Variable (string) tInstruction +Variable (string) vaModeCur Attributes - ID : 22 + ID : 19 Scope : local Text : - Max. Text Size: 20 - -Variable (string) tId - Attributes - ID : 23 - Scope : local - Text : - Max. Text Size: 20 - -Variable (int32) vaModePos2 - Attributes - ID : 35 - Scope: local - Value: 0 - -Variable (string) vaModeList2 - Attributes - ID : 36 - Scope : local - Text : - Max. Text Size: 400 + Max. Text Size: 40 Variable (string) vaModeCur2 Attributes @@ -165,6 +139,20 @@ Variable (string) vaModeCur3 Text : Max. Text Size: 40 +Variable (string) vaModeList + Attributes + ID : 18 + Scope : local + Text : + Max. Text Size: 400 + +Variable (string) vaModeList2 + Attributes + ID : 36 + Scope : local + Text : + Max. Text Size: 400 + Variable (string) vaModeList3 Attributes ID : 39 @@ -172,6 +160,18 @@ Variable (string) vaModeList3 Text : Max. Text Size: 400 +Variable (int32) vaModePos + Attributes + ID : 17 + Scope: local + Value: 0 + +Variable (int32) vaModePos2 + Attributes + ID : 35 + Scope: local + Value: 0 + Variable (int32) vaModePos3 Attributes ID : 40 @@ -199,66 +199,6 @@ Variable (string) vaType3 Text : Max. Text Size: 20 -Text tEntity - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 109 - y coordinate : 21 - Width : 263 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon1 - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 28 - y coordinate : 21 - Width : 45 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 6371 - Font Color : 17299 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text heading1 Attributes ID : 24 @@ -349,6 +289,66 @@ Text heading3 Horizontal Spacing : 0 Vertical Spacing : 0 +Text tEntity + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 109 + y coordinate : 21 + Width : 263 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : left + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 25 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tIcon1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 21 + Width : 45 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 1 + Back. Color : 6371 + Font Color : 17299 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Picture p0 Attributes ID : 1 @@ -465,58 +465,6 @@ Button bMode1 prints tSend.txt,0 prints crcval,2 -Button bMode3 - Attributes - ID : 14 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 276 - y coordinate : 101 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Button bMode2 Attributes ID : 15 @@ -569,6 +517,58 @@ Button bMode2 prints tSend.txt,0 prints crcval,2 +Button bMode3 + Attributes + ID : 14 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 276 + y coordinate : 101 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button bModeNext Attributes ID : 16 @@ -640,6 +640,162 @@ Button bModeNext bMode3.pco=1374 } +Button cMode1 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 187 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos2.val-3 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button cMode2 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 152 + y coordinate : 187 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos2.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button cMode3 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 276 + y coordinate : 187 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos2.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Button cModeNext Attributes ID : 25 @@ -710,120 +866,16 @@ Button cModeNext cMode3.pco=1374 } -Button cMode3 +Button dMode1 Attributes - ID : 26 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 276 - y coordinate : 187 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button cMode2 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 152 - y coordinate : 187 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-2 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button cMode1 - Attributes - ID : 28 + ID : 33 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 28 - y coordinate : 187 + y coordinate : 268 Width : 120 Height : 35 Effect : load @@ -851,9 +903,113 @@ Button cMode1 //craft command tSend.txt="event,buttonPress2," tSend.txt+=entn.txt+"," - sys2=vaModePos2.val-3 + sys2=vaModePos3.val-3 covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType2.txt+","+tTmp.txt + tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button dMode2 + Attributes + ID : 32 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 152 + y coordinate : 268 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos3.val-2 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button dMode3 + Attributes + ID : 31 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 276 + y coordinate : 268 + Width : 120 + Height : 35 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 0 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + sys2=vaModePos3.val-1 + covx sys2,tTmp.txt,0,0 + tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -936,181 +1092,16 @@ Button dModeNext dMode3.pco=1374 } -Button dMode3 +Timer tmCooldown Attributes - ID : 31 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 276 - y coordinate : 268 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-1 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button dMode2 - Attributes - ID : 32 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 152 - y coordinate : 268 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-2 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button dMode1 - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 28 - y coordinate : 268 - Width : 120 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 0 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2," - tSend.txt+=entn.txt+"," - sys2=vaModePos3.val-3 - covx sys2,tTmp.txt,0,0 - tSend.txt+="mode-"+vaType3.txt+","+tTmp.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 6 + ID : 12 Scope : local - Period (ms): 1000 - Enabled : yes + Period (ms): 100 + Enabled : no Events Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } + tmCooldown.en=0 Timer tmSerial Attributes @@ -1394,16 +1385,25 @@ Timer tmSerial } } -Timer tmCooldown +Timer tmSleep Attributes - ID : 12 + ID : 6 Scope : local - Period (ms): 100 - Enabled : no + Period (ms): 1000 + Enabled : yes Events Timer Event - tmCooldown.en=0 + if(sleepTimeout!=0) + { + sleepValue+=1 + if(sleepTimeout<=sleepValue) + { + sleepValue=0 + click b0,1 + click b0,0 + } + } TouchCap tc0 Attributes diff --git a/HMI/US/landscape/n2t-out-visual/cardEntities.txt b/HMI/US/landscape/n2t-out-visual/bDown1.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/cardEntities.txt rename to HMI/US/landscape/n2t-out-visual/bDown1.txt index 8d7cac4d..b5ac11a2 100644 --- a/HMI/US/landscape/n2t-out-visual/cardEntities.txt +++ b/HMI/US/landscape/n2t-out-visual/bDown1.txt @@ -94,41 +94,6 @@ Page cardEntities } } -Variable (string) strCommand - Attributes - ID : 27 - Scope : local - Text : - Max. Text Size: 500 - -Variable (string) type1 - Attributes - ID : 40 - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type2 - Attributes - ID : 41 - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type3 - Attributes - ID : 42 - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) type4 - Attributes - ID : 43 - Scope : local - Text : - Max. Text Size: 10 - Variable (string) entn1 Attributes ID : 44 @@ -157,6 +122,13 @@ Variable (string) entn4 Text : Max. Text Size: 80 +Variable (string) strCommand + Attributes + ID : 27 + Scope : local + Text : + Max. Text Size: 500 + Variable (string) tSend Attributes ID : 64 @@ -164,6 +136,34 @@ Variable (string) tSend Text : Max. Text Size: 200 +Variable (string) type1 + Attributes + ID : 40 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) type2 + Attributes + ID : 41 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) type3 + Attributes + ID : 42 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) type4 + Attributes + ID : 43 + Scope : local + Text : + Max. Text Size: 10 + Number nNum1 Attributes ID : 53 @@ -284,36 +284,6 @@ Number nNum4 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tHeading - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 126 - y coordinate : 26 - Width : 227 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tEntity1 Attributes ID : 3 @@ -434,6 +404,36 @@ Text tEntity4 Horizontal Spacing : 0 Vertical Spacing : 0 +Text tHeading + Attributes + ID : 2 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 126 + y coordinate : 26 + Width : 227 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Text tIcon1 Attributes ID : 7 @@ -554,17 +554,17 @@ Text tIcon4 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tTmp +Text tId Attributes - ID : 28 + ID : 31 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 409 - y coordinate : 289 - Width : 34 + x coordinate : 114 + y coordinate : 290 + Width : 39 Height : 30 Effect : load Effect Priority : 0 @@ -579,7 +579,7 @@ Text tTmp Vertical Alignment : center Input Type : character Text : - Max. Text Size : 10 + Max. Text Size : 50 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -614,17 +614,17 @@ Text tInstruction Horizontal Spacing : 0 Vertical Spacing : 0 -Text tId +Text tTmp Attributes - ID : 31 + ID : 28 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 114 - y coordinate : 290 - Width : 39 + x coordinate : 409 + y coordinate : 289 + Width : 34 Height : 30 Effect : load Effect Priority : 0 @@ -639,7 +639,7 @@ Text tId Vertical Alignment : center Input Type : character Text : - Max. Text Size : 50 + Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 @@ -880,16 +880,16 @@ Button bDown1 prints tSend.txt,0 prints crcval,2 -Button bUp1 +Button bDown2 Attributes - ID : 12 + ID : 15 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 290 - y coordinate : 75 + x coordinate : 392 + y coordinate : 131 Width : 50 Height : 50 Effect : load @@ -906,7 +906,7 @@ Button bUp1 Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -914,7 +914,202 @@ Button bUp1 Events Touch Press Event - tSend.txt="event,buttonPress2,"+entn1.txt+",up" + tSend.txt="event,buttonPress2,"+entn2.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bDown3 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 393 + y coordinate : 185 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn3.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bDown4 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 392 + y coordinate : 241 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn4.txt+",down" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bNext + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 406 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardEntities,bNext" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bPrev + Attributes + ID : 32 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 24 + y coordinate : 16 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,cardEntities," + if(bPrev.txt=="") + { + tSend.txt+="bUp" + }else + { + tSend.txt+="bPrev" + } //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC @@ -1021,100 +1216,6 @@ Button bStop2 prints tSend.txt,0 prints crcval,2 -Button bDown2 - Attributes - ID : 15 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 392 - y coordinate : 131 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn2.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp2 - Attributes - ID : 16 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 132 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn2.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Button bStop3 Attributes ID : 17 @@ -1162,100 +1263,6 @@ Button bStop3 prints tSend.txt,0 prints crcval,2 -Button bDown3 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 393 - y coordinate : 185 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn3.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp3 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 186 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn3.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Button bStop4 Attributes ID : 20 @@ -1303,201 +1310,6 @@ Button bStop4 prints tSend.txt,0 prints crcval,2 -Button bDown4 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 392 - y coordinate : 241 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn4.txt+",down" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bUp4 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 290 - y coordinate : 242 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,"+entn4.txt+",up" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bPrev - Attributes - ID : 32 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardEntities," - if(bPrev.txt=="") - { - tSend.txt+="bUp" - }else - { - tSend.txt+="bPrev" - } - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button bNext - Attributes - ID : 33 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 406 - y coordinate : 16 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - tSend.txt="event,buttonPress2,cardEntities,bNext" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - Button bText1 Attributes ID : 60 @@ -1686,6 +1498,194 @@ Button bText4 prints tSend.txt,0 prints crcval,2 +Button bUp1 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 75 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn1.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp2 + Attributes + ID : 16 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 132 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn2.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp3 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 186 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn3.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Button bUp4 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 290 + y coordinate : 242 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 14823 + Font Color (Unpressed) : 65535 + Font Color (Pressed) : 65535 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + tSend.txt="event,buttonPress2,"+entn4.txt+",up" + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + Dual-state Button btOnOff1 Attributes ID : 23 @@ -1866,68 +1866,42 @@ Dual-state Button btOnOff4 prints tSend.txt,0 prints crcval,2 -Hotspot mSpecial +Hotspot m0 Attributes - ID : 34 + ID : 38 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 323 - y coordinate : 0 - Width : 83 - Height : 67 + x coordinate : 37 + y coordinate : 70 + Width : 237 + Height : 56 Effect : load Effect Priority : 0 Effect Time : 300 Events Touch Press Event - sys2=sys2+1 - sys2%=10 - //n0.val=sys2 - if(sys2==9) + pageIcons.tTmp1.txt=tEntity1.txt + pageIcons.tTmp2.txt=entn1.txt + pageIcons.tTmp3.txt=tIcon1.txt + if(type1.txt=="shutter") { - page pageTest - } - -Hotspot m2 - Attributes - ID : 36 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 40 - y coordinate : 184 - Width : 235 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - pageIcons.tTmp1.txt=tEntity3.txt - pageIcons.tTmp2.txt=entn3.txt - pageIcons.tTmp3.txt=tIcon3.txt - if(type3.txt=="shutter") - { - //popupShutter.tHeading.txt=tEntity3.txt + //popupShutter.tHeading.txt=tEntity1.txt page popupShutter } - if(type3.txt=="light") + if(type1.txt=="light") { - //popupLight.tEntity.txt=tEntity3.txt + //popupLight.tEntity.txt=tEntity1.txt page popupLight } - if(type3.txt=="fan") + if(type1.txt=="fan") { page popupFan } - if(type3.txt=="input_sel") + if(type1.txt=="input_sel") { page popupInSel } @@ -1972,42 +1946,42 @@ Hotspot m1 page popupInSel } -Hotspot m0 +Hotspot m2 Attributes - ID : 38 + ID : 36 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 37 - y coordinate : 70 - Width : 237 - Height : 56 + x coordinate : 40 + y coordinate : 184 + Width : 235 + Height : 60 Effect : load Effect Priority : 0 Effect Time : 300 Events Touch Press Event - pageIcons.tTmp1.txt=tEntity1.txt - pageIcons.tTmp2.txt=entn1.txt - pageIcons.tTmp3.txt=tIcon1.txt - if(type1.txt=="shutter") + pageIcons.tTmp1.txt=tEntity3.txt + pageIcons.tTmp2.txt=entn3.txt + pageIcons.tTmp3.txt=tIcon3.txt + if(type3.txt=="shutter") { - //popupShutter.tHeading.txt=tEntity1.txt + //popupShutter.tHeading.txt=tEntity3.txt page popupShutter } - if(type1.txt=="light") + if(type3.txt=="light") { - //popupLight.tEntity.txt=tEntity1.txt + //popupLight.tEntity.txt=tEntity3.txt page popupLight } - if(type1.txt=="fan") + if(type3.txt=="fan") { page popupFan } - if(type1.txt=="input_sel") + if(type3.txt=="input_sel") { page popupInSel } @@ -2052,6 +2026,32 @@ Hotspot m3 page popupInSel } +Hotspot mSpecial + Attributes + ID : 34 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 323 + y coordinate : 0 + Width : 83 + Height : 67 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + sys2=sys2+1 + sys2%=10 + //n0.val=sys2 + if(sys2==9) + { + page pageTest + } + Hotspot mSwipeNext Attributes ID : 57 @@ -2072,26 +2072,6 @@ Hotspot mSwipeNext Touch Press Event click bNext,1 -Hotspot mSwipeUp - Attributes - ID : 58 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 25 - y coordinate : 0 - Width : 425 - Height : 7 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - click bPrev,1 - Hotspot mSwipePrev Attributes ID : 59 @@ -2112,6 +2092,26 @@ Hotspot mSwipePrev Touch Press Event click bPrev,1 +Hotspot mSwipeUp + Attributes + ID : 58 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 25 + y coordinate : 0 + Width : 425 + Height : 7 + Effect : load + Effect Priority : 0 + Effect Time : 300 + + Events + Touch Press Event + click bPrev,1 + Timer tmSerial Attributes ID : 29 diff --git a/HMI/US/landscape/n2t-out-visual/cardThermo.txt b/HMI/US/landscape/n2t-out-visual/bDown2.txt similarity index 100% rename from HMI/US/landscape/n2t-out-visual/cardThermo.txt rename to HMI/US/landscape/n2t-out-visual/bDown2.txt index 19fda02d..5fcef332 100644 --- a/HMI/US/landscape/n2t-out-visual/cardThermo.txt +++ b/HMI/US/landscape/n2t-out-visual/bDown2.txt @@ -65,6 +65,13 @@ Page cardThermo } } +Variable (string) entn + Attributes + ID : 14 + Scope : local + Text : + Max. Text Size: 80 + Variable (string) strCommand Attributes ID : 4 @@ -72,12 +79,33 @@ Variable (string) strCommand Text : Max. Text Size: 250 -Variable (string) entn +Variable (string) tId Attributes - ID : 14 + ID : 44 Scope : local Text : - Max. Text Size: 80 + Max. Text Size: 20 + +Variable (string) tInstruction + Attributes + ID : 43 + Scope : local + Text : + Max. Text Size: 20 + +Variable (string) tSend + Attributes + ID : 46 + Scope : local + Text : + Max. Text Size: 200 + +Variable (string) tTmp + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 10 Variable (string) va0 Attributes @@ -135,33 +163,35 @@ Variable (string) va7 Text : Max. Text Size: 10 -Variable (string) tInstruction +XFloat xTempDest Attributes - ID : 43 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tId - Attributes - ID : 44 - Scope : local - Text : - Max. Text Size: 20 - -Variable (string) tTmp - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 10 - -Variable (string) tSend - Attributes - ID : 46 - Scope : local - Text : - Max. Text Size: 200 + ID : 48 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 236 + y coordinate : 119 + Width : 120 + Height : 60 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Value : 0 + Significant digits left : 0 + Significant digits right : 1 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 XFloat xTempDest1 Attributes @@ -193,27 +223,27 @@ XFloat xTempDest1 Horizontal Spacing : 0 Vertical Spacing : 0 -XFloat xTempMin1 +XFloat xTempDest2 Attributes - ID : 9 + ID : 41 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 398 - y coordinate : 71 - Width : 50 - Height : 22 + x coordinate : 157 + y coordinate : 118 + Width : 120 + Height : 60 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 + Font ID : 4 + Back. Color : 6371 + Font Color : 65535 Horizontal Alignment : center Vertical Alignment : center Value : 0 @@ -253,6 +283,36 @@ XFloat xTempMax1 Horizontal Spacing : 0 Vertical Spacing : 0 +XFloat xTempMin1 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 398 + y coordinate : 71 + Width : 50 + Height : 22 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 65535 + Font Color : 0 + Horizontal Alignment : center + Vertical Alignment : center + Value : 0 + Significant digits left : 0 + Significant digits right : 1 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + XFloat xTempStep1 Attributes ID : 11 @@ -283,77 +343,17 @@ XFloat xTempStep1 Horizontal Spacing : 0 Vertical Spacing : 0 -XFloat xTempDest2 +Text tCF Attributes - ID : 41 + ID : 50 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 157 - y coordinate : 118 - Width : 120 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Value : 0 - Significant digits left : 0 - Significant digits right : 1 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -XFloat xTempDest - Attributes - ID : 48 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 236 - y coordinate : 119 - Width : 120 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Value : 0 - Significant digits left : 0 - Significant digits right : 1 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 5 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 79 - y coordinate : 26 - Width : 320 + x coordinate : 357 + y coordinate : 116 + Width : 25 Height : 30 Effect : load Effect Priority : 0 @@ -361,48 +361,18 @@ Text tHeading Fill : solid color Style : flat Associated Keyboard : none - Font ID : 2 + Font ID : 1 Back. Color : 6371 Font Color : 65535 Horizontal Alignment : center Vertical Alignment : center Input Type : character - Text : - Max. Text Size : 40 + Text :  + Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 -Text tStatus - Attributes - ID : 6 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 26 - y coordinate : 190 - Width : 115 - Height : 54 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 50712 - Horizontal Alignment : center - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tCF1 Attributes ID : 7 @@ -433,66 +403,6 @@ Text tCF1 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tCurTempLbl - Attributes - ID : 37 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 28 - y coordinate : 85 - Width : 115 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : Currently - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tStateLbl - Attributes - ID : 38 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 156 - Width : 115 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : State - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tCF2 Attributes ID : 40 @@ -523,36 +433,6 @@ Text tCF2 Horizontal Spacing : 0 Vertical Spacing : 0 -Text tCF - Attributes - ID : 50 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 357 - y coordinate : 116 - Width : 25 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - Text tCurTemp Attributes ID : 51 @@ -583,6 +463,126 @@ Text tCurTemp Horizontal Spacing : 0 Vertical Spacing : 0 +Text tCurTempLbl + Attributes + ID : 37 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 28 + y coordinate : 85 + Width : 115 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : Currently + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tHeading + Attributes + ID : 5 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 79 + y coordinate : 26 + Width : 320 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 2 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tStateLbl + Attributes + ID : 38 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 27 + y coordinate : 156 + Width : 115 + Height : 30 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 65535 + Horizontal Alignment : center + Vertical Alignment : center + Input Type : character + Text : State + Max. Text Size : 30 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + +Text tStatus + Attributes + ID : 6 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 26 + y coordinate : 190 + Width : 115 + Height : 54 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Associated Keyboard : none + Font ID : 0 + Back. Color : 6371 + Font Color : 50712 + Horizontal Alignment : center + Vertical Alignment : top + Input Type : character + Text : + Max. Text Size : 40 + Word wrap : enabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + Picture p0 Attributes ID : 1 @@ -701,468 +701,15 @@ Button bPrev prints tSend.txt,0 prints crcval,2 -Dual-state Button bt0 +Dual-state Button bDown2 Attributes - ID : 16 + ID : 42 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 18 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va0.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt2 - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va2.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt4 - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 242 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va4.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt6 - Attributes - ID : 19 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 354 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va6.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt1 - Attributes - ID : 20 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 74 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va1.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt3 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 186 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va3.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt5 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 298 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va5.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button bt7 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 410 - y coordinate : 255 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 64512 - Horizontal Alignment : center - Vertical Alignment : center - State : pressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - //craft command - tSend.txt="event,buttonPress2,"+entn.txt - tSend.txt+=",hvac_action,"+va7.txt - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Dual-state Button btUp1 - Attributes - ID : 32 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 346 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 3 - Back. Color (Unpressed) : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 6371 - Font Color (Unpressed) : 50712 - Font Color (Pressed) : 50712 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - if(xTempDest1.valxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +823,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 42 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 193 + x coordinate : 18 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 74 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 130 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 186 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 242 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 298 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 354 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 410 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 199 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 49 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 272 + y coordinate : 180 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 346 y coordinate : 179 Width : 50 Height : 50 @@ -1310,9 +1345,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1430,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 49 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 272 - y coordinate : 180 + x coordinate : 346 + y coordinate : 67 Width : 50 Height : 50 Effect : load @@ -1421,7 +1456,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1464,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/landscape/n2t-out-visual/popupNotify.txt b/HMI/US/landscape/n2t-out-visual/popupNotify.txt deleted file mode 100644 index 3f63ad0f..00000000 --- a/HMI/US/landscape/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 421 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 115 - y coordinate : 290 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 26 - Width : 345 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 74 - Width : 397 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 150 - y coordinate : 74 - Width : 285 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 74 - Width : 109 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 480 - Height : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 412 - y coordinate : 8 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 254 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 39 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +417,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +661,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +760,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/landscape/n2t-out/popupNotify.txt b/HMI/US/landscape/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/US/landscape/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosh0.maxval) +│ - { +│ - h0.val=h0.minval +│ - } +│ - if(sys0h1.maxval) +│ - { +│ - h1.val=h1.minval +│ - } +│ - if(sys0h2.maxval) +│ - { +│ - h2.val=h2.minval +│ - } +│ - if(sys0h3.maxval) +│ - { +│ - h3.val=h3.minval +│ - } +│ - if(sys0h4.maxval) +│ - { +│ - h4.val=h4.minval +│ - } +│ - if(sys0h5.maxval) +│ - { +│ - h5.val=h5.minval +│ - } +│ - if(sys0h0.maxval) ++ { ++ h0.val=h0.minval ++ } ++ if(sys0h1.maxval) ++ { ++ h1.val=h1.minval ++ } ++ if(sys0h2.maxval) ++ { ++ h2.val=h2.minval ++ } ++ if(sys0h3.maxval) ++ { ++ h3.val=h3.minval ++ } ++ if(sys0h4.maxval) ++ { ++ h4.val=h4.minval ++ } ++ if(sys0h5.maxval) ++ { ++ h5.val=h5.minval ++ } ++ if(sys0xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +823,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 39 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 57 + x coordinate : 36 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 102 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 168 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 234 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 36 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 102 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 168 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 234 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 267 + y coordinate : 306 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 46 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 136 + y coordinate : 289 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 210 y coordinate : 288 Width : 50 Height : 50 @@ -1310,9 +1345,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1430,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 46 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 136 - y coordinate : 289 + x coordinate : 210 + y coordinate : 176 Width : 50 Height : 50 Effect : load @@ -1421,7 +1456,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1464,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/portrait/n2t-out-visual/popupNotify.txt b/HMI/US/portrait/n2t-out-visual/popupNotify.txt deleted file mode 100644 index cb3e696c..00000000 --- a/HMI/US/portrait/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 281 - y coordinate : 409 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 13 - y coordinate : 409 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 113 - y coordinate : 410 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 5 - y coordinate : 21 - Width : 260 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 4 - y coordinate : 76 - Width : 307 - Height : 260 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 4 - y coordinate : 164 - Width : 306 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 3 - y coordinate : 74 - Width : 308 - Height : 90 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 319 - Height : 479 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 268 - y coordinate : 14 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 162 - y coordinate : 348 - Width : 150 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 5 - y coordinate : 348 - Width : 150 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +417,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +661,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +760,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/portrait/n2t-out/popupNotify.txt b/HMI/US/portrait/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/US/portrait/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +823,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 42 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 178 + x coordinate : 12 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 66 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 120 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 174 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 228 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 282 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 336 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 390 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 391 + y coordinate : 200 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 49 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 257 + y coordinate : 180 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 331 y coordinate : 179 Width : 50 Height : 50 @@ -1310,9 +1345,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1430,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 49 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 257 - y coordinate : 180 + x coordinate : 331 + y coordinate : 67 Width : 50 Height : 50 Effect : load @@ -1421,7 +1456,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1464,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/n2t-out-visual/popupNotify.txt b/HMI/n2t-out-visual/popupNotify.txt deleted file mode 100644 index 86f1cd78..00000000 --- a/HMI/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 406 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 100 - y coordinate : 290 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 26 - Width : 345 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 74 - Width : 397 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 135 - y coordinate : 74 - Width : 285 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 74 - Width : 109 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 480 - Height : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 397 - y coordinate : 8 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 239 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +417,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +661,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +760,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,sleepTimeout,0,0 - } - if(tInstruction.txt=="pageType") - { - //command format pageType,specialPageName - //write name of speical page to tId - spstr strCommand.txt,tId.txt,"~",1 - //save second arg if there's one - spstr strCommand.txt,tTmp.txt,"~",2 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ... - udelete payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/n2t-out/popupNotify.txt b/HMI/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos