Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

pvbrowser · process visualization hmi/scada

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 221
  • Category: Web Browsers
  • Founded: May 18, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 784 - 813 of 2239   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#784 From: "digdo R.R." <ddo_snide@...>
Date: Tue Jun 22, 2010 3:05 pm
Subject: button widget background colour on linux
ddo_snide
Send Email Send Email
 
i just run pvBrowser both on windows and linux, and when i run

pvSetPaletteBackgroundColor(p,obj_FRAME_BUTTON_WIN,255,0,0);

my button going red on my Win7,
but it doesn't work when i use pvBrowser on linux(fedora 12),
it still have default colour of button widget.
i wonder if you can solve this problem,
thanks before,
Digdo



#785 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jun 22, 2010 4:41 pm
Subject: Re: button widget background colour on linux
pvbrowser
Send Email Send Email
 
Strange,
i tested on openSUSE, Ubuntu and Windows and i get a red button everywhere.

#786 From: "mur_en" <ernst@...>
Date: Fri Jun 25, 2010 10:52 pm
Subject: Re: button widget background colour on linux
mur_en
Send Email Send Email
 
--- In pvbrowser@yahoogroups.com, "digdo R.R." <ddo_snide@...> wrote:
>
> i just run pvBrowser both on windows and linux, and when i run
>
>
> pvSetPaletteBackgroundColor(p,obj_FRAME_BUTTON_WIN,255,0,0);
>
> my button going red on my Win7,
> but it doesn't work when i use pvBrowser on linux(fedora 12),
> it still have default colour of button widget.

Do you have the default theme of your kde or gnome? Maybe you have a button
style with graphics instead of simple filling?

Regards,
Ernst

#787 From: "mur_en" <ernst@...>
Date: Fri Jun 25, 2010 11:03 pm
Subject: exit of server with pvSetText
mur_en
Send Email Send Email
 
Hello Rainer,

My server exits when at this place:

==7846==    by 0x81A1780: exit (in /home/mur/source/i686_pvbaw/src/pvbawwork)
==7846==    by 0x81026AA: pvThreadFatal(_PARAM_*, char const*) (util.cpp:457)
==7846==    by 0x810366D: pvtcpsend(_PARAM_*, char const*, int) (util.cpp:765)
==7846==    by 0x81181FD: pvSetText(_PARAM_*, int, char const*) (util.cpp:1795)
==7846==    by 0x807FA1A: awSetText(_PARAM_*, int, char const*)
(pvapp_aw.cpp:477)
==7846==    by 0x80B3527: refresh_func4(pvXaw*, awDyn&, _PARAM_*, int,
std::string, DATA&, bool, unsigned int, bool, awTable&) (pv_plant_aw.cpp:6995)
==7846==    by 0x80B3AA1: refresh_func3(pvXaw*, awDyn&, _PARAM_*, int,
std::string, DATA&, bool, unsigned int, bool, awTable&) (pv_plant_aw.cpp:6850)
==7846==    by 0x80B5B0B: refresh_func2(pvXaw*, awDyn&, _PARAM_*, int,
std::string, DATA&, bool, unsigned int, bool, awTable&) (pv_plant_aw.cpp:6018)
==7846==    by 0x80B794D: refresh_func1(pvXaw*, awDyn&, _PARAM_*, int,
std::string, DATA&, bool, unsigned int, bool, awTable&) (pv_plant_aw.cpp:5163)
==7846==    by 0x80B8A64: refresh_func(pvXaw*, awDyn&, _PARAM_*, int,
std::string, DATA&, bool, awTable&) (pv_plant_aw.cpp:4701)
==7846==    by 0x80BAB03: one_cycle(_PARAM_*, awDyn&, pvXaw&, awTable&, bool)
(pv_plant_aw.cpp:1843)


after calling pvSetText with this textstring (shorter and also longer strings
work without problems):

<a href="awi://mnu/go back"><br><big>go back</big></a><br><a
href="awi://mnu/setup..."><br><big>setup...</big></a><br>MeasPoints<br><a
href="awi://mnu/MP 1 (m1)"><br><big>MP 1 (m1)</big></a><br><a href="awi://mnu/MP
2 (m2)"><br><big>MP 2 (m2)</big></a><br><a href="awi://mnu/MP 3
(m3)"><br><big>MP 3 (m3)</big></a><br><a href="awi://mnu/MP 4 (m4)"><br><big>MP
4 (m4)</big></a><br><a href="awi://mnu/MP 5 (m5)"><br><big>MP 5
(m5)</big></a><br><a href="awi://mnu/MP 6 (m6)"><br><big>MP 6
(m6)</big></a><br><a href="awi://mnu/MP 7 (m7)"><br><big>MP 7
(m7)</big></a><br><a href="awi://mnu/MP 8 (m8)"><br><big>MP 8
(m8)</big></a><br><a href="awi://mnu/calibration air
(mluft_cal)"><br><big>calibration air (mluft_cal)</big></a><br><a
href="awi://mnu/calibration gas 1 (m1_cal)"><br><big>calibration gas 1
(m1_cal)</big></a><br><a href="awi://mnu/calibration gas 2
(m2_cal)"><br><big>calibration gas 2 (m2_cal)</big></a><br><a
href="awi://mnu/calibration gas 3 (m3_cal)"><br><big>calibration gas 3
(m3_cal)</big></a><br><hr><br>


