- Видео 5
- Просмотров 8 095
Idustrial Control Engineering
Россия
Добавлен 6 июл 2022
Channel about industrial automation, HMI, SCADA and robotics
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...
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
Tried to sign up for your site but It just registered as an error . great video , thank you.
Thank you for your feedback. Could you please write to support@svghmi.pro and describe the problem?
@@industrial_control I sent a message on your svghmi pro site.
Hello! Thanks for your insightful videos! How can I manage to change the color of a svghmi when the mouse action onHover is triggered?
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.
@@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.
@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.
@@industrial_control, may I contact you in private?
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.
We have the problem, that only png files are well showing, not svgs.. svgs are ever wit aliasing. any suggestions?
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.
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.🤔
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.
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.
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.
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.
@@industrial_control Thanks a lot. Works like a charm.