➤ You can see detailed PLC settings for the web server application in the above images.
➤ An S7-PLCSIM Advanced or a real PLC is required for the web server connection.
➤ You can access the HTML and CSS code of the website used in this project by clicking here.
• Select CPU 1513-1 PN.
• Open the properties page of the CPU.
• Choose the 'Web server' menu.
• In the 'General' section, activate 'Activate web server on this module'.
• Deactivate 'Permit access only with HTTPS'.
• In the 'User-defined pages' section, select the address where the website
is located.
• By clicking the 'Generate blocks' button, you include the website in the
PLC.
• Right-click on the location where the name of your project is under the
'Devices' menu.
• Activate the 'Protection' section in the window that appears by clicking
on 'Properties'.
• Add the 'WWW' command to the 'Main block' section.
• Open a new data block named 'DB'.
• Inside the data block, create a tag named 'deger' with a data type of 'int'.
• Go to your computer's Control Panel and access the Network Connections settings.
• Access the properties of the Siemens PLCSIM Virtual Ethernet Adapter and configure the IP address.
• To enable PLC connection, the IP address you enter in the Control Panel should match the PLC's IP address but be in a different subnet.
• Open S7-PLCSIM Advanced simulation and input the IP address.
• The entered IP address must match the PLC's IP address exactly.
• Proceed with the installation process in the TIA Portal program.
• If you can't find S7-PLCSIM Advanced, try connecting by entering the IP address.
• When the defined IP address is entered into an internet browser, the PLC's web page appears.
• To access our custom-made website, go to the User Pages section.
• Access the data block named "DB" that we created from within TIA Portal and go online.
• In the data block, assign a value to the "deger" tag to refresh the website.
• Depending on the value, the water tank rises accordingly.
• At the bottom of the water tank, you can also see the value.
- PLCs are commonly used in industrial processes to collect data. A web server allows you to display and analyze this data with a user-friendly interface.
- PLC-based web servers provide a cost-effective solution for industrial automation applications. They can be integrated into existing PLC systems.
- PLC-based web servers are expandable to meet your future needs. Adding new functions and features is easy.