The string is 1023 bytes long (1024 including the \0) which is the size of
MAX_PRINTF_LENGTH.

Ernst

#788 From: "mur_en" <ernst@...>
Date: Sat Jun 26, 2010 12:10 am
Subject: Re: exit of server with pvSetText
mur_en
Send Email Send Email
 
I have found the bug:

As the text is 1022 characters long, the program runs into the first "if", where
a '\n' is added...


int pvSetText(PARAM *p, int id, const char *text)
{
   char buf[MAX_PRINTF_LENGTH+40],*cptr;
   int  len;
   mytext(p,text);
   while(1)
   {
     cptr = strchr(p->mytext,'\n');
     if(cptr != NULL) *cptr = 27; // Escape
     else break;
   }
   len = strlen(p->mytext);
   if(len < MAX_PRINTF_LENGTH-1)
   {
     pv_length_check(p,p->mytext);
     //sprintf(buf,"setText(%d,\"%s\")\n",id,p->mytext);
     //pvtcpsend(p, buf, strlen(buf));
     sprintf(buf,"setText(%d)\n",id);
     pvtcpsend(p, buf, strlen(buf));
     sprintf(buf,"%s\n",p->mytext);
     pvtcpsend(p, buf, strlen(buf));
   }
   else
   {
     sprintf(buf,"setText(%d)\n",id);
     pvtcpsend(p, buf, strlen(buf));
     sprintf(buf,"alloc(%d)\n",len);
     pvtcpsend(p, buf, strlen(buf));
     pvtcpsend_binary(p, p->mytext, len);
   }
   return 0;
}



... and thus the buf becomes 1023 characters.
But now the pvThreadFatal is called:



/* send a packet to tcp or a file with range check */
int pvtcpsend(PARAM *p, const char *buf, int len)
{
   // mur was here:
   // old version: if(len >= MAX_PRINTF_LENGTH -1)
   // new version:
   if(len >= MAX_PRINTF_LENGTH)
   {
     char message[80];
     strncpy(message,buf,10);
     message[10] = '\0';
     strcat(message,"... is too long -> exit");
     if(p->os != -2) pvThreadFatal(p,message);
   }
   pvtcpsend_binary(p,buf,len);
   return 0;
}

#789 From: "pvbrowser" <pvbrowser@...>
Date: Sat Jun 26, 2010 5:23 am
Subject: Re: exit of server with pvSetText
pvbrowser
Send Email Send Email
 
Hi Ernst,
thank you for the bug fix.

#790 From: "Miguel" <cuentapv@...>
Date: Mon Jun 28, 2010 7:24 pm
Subject: Installation Problems on Windows with Pvbrowser 4.5.1 Qt 4
miguelangelt...
Send Email Send Email
 
Hellow everyone,

I´m trying to in install the new version of Pvbrowser 4.5.1 on windows XP.

I´ve download the install-pvbrowser.exe  from the web, and i also have installed
Qt creator 1.3.1 LGPL with Mingw.

I have changed the system variables on my laptop:

Path: C:\Qt\2010.03\bin; C:\Qt\2010.03\mingw\bin; C:\Qt\2010.03\qt\qmake;

But when i try to compile an example, always appear the same error:


mingw32-make.exe: Makefile.win : No such file or directory

Best Regards

#791 From: Kevin Jo <kvn_sg@...>
Date: Tue Jun 29, 2010 4:00 am
Subject: Re: Installation Problems on Windows with Pvbrowser 4.5.1 Qt 4
kvn_sg
Send Email Send Email
 
FYI, qmake.exe is located in C:\Qt\2010.03\qt\bin\qmake.exe. So maybe you can try to add C:\Qt\2010.03\qt\bin\ in your PATH. Hope that solve your problem
 
Regards
Kevin Jo


From: Miguel <cuentapv@...>
To: pvbrowser@yahoogroups.com
Sent: Tuesday, 29 June 2010 02:24:26
Subject: [pvbrowser] Installation Problems on Windows with Pvbrowser 4.5.1 Qt 4

 

Hellow everyone,

I´m trying to in install the new version of Pvbrowser 4.5.1 on windows XP.

I´ve download the install-pvbrowser.exe from the web, and i also have installed Qt creator 1.3.1 LGPL with Mingw.

I have changed the system variables on my laptop:

Path: C:\Qt\2010.03\bin; C:\Qt\2010.03\mingw\bin; C:\Qt\2010.03\qt\qmake;

But when i try to compile an example, always appear the same error:

mingw32-make.exe: Makefile.win : No such file or directory

Best Regards



#792 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jun 29, 2010 5:56 am
Subject: Re: Installation Problems on Windows with Pvbrowser 4.5.1 Qt 4
pvbrowser
Send Email Send Email
 
In order to find Qt and MinGW these 2 environment variables must be set.

Example:
set   QTDIR=z:\win\qt
set   MINGWDIR=z:\win\mingw

And the bin directories of Qt and MinGW must be in the PATH.
Also the %PVBDIR%\win-mingw\bin directory must be in the PATH.

Example:
set   PATH=%PVBDIR%\win-mingw\bin;%QTDIR%\bin;%MINGWDIR%\bin;c:\windows;

The above settings can be done local in
pvb\win-mingw\bin\start_pvdevelop.bat
if you start pvdevelop with this batch file.

The other possibility is to set these variables within the Windows control
center.

