LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sunny Island

Hi All

 

I need to communicate with a Sunny Island inverter/charger, The SMA support suggest to use a Sunny web box and a SMA OPC server to connect labview to the inverter.

The Sunny web box is connected to the inverter with RS485 com. The sunny web box allows to share the data on a ethernet net.

So they suggest to use a SMA OPC server to read this data from the web box and link them with a client in Labview.

I would like to use the NI opc server instead of The SMA one, Any suggestion on it?

Any other possibility to connect labview to the web box?

thanks

 http://download.sma.de/smaprosa/dateien/5612/SI5048-11-EE3107_Prosa.pdf

http://download.sma.de/smaprosa/dateien/5612/SI5048-11-BE3307.pdf

http://download.sma.de/smaprosa/dateien/7041/OPC-DEN083811.pdf

0 Kudos
Message 1 of 20
(8,125 Views)

If you get the Sunny WebBox you can use UDP to communicate with it.  SMA provides an RPC which is available on their web site as a pdf.  It seems to require 2 byte chars with the second byte being a null.  I wrote a simple subvi to convert the strings.  Check this thread I found on SMA's forum:

http://forums.sma-america.com/showthreaded.php?Cat=&Board=Communications_forum&Number=1898&page=0&vi...

Message Edited by scottmc on 12-16-2008 06:44 PM
Message Edited by scottmc on 12-16-2008 06:45 PM
Message 2 of 20
(8,000 Views)

Hi Scott

 

please can you provide an example of this.

Thanks

0 Kudos
Message 3 of 20
(7,853 Views)

Dear scottmc,

 

Please note that the link provided is not working. Couldyou please update it? Also, it would be great if you couldmake the sample available.

 

Thanks~

 

0 Kudos
Message 4 of 20
(7,743 Views)

Seems the sma forum moved.  Here's the image I had posted there:

 code to changes incoming string into 2 byte chars

 

 

 

 

 

 

 

You'll need similar code to convert the incoming strings to something you can read, basically stripping the 0 bytes out.

 

 

0 Kudos
Message 5 of 20
(7,716 Views)
I don't think you want an uninitialized shift register in that VI. Smiley Wink
Message 6 of 20
(7,708 Views)

smercurio_fc wrote:
I don't think you want an uninitialized shift register in that VI. Smiley Wink

There is much more wrong with this, look at all the coercion dots. Looks like the diagram constant is probably I32. This thing has measles!

(Not that it changes the result in this particular case, it just uses 4x more memory than needed for temporary data structures. ;))

 

Here's a better way to do this:

 

 

Message Edited by altenbach on 05-08-2009 09:59 AM
Message 7 of 20
(7,694 Views)

scottmc,

 

I'm also working with Sunny Boy inverters and SMA webbox for monitoring. From what I've read in this forums and in the SMA forums is that I don't need to install the SMA OPC server. If I'm not mistaken what you are saying is that with LabVIEW I can just use that UDP functions to communicate with the inverters through the webbox? So all I would need is to connect my PC to the network of the webbox and then I can monitor the inverters using the SMA protocols and UDP functions?

 

Thanks,

 

Jose

0 Kudos
Message 8 of 20
(6,646 Views)

Hello Scottmc

 

yep, it is right. You could just communicate with the web box through ethernet network and use the UDP function to read the parameters you require. Download from the SMA web site the SMA

Sunny webbox RPC client software. it will help you on understanding better the UDP communication protocol.

Good luck

 

Vincenzo

0 Kudos
Message 9 of 20
(6,610 Views)

Enzo78

 

I'm trying to communicated with it through UDP, but all I'm getting in data terminal of the UDP read is the same thing I send with the UDP write. I've attached the VI incase anyone can help me with that. In the net adress I used 255.255.255.255, because whenever I used the Webbox's IP adress the UDP timed out.

 

Thanks for the help,

 

Jose

0 Kudos
Message 10 of 20
(6,553 Views)