Questions tagged [wincc]

SIMATIC WinCC is a SCADA and HMI system from Siemens that comes with VBScript, VBA and ANSI C programming APIs. Questions should only be tagged if directly related to accessing the WinCC API, ideally including the associated programming language tag to give it context.

SIMATIC WinCC is a supervisory control and data acquisition (SCADA) and human-machine interface (HMI) system from Siemens.

It comes with , and programming APIs.

This tag is specific for questions about the WinCC APIs and should be accompanied by a language specific tag to give the programming language context.

48 questions
0
votes
1 answer

How to convert two different CSV files into two sheets in the same Excel workbook?

I have a solution which copies the csv data to excel sheet but it works for only 1 CSV file to 1 Excel sheet. How to transfer multiple CSV files to multiple sheets in Excel? Here is my code: Dim oExcel Set oExcel =…
0
votes
1 answer

How to insert current date and time in sql server using wincc

I am Saving data in SQL server using WINCC but I can't insert my current data and time Help me to solve this Sub OnClick(ByVal Item) Dim objConnection Dim strConnectionString Dim lngValue Dim strSQL Dim…
Annisha
  • 65
  • 9
0
votes
1 answer

Force qt-vlc to don't hide mouse cursor

I'm developing a video stream software, I'm using libvlc and qt-vlc for playing videos from network stream. Everything is good just one problem. When VlcMediaPlayer starts to playing, the mouse pointer hide over VlcWidgetVideo widget. If mouse move…
Hamed Masafi
  • 304
  • 1
  • 8
0
votes
1 answer

SQL query in VBA (ADOdb) script doesn't work

I want to execute query from WinCC SCADA via VBA script. It's simple query, when I execute it on the MS Management Studio - it works well but when i create it in VBA script - it doesn't. sZapytanie = sZapytanie & " WHERE Data >= '" sZapytanie =…
karl
  • 1
0
votes
1 answer

Exporting data from SCADA system

I am trying to create VBscript to export process data from a SCADA system (WinCC RT Professional) to periodically archive all process variables. The data are stored in SQL table that can be accessed through a connectivity pack. I managed to make the…
Mike87
  • 1
  • 3
0
votes
1 answer

WinCC c script read bits from word - general C suggestions

I have a huge problem on my hands and I assume that the cause of it not functioning properly is in my C language knowledge which is, let's face it pretty newbie at best... void * KT_Indirect_CNS(int NumCNS, char *CNSDescr[], char *CNSTag[], int…
Fabio Bologna
  • 43
  • 1
  • 6
0
votes
1 answer

Returning Tagnames when querying Archive Database in WinCC RunTime

I'm developing a VB Script for WinCC RunTime on a SIMATIC PC station to export the historical data of my project once a month. I'm setting up an ADO connection and querying the results into a recordset that I'm printing to a csv. I'm having several…
Sam Weston
  • 128
  • 1
  • 12
0
votes
1 answer

What does the "[u.]" next to the tag value mean in the WinCC value table control?

After having positioned the ruler on the trend view, sometimes the values displayed in the Y value column of the value table are followed by "[u.]" or "[i.]"; what do these mean?
mainvoid
  • 347
  • 1
  • 4
  • 17
0
votes
1 answer

How can I get the runtime data from WinCC7.2 to another computer in the same LAN?

I have installed WinCC in a host computer, and I want to get the data from the runtime databases to another computer which is as a web server so I can build a JSP web to monitor and change the parameter of devices below the Wincc. How can I achieve…
aka.ecc
  • 153
  • 3
  • 12
0
votes
1 answer

Tag prefix Win CC

I am busy with a C script in Siemens WinCC. I would like to open a faceplate on in which I can open other faceplates. Howerver, I would like to use the Tagprefix from the first faceplate in the second. Does anybody have an idea how I can give the…
0
votes
0 answers

How to fix a C # wrapper for C ++?

I am trying to call a function from a dll. Description of the function in C ++: BOOL WINAPI PDLCSGetPropertyEx(LPCTSTR lpszProjectName, LPCTSTR lpszPictureName, LPCTSTR lpszObjectName, LPCTSTR lpszPropName, VARTYPE vt, LPVOID pvProp, DWORD dwFlags,…
devolegf
  • 1
  • 1
0
votes
0 answers

WinCC export screen data to xls/csv

I am using TIA portal V13, with WinCC RT Advanced. I have been given a running project and need to export some values to excel for the client daily, monthly and yearly using a script. I have a screen with a table control that displays values of…
faysvas
  • 1
  • 1
  • 5
-1
votes
1 answer

How do i write a way to "backspace" a line in a text document

Im creating scripts in WinCC unified where javascript is used, i have some code which finds specific 3 lines in a text file and deletes the values there, it works but i wish to also basicaly delete the whole line, as if you were to press backspace…
Pavel
  • 1
  • 1
-1
votes
1 answer

C# - Call C DLL function synchronous

I'm trying to call a dll function in C# with a paramter that is mentioned in the documentation as "...If pfn = NULL is passed, the call is synchronous. ". I'm actually passing NULL (IntPtr.Zero) to it, so the method should be called synchronous. Now…
-1
votes
2 answers

Get data from Excel with VBS

I have an Excel file like this : This file can have more than two group. In VBScript (for Siemens WinCC) I want to collect data by group (one visual array). With object and recordset I can browse all the file but how can I get only number value by…