#793 From: "eqiukas" <egiukas@...>
Date: Tue Jun 29, 2010 6:25 pm
Subject: i cannot start server from pvdevelop and do make.
eqiukas
Send Email Send Email
 
Hello
I have installed pvbrowser 4.5.1 and qt4 with minqw on Vista.
I run pvdevelop create project and try to start server. Then i got errors in cmd
windows. Can any one helps?
The system cannot find the path specified.
g++ -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-I"C:\pvb\win-mingw\bin\pvserver" -I"..\..\..\Qt\4
.6.3\mkspecs\default" -o main.o main.cpp
In file included from main.cpp:8:
pvapp.h:13:31: processviewserver.h: No such file or directory
In file included from main.cpp:8:
pvapp.h:22: error: `PARAM' was not declared in this scope
pvapp.h:22: error: `p' was not declared in this scope
main.cpp:14: error: `PARAM' was not declared in this scope
main.cpp:14: error: `p' was not declared in this scope
main.cpp:15: error: expected `,' or `;' before '{' token
main.cpp: In function `int main(int, char**)':
main.cpp:53: error: `PARAM' was not declared in this scope
main.cpp:53: error: expected `;' before "p"
main.cpp:56: error: `p' was not declared in this scope
main.cpp:56: error: `pvInit' was not declared in this scope
main.cpp:60: error: `pvAccept' was not declared in this scope
main.cpp:61: error: `pvCreateThread' was not declared in this scope
main.cpp:61: warning: unused variable 'pvCreateThread'
main.cpp:60: warning: unused variable 'pvAccept'
main.cpp:53: warning: unused variable 'PARAM'
main.cpp:56: warning: unused variable 'pvInit'
pvapp.h: At global scope:
pvapp.h:11: warning: 'trace' defined but not used
mingw32-make.exe: *** [main.o] Error 1
'pvs' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
thanks

#794 From: "eqiukas" <egiukas@...>
Date: Tue Jun 29, 2010 6:56 pm
Subject: Re: i cannot start server from pvdevelop and do make.
eqiukas
Send Email Send Email
 
Och i found that errors
the path PVBDIR in windows environment variable was C:\pvb\win-mingw\bin then
 PVBDIR     = C:\pvb\win-mingw\bin
 QTDIR      = C:\Qt\4.6.3
 MINGWDIR   = C:\MinGW
 PYDIR      =
 PATH       = C:\pvb\win-mingw\bin\win-mingw\bin;C:\Qt\4.6.3\bin;C:\MinGW\bin;c:\windows;

 PYTHONPATH = C:\pvb\win-mingw\bin\win-mingw\bin;

I change path to C:\pvb and now this problem disapear.
But now when i did startserver i got this erros in cmd:
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -static-libgcc -W
l,-s -o pvs.exe main.o mask1.o  C:\pvb/win-mingw/bin/libserverlib.a C:\MinGW/lib/libws2_32.a C:\MinG
W/lib/libadvapi32.a
C:\pvb/win-mingw/bin/libserverlib.a(util.o):util.cpp:(.eh_frame+0x11): undefined reference to `__gxx
_personality_v0'
C:\pvb/win-mingw/bin/libserverlib.a(glencode.o):glencode.cpp:(.eh_frame+0x11): undefined reference t
o `__gxx_personality_v0'
C:\pvb/win-mingw/bin/libserverlib.a(wthread.o):wthread.cpp:(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
mingw32-make.exe: *** [pvs.exe] Error 1
'pvs' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

Why?
--- In pvbrowser@yahoogroups.com, "eqiukas" <egiukas@...> wrote:
>
> Hello
> I have installed pvbrowser 4.5.1 and qt4 with minqw on Vista.
> I run pvdevelop create project and try to start server. Then i got errors in cmd windows. Can any one helps?
> The system cannot find the path specified.
> g++ -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -I"C:\pvb\win-mingw\bin\pvserver" -I"..\..\..\Qt\4
> .6.3\mkspecs\default" -o main.o main.cpp
> In file included from main.cpp:8:
> pvapp.h:13:31: processviewserver.h: No such file or directory
> In file included from main.cpp:8:
> pvapp.h:22: error: `PARAM' was not declared in this scope
> pvapp.h:22: error: `p' was not declared in this scope
> main.cpp:14: error: `PARAM' was not declared in this scope
> main.cpp:14: error: `p' was not declared in this scope
> main.cpp:15: error: expected `,' or `;' before '{' token
> main.cpp: In function `int main(int, char**)':
> main.cpp:53: error: `PARAM' was not declared in this scope
> main.cpp:53: error: expected `;' before "p"
> main.cpp:56: error: `p' was not declared in this scope
> main.cpp:56: error: `pvInit' was not declared in this scope
> main.cpp:60: error: `pvAccept' was not declared in this scope
> main.cpp:61: error: `pvCreateThread' was not declared in this scope
> main.cpp:61: warning: unused variable 'pvCreateThread'
> main.cpp:60: warning: unused variable 'pvAccept'
> main.cpp:53: warning: unused variable 'PARAM'
> main.cpp:56: warning: unused variable 'pvInit'
> pvapp.h: At global scope:
> pvapp.h:11: warning: 'trace' defined but not used
> mingw32-make.exe: *** [main.o] Error 1
> 'pvs' is not recognized as an internal or external command,
> operable program or batch file.
> Press any key to continue . . .
> thanks
>


#795 From: "pvbrowser" <pvbrowser@...>
Date: Wed Jun 30, 2010 6:04 am
Subject: Re: i cannot start server from pvdevelop and do make.
pvbrowser
Send Email Send Email
 
I searched the web for
undefined reference to `__gxx_personality_v0' mingw qt

and found (for example)
http://www.qtforum.org/article/32559/error-when-compiling-in-windows-undefined-r\
eference-to-gxx-personality-v0.html

Did you install MinGW together with the Qt SDK installation or do you have a
different MinGW version on your computer ?
There seems to be a problem with different compiler versions.
Our pvbrowser 4.5.1 for Windows has been build with the Qt 4.6.2 SDK and the
MinGW compiler included in there.

Make shure you use the MinGW compiler that comes with the Qt SDK.

#796 From: "Miguel" <cuentapv@...>
Date: Wed Jun 30, 2010 9:54 pm
Subject: Re: Installation Problems on Windows with Pvbrowser 4.5.1 Qt 4
miguelangelt...
Send Email Send Email
 
--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
> In order to find Qt and MinGW these 2 environment variables must be set.
>
> Example:
> set   QTDIR=z:\win\qt
> set   MINGWDIR=z:\win\mingw
>
> And the bin directories of Qt and MinGW must be in the PATH.
> Also the %PVBDIR%\win-mingw\bin directory must be in the PATH.
>
> Example:
> set   PATH=%PVBDIR%\win-mingw\bin;%QTDIR%\bin;%MINGWDIR%\bin;c:\windows;
>
> The above settings can be done local in
> pvb\win-mingw\bin\start_pvdevelop.bat
> if you start pvdevelop with this batch file.
>
> The other possibility is to set these variables within the Windows control
center.


Thanks a lot for your answers,

Finally it works, it seem that the problem was that i installed pvb in "Archivos
de programa" and he was not able to find the files even with the correct route
...

I have install pvb again in C:\ and now it works ... :D

Best regards
>

#797 From: "matrise10" <matrise10@...>
Date: Sun Jul 4, 2010 10:05 am
Subject: Re: I need help
matrise10
Send Email Send Email
 
Hello, I am developing my first project in pvbrowser. I want to use for the
supervision of an on profibus siemens PLC. I have a very basic question and it's
like connect the PLC and where I say to pvbrowser want access to variables.

Thanks

--- In pvbrowser@yahoogroups.com, "ricardomoncecchi" <ricardomoncecchi@...>
wrote:
>
>
>
> --- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@> wrote:
> >
> >
> >
> > > I am developing my first proyect.I wish to know if there
> > > is any document on how to implement the widgets.
> > > For example, I add a comboBox but do not know what I need
> > > to write code to work. Sorry if my query is too basic but
> > > I am a bit lost ... (and for my poor English, I speak Spanish)
> >
> > Documentation is here:
> > http://pvbrowser.de/pvbrowser/index.php?menu=5&topic=5
> >
> > Especially read:
> > http://pvbrowser.org/pvbrowser/doc/pvb.en.pdf
> >
> > The Widgets available in pvbrowser are designed with the integrated designer
within pvdevelop. After you have inserted your widgets pvdevelop will generate
the code for the construction of the widgets.
> >
> > Then you can use the "pv" functions for the according widget.
> > Here you can browse these functions.
> > http://pvbrowser.org/pvbrowser/sf/manual/html/group__Contruction.html
> >
> > Here are the "pv" functions for a "PushButton" for example.
> >
http://pvbrowser.org/pvbrowser/sf/manual/html/group__Contruction.html#gda87584a9\
b86e07751710277e96c5a7e
> >
> > Please also review pvsexample maskX_slots.h
> >
> Thank you very much for answering my query. I will read the documents that you
suggest.
>

#798 From: "pvbrowser" <pvbrowser@...>
Date: Sun Jul 4, 2010 10:32 am
Subject: Re: I need help
pvbrowser
Send Email Send Email
 
> Hello, I am developing my first project in pvbrowser.
> I want to use for the supervision of an on profibus siemens PLC.
> I have a very basic question and it's like connect the PLC and
> where I say to pvbrowser want access to variables.

PROFIBUS in pvbrowser is supported by Hilscher CIF cards.
For example use:
CIF 50-PB Communication Interface PCI PROFIBUS-DP/FMS-Master
http://www.hilscher.com/products_list_group.html?upg=19&pg=2

This card includes an own microcontroller that handles PROFIBUS.
The data is exchanged with the PC by means of a dual prorted RAM.
You configure the CIF card with the Hilscher tool SyCon with which you place the
PROFIBUS variables at the desired address within the dual ported RAM.

For device drivers see
http://www.hilscher.com/products_details_hardware.html?p_id=P_40632009f3fcc&bs=8
Windows/Linux/QNX is supported.

You can find an example for the usage in pvbrowser within:
http://pvbrowser.de/pvbrowser/tar/pvbaddon.tar.gz
directory: pvbaddon/demos/hilschercif

PS1:
With Hilscher CIF cards you can use a wide range of fieldbus protocols (not only
PROFIBUS)

PS2:
Siemens PLC's can also be connected over TCP/IP or over serial line with the PPI
protocol. If you want to use this please ask again.

#799 From: "matrise10" <matrise10@...>
Date: Sun Jul 4, 2010 6:56 pm
Subject: Re: I need help
matrise10
Send Email Send Email
 
Thank you!!

I need Siemens PLC's connect over TCP/IP, can you help me?

I need
--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
>
>
>
>
>
>
> > Hello, I am developing my first project in pvbrowser.
> > I want to use for the supervision of an on profibus siemens PLC.
> > I have a very basic question and it's like connect the PLC and
> > where I say to pvbrowser want access to variables.
>
> PROFIBUS in pvbrowser is supported by Hilscher CIF cards.
> For example use:
> CIF 50-PB Communication Interface PCI PROFIBUS-DP/FMS-Master
> http://www.hilscher.com/products_list_group.html?upg=19&pg=2
>
> This card includes an own microcontroller that handles PROFIBUS.
> The data is exchanged with the PC by means of a dual prorted RAM.
> You configure the CIF card with the Hilscher tool SyCon with which you place
the PROFIBUS variables at the desired address within the dual ported RAM.
>
> For device drivers see
>
http://www.hilscher.com/products_details_hardware.html?p_id=P_40632009f3fcc&bs=8
> Windows/Linux/QNX is supported.
>
> You can find an example for the usage in pvbrowser within:
> http://pvbrowser.de/pvbrowser/tar/pvbaddon.tar.gz
> directory: pvbaddon/demos/hilschercif
>
> PS1:
> With Hilscher CIF cards you can use a wide range of fieldbus protocols (not
only PROFIBUS)
>
> PS2:
> Siemens PLC's can also be connected over TCP/IP or over serial line with the
PPI protocol. If you want to use this please ask again.
>

#800 From: "pvbrowser" <pvbrowser@...>
Date: Mon Jul 5, 2010 5:19 am
Subject: Re: I need help
pvbrowser
Send Email Send Email
 
> I need Siemens PLC's connect over TCP/IP, can you help me?

Did you read
http://pvbrowser.org/pvbrowser/doc/pvb.en.pdf
Section "Data Acquisition" ?
Please read from start including Modbus.

Our Siemens communication class supports the old fetch_write protocol which was
used with S5 and the newer protocol used with the S7 series (fetch_write=0).

The daemons rely on
http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlSiemensTCP.html
from rllib.

PS:
There is another open source project that also provides communication to Siemens
PLC's
http://libnodave.sourceforge.net/

#801 From: "matrise10" <matrise10@...>
Date: Thu Jul 8, 2010 9:37 pm
Subject: Re: I need help
matrise10
Send Email Send Email
 
I have a Siemens PLC connected to a PC (PCserver) and my pc (PCclient) is in the
computer network of the PLC. What I have done is:

Based on \pvbaddon\daemons\siemenstcp


-Create the following folders in the PCserver: C: \ aurovico \ plc_test_scada \
automation \ mbx
C: \ aurovico \ plc_test_scada \ automation \ shm
-In the main I have changed:
rlDataAcquisition ("C: \ \ aurovico \ \ plc_test_scada \ \ automation \ \ mbx \
\ siemenstcp1.mbx"
"C: \ \ aurovico \ \ plc_test_scada \ \ automation \ \ shm \ \ siemenstcp1.shm",
65536);



I changed the IP address of the slave, replacing it with my PCserver IP.I have
recorded in the executable PCserver pvs.exe and I executed.

And in the part of PCclient siemenstcp_client.exe have executed.

Once done, open the PCclient pvbrowser from the IP address of PCserver and I get
as it is connected.

Am I doing well?, how I say now the variables I want to access?

Sorry to ask such basic things but it is the first time than I developed a
Scada.
Thanks

--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
>
>
>
> > I need Siemens PLC's connect over TCP/IP, can you help me?
>
> Did you read
> http://pvbrowser.org/pvbrowser/doc/pvb.en.pdf
> Section "Data Acquisition" ?
> Please read from start including Modbus.
>
> Our Siemens communication class supports the old fetch_write protocol which
was used with S5 and the newer protocol used with the S7 series (fetch_write=0).
>
> The daemons rely on
> http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlSiemensTCP.html
> from rllib.
>
> PS:
> There is another open source project that also provides communication to
Siemens PLC's
> http://libnodave.sourceforge.net/
>

#802 From: "pvbrowser" <pvbrowser@...>
Date: Fri Jul 9, 2010 8:43 am
Subject: Re: I need help
pvbrowser
Send Email Send Email
 
> Am I doing well?, how I say now the variables I want to access?

Within the INI-File (see: example.ini) you should set
DEBUG=1
Now start the "siemenstcp_client.exe example.ini" within a DOS-Box in order to
see the debug messages.
From these messages you should see if everything works well.

If you have problems please post the above outputs here.
Also please post your INI-file here.
Also please tell me your Siemens PLC type.

How to specify what to read:
For example you have defined these read CYCLES in the INI-file

[CYCLES]
NUM_CYCLES=2
CYCLE1=10,byteORG_M(1,0,0)  # read 10 "Merker" from slave=1 dbnum=0 adr=0
CYCLE2=1,byteORG_M(2,2,3)   # read 1 "Merker" from slave2 dbnum=2 adr=3

See the pvserver in directory
pvbaddon/daemons/siemenstcp/pvs/
for an example how to communicate with the daemon.

#803 From: "matrise10" <matrise10@...>
Date: Mon Jul 12, 2010 4:28 pm
Subject: Re: I need help
matrise10
Send Email Send Email
 
My PLC is a Siemens S7-300.

When I start the "siemenstcp_client.exe example.ini", the debug messages are:

siemenstcp_client.exe starting with debug=1 cycletime=1000 haveto_swap=1 init
slaves...num_slaves=1 slave_array[0]=new rlSiemensTCP("10.10.114.254",2,1) init
cycles...num_cycles=1
CYCLE1 added:count=10 var=byteORG_M org=2 dbnum=99 adr=0 max_name_length=30
shared_memory_size=65536

My ini file is:

# ini file for siemenstcp_client
#
# DEBUG       := 1 | 0
# SLAVE<N>    := IP,PLC_TYPE,FETCH_WRITE
# PLC_TYPE    := S7_200 | S7_300 | S7_400 | S5
# FETCH_WRITE := 1 | 0 # default 1
# CYCLE<N>    := <count>,<name>
# name        := byte<ORG>(slave,dbnum,adr)   |
#                float<ORG>(slave,dbnum,adr)  |
#                dword<ORG>(slave,dbnum,adr)  |
#                short<ORG>(slave,dbnum,adr)  |
#                udword<ORG>(slave,dbnum,adr) |
#                ushort<ORG>(slave,dbnum,adr)
# ORG         := ORG_DB | ORG_M | ORG_E | ORG_A | ORG_PEPA | ORG_Z | ORG_T
# HAVETO_SWAP := 1 | 0 # must be 1 on intel machines
# CYCLETIME in milliseconds
# SHARED_MEMORY_SIZE must be equal to SHARED_MEMORY_SIZE of pvserver
# MAX_NAME_LENGTH is maximum length of variable name in shared memory
#

[GLOBAL]
DEBUG=1
CYCLETIME=1000
HAVETO_SWAP=1

[SOCKET]
NUM_SLAVES=1
SLAVE1=10.10.14.254,S7_300
#SLAVE2=192.168.1.35,S7_200,0

[RLLIB]
MAX_NAME_LENGTH=30
SHARED_MEMORY=C:\\aurovico\\plc_test_scada\\automation\\shm\\siemenstcp1.shm
SHARED_MEMORY_SIZE=65536
MAILBOX=C:\\aurovico\\plc_test_scada\\automation\\mbx\\siemenstcp1.mbx

[CYCLES]
NUM_CYCLES=1
CYCLE1=10,byteORG_M(1,99,0)
#CYCLE2=1,byteORG_M(2,2,3)

Thank you very much for you help


--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
> > Am I doing well?, how I say now the variables I want to access?
>
> Within the INI-File (see: example.ini) you should set
> DEBUG=1
> Now start the "siemenstcp_client.exe example.ini" within a DOS-Box in order to
see the debug messages.
> From these messages you should see if everything works well.
>
> If you have problems please post the above outputs here.
> Also please post your INI-file here.
> Also please tell me your Siemens PLC type.
>
> How to specify what to read:
> For example you have defined these read CYCLES in the INI-file
>
> [CYCLES]
> NUM_CYCLES=2
> CYCLE1=10,byteORG_M(1,0,0)  # read 10 "Merker" from slave=1 dbnum=0 adr=0
> CYCLE2=1,byteORG_M(2,2,3)   # read 1 "Merker" from slave2 dbnum=2 adr=3
>
> See the pvserver in directory
> pvbaddon/daemons/siemenstcp/pvs/
> for an example how to communicate with the daemon.
>

#804 From: "pvbrowser" <pvbrowser@...>
Date: Mon Jul 12, 2010 5:38 pm
Subject: Re: I need help
pvbrowser
Send Email Send Email
 
Our communication supports the old fetch/write protocol first used with S5 and
the newer ISO_ON_TCP protocol.
I think you want to use the ISO_ON_TCP protocol used with S7.

In this case you have to add a 0 to the SLAVE1 line.
Omitting that value would mean use the old fetch/write.

[SOCKET]
  NUM_SLAVES=1
  SLAVE1=10.10.14.254,S7_300,0

Add the above 0 behind S7_300

> When I start the "siemenstcp_client.exe example.ini",
> the debug messages are:
>
> siemenstcp_client.exe starting with debug=1 cycletime=1000
> haveto_swap=1 init slaves...num_slaves=1
> slave_array[0]=new rlSiemensTCP("10.10.114.254",2,1)
> init cycles...num_cycles=1
> CYCLE1 added:count=10 var=byteORG_M org=2
> dbnum=99 adr=0 max_name_length=30 shared_memory_size=65536

I think these lines are not the complete output.
There should be a line like

"rlSocket::isConnected()=%d\n"

It will be
rlSocket::isConnected()=1
if success connecting.
rlSocket::isConnected()=0
if connecting failed.

#805 From: "reinerzufall49" <reinerzufall49@...>
Date: Tue Jul 13, 2010 1:28 pm
Subject: PressedButtonEvent
reinerzufall49
Send Email Send Email
 
Hi @ all,

habe mir mal den pvbrowser eingerichtet.
Funktioniert soweit alles auch ziemlich gut.
Verbindung soll zu einer S7-400 aufgebaut werden. Das funktioniert soweit auch.
Mein Prob ist jetzt nur das ich mit dem Programmieren der Slot-Funktion nicht so
ganz zurecht komme.Leider fehlt mir da so ein wenig das verständnis(ich hoffe
noch).
Ich wollte einen Button programieren welcher sich verhalten soll wie ein
schalter.Also drücken und er beibt gedrückt.Ausgang wird gesezt.
Wieder drücken und der Ausgang wird zurückgesetzt.
Was ich bei der ganzen sache nicht begreife ist.Wie werte ich die Events
aus.ALso beim drücken habe ich ja immer das pressed,released und button
event.Könnte mir da mal jemand einen codesnipsel vorwerfen.

Eine Zweite frage bezieht sich auf cbuf.
Welche werte werden da verwendent?
Wenn ich cbuf auf 1 habe dann wird mein Ausagang gesetzt.
Dann habe ich aus zufall mal eine 100 genommen und damit wurde der Ausgang dann
zurückgesetzt.
Aber wieso?

Danke im vorraus.

PS. die Doku habe ich versucht zu lesen konnte mir aber zu meinen Probs leider
nicht die Lösung zurecht bauen ;)

