Idustrial Control Engineering
Idustrial Control Engineering
  • Видео 5
  • Просмотров 8 095
How to use hmi-bind in WinCC Widgets (TIA Portal)
svghmi.pro - Tool for automatic creation of SVGHMI dynamic widgets
How to dynamic change color, opacity, position attributes? How to use hmi-bind prefix? What does it mean? All answers in this video.
Content
0:57 Create svghmi widget from scratch
4:21 VSCode preferences
5:40 Add figures
7:09 SVG coordinate system explanation
7:33 Coordinates example
8:22 Add header section
9:58 Test widget in TIA Portal
11:44 Attach hmi-bind to coordinate attribute
14:25 Test coordinate changes in TIA Portal
17:12 Create internal variable in "defs" section (Converter.Bounds)
18:45 Change coordinates attachment to percentage
20:42 Test percentage coordinate in TIA Portal
22:42 Attach hmi-bind to "fill" attribute
25:14 At...
Просмотров: 864

Видео

Create SVGHMI widgets for WinCC Unified in One click
Просмотров 2,7 тыс.Год назад
I'll show you how to create svghmi widgets quickly and conveniently using a special web application. You will be able to turn any of your svg Pictures into a stunning SVGHMI widget for WinCC Unified. svghmi.pro
How to convert SVG with gradients to svghmi widget WinCC Unified
Просмотров 814Год назад
From this video you will learn how to convert svg image with gradients to dynamic widget (svghmi) For development environment Siemens TiaPortal V17 WinCC Unfied. Also look at my automatic SVG to SVGHMI converter App: svghmi.pro Matrix transformation Documentation developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform Content 0:00 Intro 2:26 Append gradients 4:10 Change gradientTransform a...
Convert SVG to Dynamic widget WinCC Unified (Optimization)
Просмотров 734Год назад
From this video you will learn how to convert much faster the svg images with inline style elements to attribute style. Visit my fast SVG to SVGHMI converter App: svghmi.pro
How to convert svg to svghmi WinCC Unified (Dynamic Widget)
Просмотров 3 тыс.Год назад
From this video you will learn how to convert svg image into a dynamic widget (svghmi) For development environment Siemens TiaPortal V17 WinCC Unfied Visit my fast SVG to SVGHMI converter App: svghmi.pro

Комментарии

  • @davidjamesmclean6325
    @davidjamesmclean6325 4 месяца назад

    Tried to sign up for your site but It just registered as an error . great video , thank you.

    • @industrial_control
      @industrial_control 4 месяца назад

      Thank you for your feedback. Could you please write to support@svghmi.pro and describe the problem?

    • @davidjamesmclean6325
      @davidjamesmclean6325 4 месяца назад

      @@industrial_control I sent a message on your svghmi pro site.

  • @OYTI3
    @OYTI3 5 месяцев назад

    Hello! Thanks for your insightful videos! How can I manage to change the color of a svghmi when the mouse action onHover is triggered?

    • @industrial_control
      @industrial_control 5 месяцев назад

      Hello! Thank you for your kind word. First of all you should add something like this code to <defs/> section. <hmi:localDef name="MouseHover" type="number" value="0"/> <hmi:action id="onMouseHover"> <hmi:setProperty name="LocalProps.MouseHover" type="number" value="1"/> </hmi:action> <hmi:action id="onMouseLeave"> <hmi:setProperty name="LocalProps.MouseHover" type="number" value="0"/> </hmi:action> Next add next attribute to <g/> tag or <SomeAnotherElement> tag a couple of hover events. <g hmi-event:mouseLeave="url(#onMouseLeave)" hmi-event:mouseHover="url(#onMouseHover)"> And now you can use "LocalProps.MouseHover" in any play to trigger color changing. Also, I can't not mention. That you can simply use the converter svghmi.pro where it is already implemented. You don't even need to open the code editor.

    • @OYTI3
      @OYTI3 5 месяцев назад

      @@industrial_control, hey, thanks! I thought it would end up being easier than this. I've also tried the website you are talking about, but it doesn't work properly with the icons from Google (fonts.google.com/icons). The properties are not being bound to the interface when I tried to upload an icon.

    • @OYTI3
      @OYTI3 5 месяцев назад

      @industrial_control , hey, thanks! I thought it would end up being easier than this. I've also tried the website you are talking about, but it doesn't work properly with the icons from Google (fonts.google.com/icons ). The properties are not being bound to the interface when I tried to upload an icon.

    • @OYTI3
      @OYTI3 5 месяцев назад

      ​@@industrial_control, may I contact you in private?

    • @industrial_control
      @industrial_control 5 месяцев назад

      Very strange, just now specifically went to check some google icons and everything works marvellously. You just need to add an ID to the <path/> elements. Then add "fill connection" and specify the same id. Regarding the hover effect. I would also like to add that I usually add a rectangle as big as the whole viewBox. In order for the hover effect to work correctly and not flicker when you move the cursor from line to line.

  • @miSta1982
    @miSta1982 8 месяцев назад

    We have the problem, that only png files are well showing, not svgs.. svgs are ever wit aliasing. any suggestions?

    • @industrial_control
      @industrial_control 8 месяцев назад

      Good afternoon. It depends on where the problem appears. In the Runtime or in the development environment. Often what does not display well in the TIA Portal development environment displays well in the browser in runtime. You can also add an attribute to the svg. shape-rendering="geometricPrecision" its work can be clearly seen on curved shapes with stroke. Also you can use our converter svghmi.pro it by default solves a lot of problems and we try to improve it constantly.

  • @marladu
    @marladu Год назад

    Nice tool. A few remarks though. Usually Text isn't SVG's strength, but there are some cases when I need a letter or two ;) The Flip does apply to the text too though.... And I haven't planned to provide mirrors to mantenance personnel ;) But that's not all. When I tried to reapply the flip, I realized that my "beautiful" svg code got "minified" (!?) into a single line of code. Not the best editing conditions.🤔

    • @industrial_control
      @industrial_control Год назад

      Thanks for the feedback. This flip is optional. With Letters it's of course problem, but you can manualy exclude letter elements from "flip" group. I haven't encountered it, so it didn't occur to me😊. As for me I don't place text in widgets. I usually place it with WinCC opportunities. Another question about minified code. This is a sensible decision, because it reduces the size of the final file and ultimately has a positive effect on WinCC performance in the browser. Also many code editors have a built-in code formatter. And with a couple of seconds you can easily get formatted svghmi file. But I absolutely believe that it is necessary to develop this tool. And I think I can add an option as a checkbox "minify" file or not. So that a person could decide in what form he wants to get the output file.

  • @marladu
    @marladu Год назад

    This is great and greatly needed. I have on question though: How can you see the svghmi properly formatted and have a preview for it? It only works for me with .svg.

    • @marladu
      @marladu Год назад

      Once it is updated though, the preview doesnt update as long as it is svghmi! therefor the preview is useless. The workflow is working as svg with preview, and before implementing to TIA copying the file and editing the file format to svghmi.

    • @industrial_control
      @industrial_control Год назад

      That's a good question. And solved it in the following way. Go to settings and search for "files associations" -> click "Add item". Then type in item: *.svghmi and in value: svg. Now VSCode considers all files with an svghmi extension as equal to svg. And then preview and code formatting works. This greatly speeds up development.

    • @marladu
      @marladu Год назад

      @@industrial_control Thanks a lot. Works like a charm.