Automatically Read Or Upload User Files - Siemens SIMATIC S7-1500 Function Manual

Web server
Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

3.15.1

Automatically read or upload user files

In addition to the Web server's user interface, you can automatically list, delete, download
and upload UserFiles. Use JavaScript or Bash for this, for example.
Opening UserFiles from the SIMATIC memory card
The CPU makes a URL in the following format available so that you can list UserFiles
automatically from the SIMATIC memory card of your CPU:
http[s]://[ip]/UserFiles?Action=List
Enter the correct IP address of the interface of your CPU at this URL and use the
appropriate transfer protocol (HTTP or HTTPS), e.g.
https://192.168.2.132/UserFiles?Action=LIST
browser or command line interpreter.
The URL returns a list of the UserFiles on the SIMATIC memory card. Each entry returns the
URL by which you download or delete the corresponding UserFile from the CPU. The
actions to be performed are separated by a vertical line "|".
For simple syntax analysis of the list by web-based programming languages (such as
JavaScript), the individual URLs are separated by a line break
example shows the syntax of two URLs that access the UserFiles
File1.csv
on=DELETE&E=1<CR><LF>
File2.csv
on=DELETE&E=1<CR><LF>
<CR><LF>
When the URLs are called successfully, the CPU returns the status code
also returns this status code if there are no UserFiles on the SIMATIC memory card.
Note
Access authorization to the CPU for the reading out of data
In order to download UserFiles from the CPU, the user must have reading rights for the
CPU. If the user does not have the required rights, the CPU returns the status code
FORBIDDEN
Web server
Function Manual, 11/2019, A5E03484625-AG
|
/UserFiles?Name=File1.csv&Action=DOWNLOAD&E=1
|
/UserFiles?Name=File2.csv&Action=DOWNLOAD&E=1
in the HTTP Response.
. Subsequently call up the URL in your
<CR><LF>
File1.csv
|
/UserFiles?Name=File1.csv&Acti
|
/UserFiles?Name=File2.csv&Acti
Web pages
3.15 User files
. The following
and
:
File2.csv
. The CPU
200 OK
403
117

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200proSimatic et 200sp

Table of Contents