Vielen Danke
der Klaus

#806 From: "reinerzufall49" <reinerzufall49@...>
Date: Tue Jul 13, 2010 1:34 pm
Subject: ButtonEvent
reinerzufall49
Send Email Send Email
 
hi,

is it possible to use a button like a switch.

thx
spacy

#807 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jul 13, 2010 2:04 pm
Subject: Re: ButtonEvent
pvbrowser
Send Email Send Email
 
> is it possible to use a button like a switch.

You could change the text of a button (pvPrintf)
http://pvbrowser.org/pvbrowser/sf/manual/html/group__Output.html#g46a68c8e3aa316\
3621cf63c513adf3c5

You could change the color of a button (pvSetPaletteBackgroundColor)
http://pvbrowser.org/pvbrowser/sf/manual/html/group__Output.html#g16e65a199250ef\
499023173605851cbc

You can set an icon within a button (pvSetPixmap)
http://pvbrowser.org/pvbrowser/sf/manual/html/group__Output.html#g3185ea0218b02d\
041169df5cac1bd36d

Using the above you can use a PushButton as switch.

#808 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jul 13, 2010 2:22 pm
Subject: Re: PressedButtonEvent
pvbrowser
Send Email Send Email
 
> Verbindung soll zu einer S7-400 aufgebaut werden.
> Das funktioniert soweit auch.
OK

