Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A select element as custom web control for WinCC Unified

Notifications You must be signed in to change notification settings

David-PLC/CWC-Select-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

Select element CWC made for WinCC Unified

Icon

1. CONTENT

HTML sleect element

2. INTERFACE

  • rows : Array of element to show in the drop-down list
 // Example
 rows: [["element1"], ["element2"], ["element3"], ["element4"]]
  • current : Name of the element to be shown as default (leave empty to disable)
 // Example
 current: "element1"

3. EVENTS

  • ev_selectElement : This event is triggerd every time an user interact with the dop down element, as a result in the "rowId" object
 // Example
 rowId : "element2"

4. USAGE

  • OFFLINE MODE

    • You can test the behavior of the chart with custom data by setting "production" to false
    • Now you can change all the data from "WebCC.Properties"
    var production = false;
    //...
    WebCC.Properties = {
     current: "element1",
     rows: [
     ["element1"],
     ["element2"],
     ["element3"],
     ["element4"]
     ]
     };
  • ONLINE MODE (WinCC Unfied)

    • Set "production" to true
    var production = true;
    • To import the custom web control the hierarchy of folders and files must be compressed in ZIP format.
    • The name of the ZIP must be the GUID used the "manifest.json" file surrounded by curly brackets
     type": "guid://1B4B9F13-ADBF-49FD-B759-F04DF3647C93",
    • {1B4B9F13-ADBF-49FD-B759-F04DF3647C93}.zip

    • If you want this custom web control available for all your project, copy this file in the folder :

      • C:\Program Files\Siemens\Automation\Portal V17\Data\Hmi\CustomControls
      • replace "Portal V17" with your Tia version.
    • If you want to use this custom web control only in one project copy this file in the folder :

      • \path_to_tia_project\UserFiles
    • Refresh "My controls" to update the files in TIA Portal

    • Now you can place the custom web control in the Screen.

AltStyle によって変換されたページ (->オリジナル) /