Search found 26 matches

Search

by Nikolay
Tue Sep 10, 2019 11:30 am
Forum: HowTos
Topic: C++ dpSet API
Replies: 5
Views: 1022

Re: C++ dpSet API

I don't need c ++ functionality inside wincc shell. Quite the contrary. I need to pass a value from a c ++ program (developed in visual studio or borland builder) to wincc.
by Nikolay
Tue Sep 10, 2019 9:47 am
Forum: HowTos
Topic: C++ dpSet API
Replies: 5
Views: 1022

Re: C++ dpSet API

You understood me wrong. I am writing a program in pure c ++. What libraries do I need to connect and what parameters should I pass to the dpSet function to write to Para? #include "stdio.h" #include "wincc_lib" // ????? int main () { int a = 5; dpSet("dataPoint", a); // ????? return 0; } Please sho...
by Nikolay
Mon Sep 09, 2019 10:35 am
Forum: HowTos
Topic: C++ dpSet API
Replies: 5
Views: 1022

C++ dpSet API

Dear colleagues. There was a need to transfer the value from a program written in the C ++ programming language to the WinCC environment, namely to Para. Tell me, please, is there a simple solution when using the API functions? I found this design in the documentation: dpSet (const DpIdentifier & dp...
by Nikolay
Wed Mar 13, 2019 11:58 am
Forum: HowTos
Topic: Send alarm to external database
Replies: 1
Views: 687

Send alarm to external database

Dear colleagues. There was another question. It is necessary to record all incoming / outgoing / acknowledged alarms in the external database. I think to use the “dpQueryConnectSingle” function, and at the moment only gone and received alarms are returned to the callback function, but there is no re...
by Nikolay
Mon Nov 19, 2018 12:17 pm
Forum: HowTos
Topic: Licensing
Replies: 1
Views: 502

Licensing

Dear colleagues. We have a license in the form of a usb key and file. We need to have the component "update" = 2. Now the "update" = 0. Tell me, is it possible to buy the missing components? Or now the entire license to buy again?
by Nikolay
Mon May 21, 2018 10:11 am
Forum: HowTos
Topic: Socket number (0) illegal or socket not open
Replies: 6
Views: 569

Re: Socket number (0) illegal or socket not open

<r>Our synchronization script with the controllers just sets the conn_state state. The scheme is such that the script checks when the variable conn_state was last changed (stime parameter), and if the difference between the current time and the last time of the conn_state change is more than 150 sec...
by Nikolay
Mon May 21, 2018 9:27 am
Forum: HowTos
Topic: Generating a multi-bit signal
Replies: 1
Views: 322

Generating a multi-bit signal

<r>Dear colleagues. Two single-bit signals come from the controller, one signal is generated on the side of the system's skada, depending on the state of these two signals. The implementation of this function should occur directly in para. Can we help Power config "_dp_fct"? Or is there another eleg...
by Nikolay
Thu May 17, 2018 11:06 am
Forum: HowTos
Topic: Socket number (0) illegal or socket not open
Replies: 6
Views: 569

Re: Socket number (0) illegal or socket not open

A solution is found! It was necessary to write in the file:

/etc/security/limits.conf

The following information:

root hard nofile 500000
root soft nofile 500000

The root user can now use 500,000 files.
by Nikolay
Thu May 17, 2018 10:25 am
Forum: HowTos
Topic: Socket number (0) illegal or socket not open
Replies: 6
Views: 569

Re: Socket number (0) illegal or socket not open

<r>It seems that with the number of available open files everything is all right. I work under the operating system OpenSuse 13.2<br/> <br/> <IMG src="https://www.winccoa.com/fileadmin/images/fbfiles/images/file_limit1.png"><s>[img]</s><URL url="https://www.winccoa.com/fileadmin/images/fbfiles/image...
by Nikolay
Thu May 17, 2018 5:55 am
Forum: HowTos
Topic: Socket number (0) illegal or socket not open
Replies: 6
Views: 569

Socket number (0) illegal or socket not open

<r>Colleagues, hello. Again, we have a problem with the connection of the system to the controllers. This time the error is related to sockets.<br/> <br/> <CODE><s>[code]</s>WCCOActrl (3), 2018.05.16 13: 57: 05.213, CTRL, WARNING, 2 / ctrl, synchronization.ctl Line: 61: tcpWrite: Socket number (0) i...