> Mein Prob ist jetzt nur das ich mit dem Programmieren der
> Slot-Funktion nicht so ganz zurecht komme.
> Leider fehlt mir da so ein wenig das verständnis(ich hoffe noch).
> Ich wollte einen Button programieren welcher sich verhalten
> soll wie ein schalter.
> Also drücken und er beibt gedrückt.Ausgang wird gesezt.
> Wieder drücken und der Ausgang wird zurückgesetzt.
> Was ich bei der ganzen sache nicht begreife ist.
> Wie werte ich die Events aus.
> ALso beim drücken habe ich ja immer das pressed,released und
> button event.Könnte mir da mal jemand einen codesnipsel vorwerfen.
Wie auf den anderen Post von Dir geantwortet, kannst Du Text/Farbe/Icon eines
Buttons ändern.

In data führst Du einen buttonState ein.
typedef struct // (todo: define your data structure here)
{
   int buttonState;
}
DATA;


In slotInit() setzt Du den Startwert
static int slotInit(PARAM *p, DATA *d)
{
   if(p == NULL || d == NULL) return -1;
   d->buttonState = 0;
   return 0;
}

In slotButtonEvent() verarbeitest Du den buttonState
static int slotButtonEvent(PARAM *p, int id, DATA *d)
{
   if(p == NULL || id == 0 || d == NULL) return -1;
   if(id == MyButton)
   {
     if(d->buttonState == 0)
     {
       d->buttonState = 1;
       // button gruen machen
       pvSetPaletteBackgroundColor(p,MyButton,0,0,255);
       // mach was
     }
     else
     {
       d->buttonState = 0;
       // button rot machen
       pvSetPaletteBackgroundColor(p,MyButton,255,0,0);
       // mach was
     }
   }
   return 0;
}

