对于 SINAMICS S120 系列的所有控制单元 (CU310-2 和 CU320-2),通过固件版本 V4.6 的调试接口 (X127) 提供了一个 Web 服务器 。对于带有 PROFINET 接口的控制单元,也可通过此接口 (内置 PROFINET) 来访问该 Web 服务器。
The web server provides information on a SINAMICS device via its web pages. The access is realized using a standard web browser (e.g. Internet Explorer or Mozilla Firefox).
Users have the option to complement the standard web pages by their own web pages. The own created web pages ("user-defined web pages") can be subsequently uploaded to the SINAMICS S120 web server. Drive parameters can be read – and therefore the widest range of scenarios visualized – using these web pages, for example.
Task
The following states of a drive are to be visualized using a user-defined web page:
- Enable signals (e.g. OFF1, ramp-function generator enable, etc.) using color-coded status displays
- Speed and torque using graphics (e.g. tachometer display)
- Drive parameters (e.g. output voltage, motor temperature, etc.) in the form of a tableThe displayed data is updated at specific intervals; this means that changes to the drive state can be visualized.
The web page can be designed to address the user's own specific requirements and ideas.

Solution
Based on a sample web page, the procedure to create user-defined web pages for the SINAMICS S120 web server is explained in more detail in this application description.
The data to be displayed on the web page are read from the drive using the script language MiniWeb Server Language (MWSL).
Using JavaScript, the properties of the web page and its content can be accessed; for example, this allows data to be updated at specific intervals, i.e. read out of the drive again.
Cascading Style Sheets (CSS) are used for the design. The web page formatting is centrally saved in these sheets.

Advantages
The application described here offers you the following advantages:
- Drive parameters and data can be accessed via MWSL and a standard web browser – an engineering system is not required!
- The displayed data can be updated and accessed using JavaScript
- The web page is designed using HTML and CSS – so that users can freely implement their ideas and requirements
Downloads
Documentation 09/2018 (2,5 MB)
Code example pages V2.0 (51,0 KB)
Further Information
SINAMICS S: S120 web server - User-defined example pages 78388880
Last Changes
V2.0, 08/2017, new format .mwsl
Additional Keywords
motioncontrol_apc_applications
您可以前往全球资源库查看此文档:
http://support.automation.siemens.com/CN/view/zh/68691599
扫码分享