Kkula
Browse Questions » SIMATIC S7-1500: S7 1500 Towards Kepware Open connectivity protocol - without having the direct connection to the PLC

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

SIMATIC S7-1500: S7 1500 Towards Kepware Open connectivity protocol - without having the direct connection to the PLC

My client not going the provide any access to get the S7 1500 PLC data to my kepware OPC. They are telling that, through the IPC127E collect the s7 1500 data with only the read access.
Here my question is, 
Is there of any possibilities available to have the s7 1500 data to kepware OPC without having the direct connectivity with the PLC?
Note: I have suggested to put new s7 1500 PLC to collect the data using the PUT/GET function. but they are not allowing to go with this solution.

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(3)

Changing Webserver Pages Without Stopping Modules

Dear Customer,

You are facing an issue where downloading updated webserver pages requires stopping the CPU modules due to DB333/334 reinitialization. Unfortunately, directly changing HTML files and regenerating blocks typically always requires a module stop for DB333 reinitialization in TIA Portal.

The "download without reinitialization" option depends on specific memory access characteristics of the DB (DB333 in your case). Optimizing memory access generally doesn’t enable this functionality for webserver DBs.

Possible Workarounds (with limitations):

  • Smaller Updates: If changes are very minor, sometimes a quick download is possible, but this is not guaranteed.
  • Redundancy (if applicable): If you have a redundant system, you can update the standby CPU first and switch over.
  • Consider using a dedicated HMI for dynamic content: This offloads the webserver.

For detailed information and troubleshooting, please refer to the following Siemens Support article:

FAQ: How do you perform a download to a PLC without stopping it?

Best regards,
Siemens Self Support

0

Siemens Self Support - Webserver File Access via cURL & wget

Thank you for sharing these comprehensive cURL and wget commands for interacting with the S7-1500 webserver file system! This is a very helpful resource.

Here's a summary of the commands you provided, categorized for easy reference:

  • Login: wget --post-data="Login=&Password=" --save-cookies="cookies.txt" --keep-session-cookies "https:///FormLogin"
  • Download (General): curl -b cookies.txt "https:///Filebrowser?Path=//&RAW" -H "Referer: https:///Portal/Portal.mwsl?PriNav=Filebrowser&Path=//" --output
  • Download (UserFiles): curl -b cookies.txt "https:///UserFiles?Name=&Action=DOWNLOAD" --output
  • Download (DataLogs): curl -b cookies.txt "https:///DataLogs?Path=/DataLogs/&Action=DOWNLOAD" -H "Referer: https:///Portal/Portal.mwsl?PriNav=DataLogs" --output
  • Upload (General): curl -b cookies.txt --referer "https:///Portal/Portal.mwsl?PriNav=Filebrowser&Path=//" --form filename=@"" "https:///Filebrowser?Path=//"
  • Upload (UserFiles): curl -b cookies.txt --referer "https:///Portal/Portal.mwsl?PriNav=UserFiles" --form File=@"" "https:///UserFiles?Action=UPLOAD"
  • Delete (General): curl -b cookies.txt "https:///Filebrowser?Path=//&DELETE" -H "Referer: https:///Portal/Portal.mwsl?PriNav=Filebrowser&Path=//"
  • Delete (UserFiles): curl -b cookies.txt "https:///UserFiles?Action=DELETE&Name=" -X "POST" -H "Origin: https://" -H "Referer: https:///Portal/Portal.mwsl?PriNav=UserFiles"
  • Delete (DataLogs): curl -b cookies.txt "https:///DataLogs?Action=DELETE&P=/DataLogs/" -X "POST" -H "Origin: https://" -H "Referer: https:///Portal/Portal.mwsl?PriNav=DataLogs"
  • List (UserFiles/DataLogs): curl "https:///DataLogs?Action=LIST" --output list.txt

Regarding your questions:

  • Unnecessary Options: The --no-check-certificate and --insecure options should only be used if you are unable to establish a secure connection. If possible, configure a secure connection instead.
  • Additional Operations: As you've noted, direct upload to DataLogs isn't supported. Beyond the commands you've provided, the webserver API doesn't expose other documented file management operations.

This information is valuable for automating file management tasks with the S7-1500 webserver. For further support, please consult the Siemens Industry Online Support.

0

Accessing S7-1500 Data with Limited Access

You're facing a common challenge when direct PLC access isn't permitted. Given your client's restrictions against direct connectivity and a new PLC/PUT/GET solution, here are possibilities, though each has limitations:

  • Indirect OPC Routing: Explore if the IPC127E exposes *any* OPC tags representing the desired S7-1500 data, even read-only. Kepware might connect to the IPC127E's OPC server. This is highly dependent on the IPC127E's configuration.
  • Data Logging & File Transfer: If the IPC127E logs the necessary data to files, Kepware can monitor these files for updates. This introduces latency and isn't real-time.
  • Third-Party Data Concentrators: Some third-party devices can collect S7 data with limited access and expose it via OPC UA. This adds cost and complexity.

Important Considerations: Without direct PLC access or an intermediary data transfer method, reliable, real-time data acquisition from the S7-1500 will be difficult. Re-emphasize the benefits of a dedicated data collection PLC using PUT/GET for a robust solution.

For further assistance and product details, please visit: Siemens Industry Online Support

0