> Eine Zweite frage bezieht sich auf cbuf.
> Welche werte werden da verwendent?
> Wenn ich cbuf auf 1 habe dann wird mein Ausagang gesetzt.
> Dann habe ich aus zufall mal eine 100 genommen und damit wurde
> der Ausgang dann zurückgesetzt.
> Aber wieso?
Es handelt sich um Bits.
1 ist klar.
100 dezimal == 64 Hex -> also Bit 0 = 0

#809 From: "matrise10" <matrise10@...>
Date: Tue Jul 13, 2010 2:24 pm
Subject: Re: I need help
matrise10
Send Email Send Email
 
Sorry, the other output is:
rlSocket::isConnected()=0

I have changed the protocol. Now is:

SLAVE1=10.10.14.254,S7_300,0

The output is the same. Can you know where I am wrong?

thank you for you help

--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
> Our communication supports the old fetch/write protocol first used with S5 and
the newer ISO_ON_TCP protocol.
> I think you want to use the ISO_ON_TCP protocol used with S7.
>
> In this case you have to add a 0 to the SLAVE1 line.
> Omitting that value would mean use the old fetch/write.
>
> [SOCKET]
>  NUM_SLAVES=1
>  SLAVE1=10.10.14.254,S7_300,0
>
> Add the above 0 behind S7_300
>
> > When I start the "siemenstcp_client.exe example.ini",
> > the debug messages are:
> >
> > siemenstcp_client.exe starting with debug=1 cycletime=1000
> > haveto_swap=1 init slaves...num_slaves=1
> > slave_array[0]=new rlSiemensTCP("10.10.114.254",2,1)
> > init cycles...num_cycles=1
> > CYCLE1 added:count=10 var=byteORG_M org=2
> > dbnum=99 adr=0 max_name_length=30 shared_memory_size=65536
>
> I think these lines are not the complete output.
> There should be a line like
>
> "rlSocket::isConnected()=%d\n"
>
> It will be
> rlSocket::isConnected()=1
> if success connecting.
> rlSocket::isConnected()=0
> if connecting failed.
>

