WinCC OA on Raspberry PI...

Discussion about recent product features & solutions!
7 posts • Page 1 of 1
vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

WinCC OA on Raspberry PI...

Post by vogler »

i got an unofficial WinCC OA version for the Rasp!

it runs damn cool... :-)

http://www.rocworks.at/wordpress/wincc- ... pberry-pi/

root@raspberry1:~# uname -a
Linux raspberry1 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux
root@raspberry1:~# ps -ef | grep -i WCCOA
root 3677 3131 24 19:11 ? 00:25:34 /opt/WinCC_OA/3.11/bin/WCCOActrl -PROJ smh -pmonIndex 1 -num 6 Arduino.ctl
root 3683 3131 2 19:11 ? 00:02:40 /opt/WinCC_OA/3.11/bin/WCCOActrl -PROJ smh -pmonIndex 2 -num 7 SMAImport.ctl
root 5239 4887 0 20:56 pts/0 00:00:00 grep -i WCCOA
root@raspberry1:~#

blange
Posts:8
Joined: Fri Nov 05, 2010 9:52 am

Re: WinCC OA on Raspberry PI...

Post by blange »

B) Hi Andi,

Quite cool, I have it also installed on my Raspi, running a bit slow but Raspi isn't a rocket
Most things run, but not Ultralightclientserver.ctl (not expected) . Started to integrate WIFI lamps with UDP control first.

will drain you knowledge and barrels at X-mas Party
CU Bernd

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: WinCC OA on Raspberry PI...

Post by Gertjan van Schijndel »

Is there also a 3.12 version for the raspberry pi?
Did somebody make a driver for the GPIO?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: WinCC OA on Raspberry PI...

Post by mkoller »

Not yet .. I'll do it soon.
Regarding GPIO: no driver has been done. I use the GPIO pins just for output and do it with system() calls.
I'll attach my script I use to drive my garden watering valves. https://www.winccoa.com/fileadmin/image ... les/pi.ctl

Code: Select all

main()
{
  // setup periphery
  
  // GPIO for Outputs
  system("echo 4  > /sys/class/gpio/export");
  system("echo 17 > /sys/class/gpio/export");
  system("echo 27 > /sys/class/gpio/export");
  system("echo 22 > /sys/class/gpio/export");
  system("echo 10 > /sys/class/gpio/export");
  system("echo 9  > /sys/class/gpio/export");
  system("echo 11 > /sys/class/gpio/export");
  system("echo 7  > /sys/class/gpio/export");
  // GPIO for Inputs
  system("echo 8  > /sys/class/gpio/export");


  // define outputs
  system("echo out  > /sys/class/gpio/gpio4/direction");
  system("echo out  > /sys/class/gpio/gpio17/direction");
  system("echo out  > /sys/class/gpio/gpio27/direction");
  system("echo out  > /sys/class/gpio/gpio22/direction");
  system("echo out  > /sys/class/gpio/gpio10/direction");
  system("echo out  > /sys/class/gpio/gpio9/direction");
  system("echo out  > /sys/class/gpio/gpio11/direction");
  system("echo out  > /sys/class/gpio/gpio7/direction");
  // define inputs
  system("echo in  > /sys/class/gpio/gpio8/direction");


  dpConnectUserData("work", "4",  "Hauptregner.");
  dpConnectUserData("work", "17", "Böschung.");
  dpConnectUserData("work", "27", "Versenkregner.");
  dpConnectUserData("work", "22", "Tropf.");
}

// --------------------------------------------------------------

work(string num, string dpe, bool value)
{
  system("echo " + (value ? "1" : "0") + " > /sys/class/gpio/gpio" + num + "/value");
}

// --------------------------------------------------------------
Attachments

[The extension ctl has been deactivated and can no longer be displayed.]


marcel@realsolutions.nu
Posts:12
Joined: Mon Aug 02, 2010 10:22 am

Re: WinCC OA on Raspberry PI...

Post by marcel@realsolutions.nu »

Since last month also running WinCC-OA on Pi, works great.

Last week received an IO board that supports control over SNMP and get it up and running: so the WinCC-OA SNMP driver on the PI controls a relais on the IO-board when an DPE is set

Next step was to get UltraLightClient running. The script is running on Pi, also the XML panels seems to be parsed when I request a panel in my Chrome browser, but the click-scripts of the pushbuttons are not working. Chrome reports this error (on load of the page):

"GET http://192.168.1.66/data/http/libs/SVGkeypressed.js 404 (Not Found)"


Anybody got the UltraLightClient already running? with control of DPE's?

martijn.goedhart@croonwolterendros.nl
Posts:5
Joined: Tue Sep 21, 2010 1:39 pm

Re: WinCC OA on Raspberry PI...

Post by martijn.goedhart@croonwolterendros.nl »

Hi you all,

Any way for a WinCC OA enthusiast to get a copy as well, or is it limited to ETM employees only??

lukas.schopp
Posts:39
Joined: Wed Nov 03, 2010 2:40 pm

Re: WinCC OA on Raspberry PI...

Post by lukas.schopp »

Hello,

Yes that's possible.
Write an e-mail to your key account manager or the support.
They will clarify.

Best wishes
Lukas Schopp
WinCC OA Product Manager

7 posts • Page 1 of 1