Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Práctica 7 - Web Server
Práctica 7 - Web Server
PROCESO DOCENCIA
24-G4
Fecha: Versión:
PROCEDIMIENTO GESTIÓN DE CURSOS
29-Ene-2018 0
GUÍA DE PRÁCTICA EN LABORATORIO - Documento impreso no
INGENIERÍA controlado
PRACTICE No. 1
NOMBRE DE LA PRÁCTICA
Introduction to the Siemens TIA portal ™
INTRODUCTION
Siemens TIA portal ™ is a widely used environment to develop automation projects for the Siemens
family of products. TIA is an acronym of Totally Integrated Automation. It is compatible with a wide
range of hardware, including CPU controllers of the S7-300, s7-400, s7-1200 and s7-1500
Programming, together with an extensive library of hardware and peripherals, including distributed
peripherals, variable frequency drives and Touch Screens.
The software also allows the configuration of industrial communication networks and the development
of Human Machine Interfaces (HMI) and Supervision Control And Data Acquisition (SCADA).
Objectives
Procedure:
Develop a simple project in TIA portal. Be sure to add the complete hardware configuration of your station for the
PLC siemens s7-1500 available at the 410GO Laboratory.
for demonstration purposes, enable the clock memory byte at the address 0. This enables the output toggle at
different frequencies of the bits M0.0 to M0.5.
Enable the security for everyone. You must at least enable these options
Select the web page and its directory. Also select the web DB number form 333. Then click on
Generate blocks. This button must be pressed each time the web page file is updated. For the
“select entry page” you can specify the UP1. This defines the start page of the web server.
The www block must be included on the OB1 block. The start address 333 has to be placed on the
input, The Ret_Val is a numeric value
Now, with a text editor, create the html code, as shown below
<!DOCTYPE html>
<!-- AWP_In_Variable Name='"out1"' -->
<!-- AWP_In_Variable Name='"out2"' -->
<!-- AWP_In_Variable Name='"Tag_6"' -->
<!-- AWP_In_Variable Name='"Tag_9"' -->
<html lang="esp">
<head>
<meta charset="utf-8">
<title> Web Server s7-1500</title>
<meta http-equiv="refresh" content="1" >
</head>
<body>
Arranque
<form>
<p>
<input type="submit" value="Start">
<input type="hidden" name='"out1"' value ="1">
</p>
</form>
<form>
<p>
<input type="submit" value="Stop">
<input type="hidden" name='"out1"' value ="0">
</p>
</form>
<form>
<p>
<input type="submit" value="Start2">
<input type="hidden" name='"out2"' value ="1">
</p>
</form>
<form>
<p>
<input type="submit" value="Stop2">
<input type="hidden" name='"out2"' value ="0">
</p>
</form>
<p>
salida::="out1":
</p>
<p>
salida2::="out2":
</p>
<p>
QB0::="Tag_9":
</p>
<p>
<style type="text/css">
.ProgressBar { width: 16em; border: 1px solid black; background: #eef; height: 1.25em;
display: block; }
.ProgressBarText { position: absolute; font-size: 1em; width: 16em; text-align: center; font-
weight: normal; }
.ProgressBarFill { height: 100%; background: #aae; display: block; overflow: visible; }
</style>
<div class="ProgressBar">
<div class="ProgressBarText">:="Tag_6":% completado</div>
</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#92B901";
ctx.fillRect(:="Tag_9":, :="Tag_9":, 100, 100);
</script>
</body>
</html>
Download the program to the controller. To view the web page, open the web browser and type the
controller IP. This simple example shows the potentiality of the html language to develop HMIs
interfaces.
Problems:
Results:
Test the performance of the system.