#810 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jul 13, 2010 3:29 pm
Subject: Re: I need help
pvbrowser
Send Email Send Email
 
> Sorry, the other output is:
> rlSocket::isConnected()=0
>
> I have changed the protocol. Now is:
>
> SLAVE1=10.10.14.254,S7_300,0
>
> The output is the same. Can you know where I am wrong?

Is the PLC reachable over TCP ?
Try to ping your PLC
ping 10.10.14.254

If
> rlSocket::isConnected()=0
the connection to the PLC could not be established.

The ISO_ON_TCP protocol exchanges a so called TSAP (transport service acces
point) when connecting.
If this TSAP is not OK the PLC will reject the connection and isConnected() will
be 0 also.

Your version of siemenstcp_client.cpp has only a default value of this TSAP
(hard coded). But the TSAP may be different for different configurations of
RACK/SLOT. Meanwhile we have extended siemenstcp_client.cpp to allow you to
specify RACK/SLOT.
Please download
http://pvbrowser.de/pvbrowser/tar/pvbaddon.tar.gz
again and extend the line in your INI file with RACK/SLOT

SLAVE1=10.10.14.254,S7_300,0,1,0

Where the last 2 numbers are
rack+1 and slot

May be you have to experiment a little with the last 2 numbers
so that RACK/SLOT match your configuration.
For example:
SLAVE1=10.10.14.254,S7_300,0,2,1

