If you browse to the IP Address of your PLC, you will see the main Siemens Web server login page. It handles retrieving the correct fragment from the Fragment data blocks as shown below: Insert the This function process requests from the browser and synchronizes the data in the User Pages. DB333 is used in conjunction with the WWW Function to control the retrieval and delivery of the fragments: In order for user pages to work, you have to call the We already know that DB334 stores the fragments. They will all get converted into data block fragments: You can include HTML files, JavaScript, CSS Files, and even image files. An array is dimensioned for each file.īelow you can see how each byte from the file is packed into the array:Īs you add more files to your folder, you may exceed the maximum number of bytes that can be contained in a data block, when this happens, another sequential data block is created. When you click the "Generate Blocks" button, the compiler takes all of these files and copies each byte into an array in the element of the Fragment data blocks. Initially, we just created a single "index.htm" file, but let's suppose you had several files in this folder. You will notice that the "Generate Blocks" function creates two new data blocks in your project, and you may be wondering what these are for.įragments are the name given to each file in your user pages folder. Then click Generate Blocks to compile the user page: Set the HTML Directory to the folder you created and the Default HTML page to the file you created. To enable user pages, navigate to the device configuration -> Web server -> User-defined Web pages. Now we can enable the user pages and use this file we created.