Scripting With Vbs And Ansi-C - Siemens SIMATIC HMI Series System Manual

Hide thumbs Also See for SIMATIC HMI Series:
Table of Contents

Advertisement

8.8

Scripting with VBS and ANSI-C

Runtime
The performance data can also be influenced by the following factors:
● Hardware used
● Type of configuration
● Running processes, for example, Tag Logging or Alarm Logging
The following measured vales indicate the difference between VB scripting and C scripting
based on the comparison of orientation values.
The following configuration was tested as typical scenario:
Typical configuration
For example: Windows 7 (64-bit), Intel Core i7-2600 (3.4 GHz), 8 GB RAM
The measured values are specified in milliseconds.
Set color of 1 000 rectangles
Set output value of 200 I/O fields
Select a picture with 1 000 static texts which determine the
object name and issue it as return value
Read 1 000 internal tags
Re-read 1 000 internal tags
Conduct 100 000 calculations
1) Calculations in the example:
VBS
For i=1 To 100000
value=Cos(50)*i
Next
ANSI-C
for(i=1;i<=100000;i++)
{
dValue=cos(50)*i;
}
WinCC: General information and installation
System Manual, 02/2017, A5E40840020-AA
1)
Performance Data
8.8 Scripting with VBS and ANSI-C
VBS
ANSI-C
220
1 900
60
170
460
260
920
500
30
120
280
70
217

Advertisement

Table of Contents
loading

Table of Contents