#811 From: "matrise10" <matrise10@...>
Date: Tue Jul 13, 2010 5:18 pm
Subject: Re: I need help
matrise10
Send Email Send Email
 
when you say rack / slot you mean we have to tell you exactly which rack / slot
is the information we want access to? as I can get this information? I'm using
Siemens Simatic

--- In pvbrowser@yahoogroups.com, "pvbrowser" <pvbrowser@...> wrote:
>
>
>
> > Sorry, the other output is:
> > rlSocket::isConnected()=0
> >
> > I have changed the protocol. Now is:
> >
> > SLAVE1=10.10.14.254,S7_300,0
> >
> > The output is the same. Can you know where I am wrong?
>
> Is the PLC reachable over TCP ?
> Try to ping your PLC
> ping 10.10.14.254
>
> If
> > rlSocket::isConnected()=0
> the connection to the PLC could not be established.
>
> The ISO_ON_TCP protocol exchanges a so called TSAP (transport service acces
point) when connecting.
> If this TSAP is not OK the PLC will reject the connection and isConnected()
will be 0 also.
>
> Your version of siemenstcp_client.cpp has only a default value of this TSAP
(hard coded). But the TSAP may be different for different configurations of
RACK/SLOT. Meanwhile we have extended siemenstcp_client.cpp to allow you to
specify RACK/SLOT.
> Please download
> http://pvbrowser.de/pvbrowser/tar/pvbaddon.tar.gz
> again and extend the line in your INI file with RACK/SLOT
>
> SLAVE1=10.10.14.254,S7_300,0,1,0
>
> Where the last 2 numbers are
> rack+1 and slot
>
> May be you have to experiment a little with the last 2 numbers
> so that RACK/SLOT match your configuration.
> For example:
> SLAVE1=10.10.14.254,S7_300,0,2,1
>

#812 From: "reinerzufall49" <reinerzufall49@...>
Date: Tue Jul 13, 2010 5:38 pm
Subject: ORG_A abfragen
reinerzufall49
Send Email Send Email
 
Hallo,

erstmal Danke für die schnelle Hilfe.
Habe aber noch eine weitere Frage.
Wenn ich im siemensdaemon ein ORG_DB/ORG_M abfrage, bekomme ich auch Werte
zurück.
Ist das mit ORG_A nicht möglich.
Meine zeile sieht so aus

cycle1 slave=0 org=ORG_A dbnum=0 start=0 len=32

danke

#813 From: "pvbrowser" <pvbrowser@...>
Date: Tue Jul 13, 2010 6:28 pm
Subject: Re: ORG_A abfragen
pvbrowser
Send Email Send Email
 
> Ist das mit ORG_A nicht möglich.
> Meine zeile sieht so aus
>
> cycle1 slave=0 org=ORG_A dbnum=0 start=0 len=32

ORG_A bedeutet ja Ausgang.
Es sollte eigentlich auch gehen einen Ausgang abzufragen.
Ich bin da aber momentan etwas überfragt.

Man kann sich die eigentliche Kommunikation übrigens hier ansehen.
http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlSiemensTCP.html

In
http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlSiemensTCP.html#36295\
ca7c669b5acba84a244cc33787e
wird der jeweilige ORG_xy eingesetzt.
ORG_A unterscheidet sich sonst nicht von ORG_M und ORG_DB.

Messages 784 - 813 of 2239   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help