S7-1500 to PC Communications

Both libnodave and Snap7 use a long time ago S7-300/400 reversed engineering protocol that in the more recent S7-1200 and 1500 can not access optimized DBs.

For me it seems clear that for new installations with S7-1500 the protocol to be used should be OPC UA that offers several advantages
 
Both libnodave and Snap7 use a long time ago S7-300/400 reversed engineering protocol that in the more recent S7-1200 and 1500 can not access optimized DBs.

For me it seems clear that for new installations with S7-1500 the protocol to be used should be OPC UA that offers several advantages

I agree. Interestingly, most comms drivers I've seen or worked with seem to use that protocol to communicate with the S7-1500's.

This being said, some already bring OPC UA Clients.

Do you have any experience with OPC UA and the S7-1500's?
 
I agree. Interestingly, most comms drivers I've seen or worked with seem to use that protocol to communicate with the S7-1500's.

Most third parties are still using the 300/400 driver for the 1500, you mean? Yeah, Siemens never shared the details of the new upgraded protocol, so they're left with the already reverse engineered older protocol.


This being said, some already bring OPC UA Clients.

Do you have any experience with OPC UA and the S7-1500's?

I know that OPC UA supports multiple types of reads and writes, and the performance can vary a ton depending on if you use them appropriately (probably meaning: the way Siemens wants you to). Also, the way you structure your data seems to make a big difference. The data structure is up to the PLC programmer, so that is something you can change if needed. The type of read/write is up to the OPC UA client, which often means you have to hope your SCADA system is optimizing things correctly.
 
Siemens never shared the details of the new upgraded protocol, so they're left with the already reverse engineered older protocol.
I have seen German companies that sell communication drivers for 3d party systems that claims they support optimized datablocks. If that information is shared from Siemens or if they have decoded the new protocol is unclear

Deltalogic

AGLink also supports the S7-1200 / S7-1500 with optimized
block access and masters the import of symbols directly from the TIA Portal versions 11, 12, 13, V14 and V15.
 
Last edited:
I have seen German companies that sell communication drivers for 3d party systems that claims they support optimized datablocks. If that information is shared from Siemens or if they have decoded the new protocol is unclear

I've decoded about 95% of the new protocol, the parts you'd need for get variable access is 100% complete.
I've written a Wireshark dissector which shows you whats going on (https://sourceforge.net/p/s7commwireshark/code/HEAD/tree/trunk/src/s7comm_plus/).

The problem is not the protocol itself, it's the authentication you need to implement in your driver. The only option to get the needed keys you need is to disassemble Siemens binaries, which is not allowed by the license.
If someone wants to write an Open source driver, he must make these things public. If you are resident in Germany or Europe, I'd say it's a bad idea to make such things public. If you write a closed source software, you can hide this.

The next probem is, that Siemens is constantly changing small things in the protocol. There are at least 3 protocol versions of the new protocol which are different. You must detect what Plc and what firmware you have, to check what protocol version and object model you have to use. Even the commercial 3rd party drivers like the one from Deltalogic can communicate with all versions (delta fails with 1200 fw 2).
It's not as easy as the old protocol was. With the old protocol you could write a simple driver for variable access in under 100 lines of code. With the new protocol, I'd estimate about 10k lines of code.
 
Do you have any experience with OPC UA and the S7-1500's?


I have written my own OPC UA client driver for Android.
I do not have experience with S7-1500 but with other different OPC UA servers.
if it works with a server it should work with anyone since OPC UA is brand independent and 100% public documented.

If you want some OPC UA server for testing I have used "OPC UA ANSI C Demo Server" of unified-automation.com, it is a windows executable with simulated variables, some settings can be changed editing a XML file manually

Another possibility is to install Codesys porgramming software that also installs a PLC emulator (Soft-PLC) which has a fully functional OPC-UA server. The same happens when using a Raspberry PI as a PLC.
Also some time ago there was some public server available on the Internet but the ones I knew I think are now all down.

For me a main advantage of OPC UA is security.
Let's take an example, if a person silently connects a laptop to a switch in the industrial plant and the connected PLCs use non-secure protocols such as Modbus or Ethernet/IP or the old S7 discussed here, he can read and write variables in some PLC just knowing his IP and the address or name of the tag.

This can be completely avoided by using the OPC UA security features since it can be configured to only accept connections with a trusted certificate.

It's enough secure and encrypted to connect over the Internet without using a VPN
 

Similar Topics

Hi there, I need to exchange about 100 Words of data In/Out from my CompactLogix L33ER and an S7-1500. We are connected physically via a Siemens...
Replies
5
Views
3,620
What is the industry standard protocol used between an S7-1500 and a standard Windows (c) PC? We are starting a new project, so we'd like to keep...
Replies
3
Views
1,761
Been a while since posting here. I have a system that has been dumped in my lap and looking for insight. Here are the details. PLC: Micrologix...
Replies
3
Views
1,588
Our old maple systems hmi burned up and some of the damage was right at the rs232 port, we ordered a new one preprogrammed with all the comm...
Replies
2
Views
1,305
Good day all. I have a Micro Logix 1500 (24BWA) that I can't seem to go online with the processor. According to the Rockwell Software Support page...
Replies
1
Views
3,327
Back
Top Bottom