09-15-2002 01:43 PM
09-15-2002 11:46 PM
02-25-2016 04:10 AM
Hello ,
Is there a way to communicate between Labwindows and siemens s7 1200(Read /Write ).I searched for Ni opc with Labwindows but i had no luck finding an answer .
By the way the communication is established via the internet(wireless communication).
Thanks in advance.
04-13-2020 05:29 PM
hi!
i want to read/send data from/to a siemens s7. what is a simple way to do that? i use labwindows cvi!
MAIL : mejdi.afamec@gmail.com
04-28-2020 06:28 AM
A simple click and forget solution doesn't exist for this. There are several possible options however:
1) Using OPC in the Siemens PLC you can have it publish data to the network. Note you will need to have a licensed OPC option for your PLC to do that. Not sure if it comes standard nowadays but it used to be a paid option in the past.
In LabWindows/CVI you then can access OPC channels through SharedVariables or possibly their predecessor called DataSocket.
2) You could also use the Snap7 library. This is a complete implementation of the proprietary Ethernet protocol to read and write data blocks and registers of Siemens S7 PLCs.
1) is fairly easy to setup and also the CVI side shouldn't be to hard to program. 2) gives you full access to the entire PLC (which in itself can be a very bad thing) but requires you to tinker with the library and integrate it into your LabWindows/CVI program and do quite a bit of setup too as you will need to define what registers/addresses you want to access somehow, and hardcoding that in your source code is definitly not going to be a maintainable solution.
04-28-2020 08:08 AM
I was to reply in a very similar way, with the addition of the possibility to use Modbus if the PLC comes equipped with it (it used to be a paid option too when looked at it a few years ago).
But I have to disagree with Rolf on the ease of use of the solutions proposed. I have tried to setup a OPC communications with a PLC and found myself lost in an infinite series of configuration options for security, tags and so on that I wasn't able to solve by myself, while I had a test application with Snap7 up and running from scratch in just a few hours. It is possible that a few days of education or study on OPC is enough to understand how it works, but this definitely isn't something that I consider easy or simple.
It's correct that with Snap7 you can have the whole PLC at your hand and this may be risky, but I normally don't develop the PLC side and limit myself to use what the Producer has published as an interface to his application (normally a bunch of registers and optionally some digital I/O) and I have found in this respect Snap7 library an easy and straightforward instrument to use with CVI.
04-28-2020 08:17 AM
OPC security can be a hassle, but at least there was some serious thought about security. The Siemens TCP protocol has nothing that you could call security beyond security through obscurity! 😀
10-19-2020 07:43 AM
If there’s an example to better explain