Kkula
Browse Questions » SIMATIC S7-1200: S7 series 1200 Web Userpages

About User

Questions Asked: 24.4K

Answers Given: 0

0
  • Open

SIMATIC S7-1200: S7 series 1200 Web Userpages

Dear Sirs,
I'd like to use vue.js on S7-1200, I've followed what's Examples for the Web Server Entry ID: 68011496, V3.0, 09/2019:
https://cache.industry.siemens.com/dl/files/496/68011496/att_997448/v1/68011496_Examples_for_S7WebServer_DOC_v3_en.pdf
Now I've inserted a basic build of my vue app, when I compile I get this error:
Can you please tell me if there's or there will be a way to use vue.js (https://vuejs.org/) inside a s7-1200?
Thanks, BR

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

Using Vue.js with S7-1200 Web Server

Dear Sir/Madam,

You've encountered a common challenge. The S7-1200's web server has limitations regarding modern JavaScript frameworks like Vue.js. While the examples (like Example for Web Server Entry ID: 68011496) demonstrate basic web page hosting, they don't fully support complex frameworks.

Current Status: Directly running a Vue.js application on the S7-1200 is not officially supported due to resource constraints (memory, processing power) and the web server's limitations. The error you're seeing is likely due to the complexity of the Vue.js build process not being compatible with the S7-1200's web server environment.

Possible Workarounds (with limitations):

  • Simplify Vue.js code: Reduce the complexity of your Vue.js application significantly. Avoid large libraries and complex components.
  • Pre-render HTML: Pre-render the Vue.js application to static HTML files and serve those from the S7-1200. This eliminates the need for client-side JavaScript execution on the PLC.
  • Use a separate server: Host the Vue.js application on a separate web server and use the S7-1200 only for data exchange via APIs (e.g., using JSON).

Future Outlook: Siemens is continually improving its products. Keep an eye on future S7-1200 firmware updates and documentation for potential enhancements regarding web server capabilities. Check Siemens Support for the latest information.

Sincerely,
Siemens Self Support

0
Add a comment