WinCC Unified v17 # 14: JavaScript Expressions & Operators 🧮 ✖️➕➗ #WinCCGURU

preview_player
Показать описание
This is #14 in our WinCC Unified v17 Course. This is a javascript tutorial! Here we cover the basics of WinCC Unified JavaScript language expressions and operators using the Unified Scripting interface. We will cover control flow (if, else, switch), logical and relational operators (and, or, not, equal, etc.). This video is also applicable to any other JavaScript enabled application.

00:00 Introduction
01:04 Update JavaScript Examples Screen
01:18 JavaScript Conditional Expressions
01:34 The JavaScript IF and ELSE IF Statement
04:13 Else If JavaScript Example
06:30 Test In Runtime
07:22 Assignment 2 Conditional Expressions
09:32 Assignment 2 Solution
12:11 JavaScript Switch Case Statement
14:09 The Switch Case code example
16:20 Test Switch Case In Runtime
17:12 Challenge: Write Mode Description
18:20 Secret Pro Tip!!!!
22:26 Challenge: Add Code to change event of IO
23:48 JavaScript Ternary Operator
24:03 Ternary Operator Syntax
24:59 JavaScript Ternary Code example

#WinCC #SCADA #SCADAProgramming
Рекомендации по теме
Комментарии
Автор

Hi winCCGURU, I'm trying to use an HMI label in a LBP library Faceplate and when I type the command "Ctrl + j" I can't access the HMI's own variables. Is there any way to do this?

Thanks for the video, it helped me a lot

TomásCésar-og
Автор

et SpeedTag= Tags("speed").Read();
{
if (SpeedTag>44)
debug.write(item.Name, 'Speed value is very High!!');
}
else {debug.write(item.Name, 'Speed value is very High!!');} what is the mastake why the else statment is giving error?

razimuthmankhail