TIA Portal: Unified Comfort Panel - Only Buttons Javascript

preview_player
Показать описание
Review of buttons, and scripts. Here I found plenty of possibilities with scripting or using the traditional Comfort panel parameterization methods. This allows quite a lot of possibilities. Multiple scripts can be run on multiple properties. No more only calling scripts with on event triggers.

I really like the right-click code snippets available in the JavaScript editor window. This helps me understand what instructions are available without having to go look them up or finger peck my way through them.

0:00 Introduction
0:02 MTP 1200 - Unified Comfort Panel
0:28 Adding in a new HMI
0:52 Deactivate encrypted transfer for this example
1:09 IP address and subnet
1:28 Add start screen
2:26 Note that all system control buttons are finger size appropriate
2:48 Create tags for use
3:14 Details view provides easy access to screen and tags, drag and drop
4:06 Properties for tags or scripts
6:29 Right-click in the text area for pre-defined "Snippets"
9:44 Compile and download
10:17 Synchronous scripts require a tagged trigger
11:17 Create Array tags to change values and colors
12:32 Align the Array tag
14:56 Create Button with dynamic text
16:47 Alarm and Warning Indication test
23:14 Change button colors based on alarm or warning via Javascript
29:35 Change text and color of a button based on alarm and warning
33:19 Use Array to change lo field border color with the event
Рекомендации по теме
Комментарии
Автор

12-14 mins: how can we increase a tag thats in a plc DB, this only seems to work on a hmi internal tag?

tashriqpandy
Автор

When i link mtp-700 with s7-1200 it can show status input and output from plc but when i use button in hmi i can't use button to controll input :( Why ? (sorry im not good english)

mr.kittichartrittirut