WinCC v7.4 Step By Step #14: Creating VBS Script Function 📜

Опубликовано: 02 Октябрь 2024
на канале: WinCCGURU
3,193
25

This is # 14 in our WinCC v7.4 tutorial Step By Step series, A WinCC Scada programming full course. This video shows you how to create a VBS Script Module (.bmo) and use it in SIMATIC WinCC version 7.4 Graphics Designer. It covers basics of WinCC SCADA VBS scripting. We will create a GetPaintColor() subroutine in the VBS Editor then use it to show the composite color on our Details.PDL screen.
00:00 Introduction
00:29 open VBS and create a new VBS Module
00:41 add VBS Function
00:59 overview of tasks for this function
01:10 Add color tags to script
01:40 create composite variable
01:54 add RGB function call to combine colors
02:07 overview of VBS RGB function
02:28 pass color strength values to RGB
02:55 return composite value from function
03:13 Save VBS module
03:28 Add composite Color block to detail screen
03:42 Add VBS Script to BackColor Property
04:21 add tag triggers for property script
05:17 test vbs script in runtime
05:40 add script to change tank fill color to composite
07:28 add shading factor to VBS Script
09:17 Test in runtime
#scada #scadaprogramming #scadasystem #WinCC #siemens