Vous êtes sur la page 1sur 41

COMUNICACIN

INDUSTRIAL
-PROFINET (PN)
ING.ESP. JOHN JAIRO PIEROS C.

SENA - VILLAVICENCIO

Ing.Esp. John Jairo Pieros C.

Buses de campo

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET Que es?


PROFINET es un estndar Ethernet
abierto que cumple la especificacin IEC
61158 para la automatizacin
industrial.
Este tipo de red permite conectar equipos
desde el nivel del campo (PLC y otros
dispositivos) hasta el nivel de gestin
(sistemas informticos e internet).

PROFIBUS DP

Ing.Esp. John Jairo Pieros C.

PROFINET
Desarrollado por Siemens para actualizar el sistema Profibus
actualizado a las redes Ethernet.
PROFINET I/O ofrece funcionamiento en tiempo real para
datos de E/S cclicos, donde tiempo real significa
programar/organizar el intercambio cclico con cada esclavo,
con alta prioridad y tiempos fijos.
Se pueden utilizar los cables y switches estndar de Ethernet
aunque existen Switches especficos preparados para el
entorno industrial con un alto grado de proteccin frente a los
agentes externos como son los Siemens Scalance.

Es un sistema Maestro-Esclavo, como en Profibus.


Se configura como una red de campo.
Los dispositivos ya no se direccionan mediante nmero de
nodo, sino mediante un nombre y una direccin IP que deben
ser nicas.
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Tipos de Redes
PROFINET IO
Equivalente a Profibus DP.
Misma visin de E/S que con el bus de campo.
Emplazamiento de las seales de E/S para el control en la
imagen de proceso.
Configuracin en la herramienta especfica del fabricante,
con configuracin del HW y lenguajes de programacin.
Reutilizacin a nivel de mdulo.

PROFINET CBA

Equivalente a Profibus FMS.


Vista de sistema superior.
Definicin de interfaces de comunicacin.
Configuracin a un nivel de sistema con una herramienta
para todos los fabricantes.
Reutilizacin a nivel de mquina.

PROFINET

Topologias de Red

Lnea: todas la estaciones que intervienen se conectan una


tras otra, una falla en un dispositivo causa una interrupcin
en la lnea.
Estrella: se obtiene conectando estaciones a un switch, el
nmero de nodos depende del switch.

Anillo: Configuracin robusta con hasta 50 dispositivos IO y


un mximo tiempo de reconfiguracin de 200ms (son usados
los dos puertos internos del CPU).
Configuracin mixta (anillo/estrella): con un anillo MRP que
brinda la mxima confiabilidad posible. El anillo MRP est
compuesto por un controlador IP as como switches. Los
elementos IO sern conectados a los switches.
La estructura rbol (configuracin mixta de lnea y estrella)
Interconectando varias estructuras en forma de estrella. Esta
topologa soporta hasta 250 dispositivos IO y hasta 62
switches conectados en serie.

PROFINET

Tecnologas de transmisin

Profinet utiliza el conjunto de protocolos TCP/IP para la


transferencia de datos en toda la empresa y a todos los niveles.
PROFINET es la evolucin del estndar abierto de Ethernet
industrial para la automatizacin. Utiliza Industrial Ethernet y
permite la comunicacin en tiempo real hasta el nivel de
campo
La conexin directa entre el PC y una CPU o la conexin directa
entre dos CPUs requiere un cable de par trenzado de tipo
cruzado,

Protocolo de control de transporte (TCP)


PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

Tipos de Comunicacin
Interfaces y tipos de comunicacin Familia S7-300 .

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Generalidades

PROFINET PN

Tipos de Comunicacin
Conexin de red y S7
Direccin de Conexin ID
Bloques de fallo
Marcas de Ciclo

Ing.Esp. John Jairo Pieros C.

PROFINET
INSTRUCCIN
PUT: Enviar
GET: Recibir

PUT: Enviar
GET: Recibir

AG_SEND: Enviar
AG_RECV: Recibir
AG_SEND: Enviar
AG_RECV: Recibir
PROFINET PN

Tipos de Comunicacin
CONEXIN
CONEXIN S7

CONEXIN S7

CONEXIN S7

CONEXIN TCP

INSTRUCCIN
PUT: Enviar
GET: Recibir

AG_SEND: Enviar
AG_RECV: Recibir

PUT: Enviar
GET: Recibir

AG_SEND: Enviar
AG_RECV: Recibir
Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

ESTABLECER CONEXIN
DE RED Y S7

Configurado el hardware , se
debe establecer la conexin
entre la CPU 314C-2PN/DP y
el modulo CP 343,1 lean
Conexin de RED
Conexin S7

Una CONEXIN define la asignacin


lgica de dos interlocutores con el fin de
ejecutar servicios de comunicacin.
Una conexin define lo siguiente:
Interlocutores que intervienen
Tipo de conexin (p. ej. conexin S7)
Va de conexin
PROFINET PN

Conexin de RED

seleccionar en la parte superior


Conectar en red y posteriormente
enlazar el puerto PN de la CPU
314C-2PN/DP y conectarlo con el
puerto PN del modulo CP343-1 lean

Conexin S7
seleccionar en la parte superior
CONEXIONES y seleccionar
CONEXIN S7, posteriormente
enlazar el puerto PN de la CPU
314C-2PN/DP y conectarlo con el
puerto PN del modulo CP343-1 lean
Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

DIRECCION DE
CONEXIN: ID

Realizada la comunicacin S7 , seleccionar la lnea punteada y verificar la direccin de comunicacin ID

1
Direccin ID de la conexin
S7, necesaria para el bloque
PUT o GET

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

AGREGAR BLOQUES
PARA EVITAR FALLOS

Se debe agregar el bloque OB82, OB122, OB86 para evitar que la CPU entre a STOP y que las funciones PUT y GET
funcionen. EL OB1 ES EL BLOQUE PRINCIPAL DONDE SE PROGRAMA EL PLC

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

MARCAS DE CICLO

Comunicacin Profinet
314C-2PN/DP

MARCAS DE CICLO S7-300


1.
2.
3.
4.

1
2

Click en dispositivos y redes


y luego clik en la CPU 314C.
Seleccionar el PLC CPU
314c-2PN/DP
En la pestaa GENERAL click
en Marca de ciclo.
Seleccionar la casilla Marca
de ciclo y digitar el valor del
Byte de la marca (tener en
cuenta que todos los bits
van a ser intermitentes

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

MARCAS DE CICLO

Comunicacin Profinet
314C-2PN/DP

MARCAS DE CICLO

USO

Marca que modifica peridicamente su estado binario


en una relacin 1:1 entre impulso y pausa.

Se utilizan en el programa de usuario, p. ej., para controlar


indicadores luminosos con una luz intermitente o lanzar
procesos peridicos, como la adquisicin de un valor real

En la parametrizacin de la marca de ciclo se determina


el byte de marcas de la CPU que se convertir en el
byte de marcas de ciclo.

FRECUENCIA
Cada bit del byte de
marcas de ciclo tiene
asignada una
frecuencia. La tabla
siguiente muestra la
asignacin:
PROFINET PN

COLOCAR ESTA MARCA EN LA ENTRADA QUE ACTIVA LA


RECEPCION Y/O EN ENVIO DE DATOS DEL MODULO PUT O GET

Bit del byte de marcas de


ciclo

Duracin del perodo (s)

2,0

1,6

1,0

0,8

0,5

0,4

0,2

0,1

Frecuencia (Hz)

0,5

0,625

1,25

2,5

10

Ing.Esp. John Jairo Pieros C.

PROFINET
FUNCIONES DE COMUNICACIN

ENVIAR DATOS: PUT


RECIBIR DATOS: GET

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP

FUNCIONES DE
COMUNICACION

PLC CON ETHERNET INTEGRADO


La funcin de comunicacin se debe tomar de la librera de
instrucciones:

Comunicacin
GET: recibir datos (sin pasar por modulo CP)
PUT: Enviar datos (sin pasar por modulo CP)
El procedimiento es
igual para el S7-1200
PUT: Enviar
GET: Recibir
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP

PLC CON ETHERNET


INTEGRADO

ENVIAR DATOS: PUT


REQ: activa el intercambio de datos con un flanco ascendente, usar
marcas de ciclo.

MARCA
DE CICLO

ID: se indica el nmero de la conexin, (ver direccin de conexin)

ADDR_1:
especificar el rea (marcas) de la CPU interlocutora (esclavo) que
debe escribirse (Formato ANY: P#byte numero de bytes)
SD_1:
especificar el rea (marcas) de la CPU local desde la que se van a
enviar los datos (Formato ANY: P#byte numero de bytes)

PROFINET PN

PLC CON ETHERNET INTEGRADO


GET: recibir datos (sin pasar por modulo CP)
PUT: Enviar datos (sin pasar por modulo CP)
Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP

PLC CON ETHERNET


INTEGRADO

ENVIAR DATOS: PUT

Para configurar la direccin ID tambin y otros parmetros click en


configuracin, posteriormente configurar la CPU interlocutora
(esclavo)

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP

PLC CON ETHERNET


INTEGRADO

RECIBIR DATOS: GET


REQ: activa el intercambio de datos con un flanco ascendente, usar
marcas de ciclo.

MARCA
DE CICLO

ID: se indica el nmero de la conexin, (ver direccin de conexin)

ADDR_1:
especificar el rea (marcas) de la CPU interlocutora que debe
leerse
RD_1:
especificar el rea (marcas) de la CPU local desde la que se van a
recibir los datos (Formato ANY: P#byte numero de bytes)

PROFINET PN

PLC CON ETHERNET INTEGRADO


GET: recibir datos (sin pasar por modulo CP)
PUT: Enviar datos (sin pasar por modulo CP)
Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP

PLC CON ETHERNET


INTEGRADO

RECIBIR DATOS: GET


Para configurar la direccin ID tambin y otros parmetros click en
configuracin, posteriormente configurar la CPU interlocutora
(esclavo)

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
FUNCIONES DE COMUNICACIN
MDULOS CP ETHERNET

ENVIAR DATOS: AG_SEND


RECIBIR DATOS: AG_RECV

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Modulo CP343-1 Lean

FUNCIONES DE
COMUNICACION

MODULO ETHERNET CP 343-1 LEAN


La funcin de comunicacin se debe tomar de la librera:

Comunicacin
Procesador de comunicaciones
Simatic NET CP
Open User Comunication
AG_SEND: Enviar datos (por modulo CP)
AG_RECV: Recibir datos (por modulo CP)

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Modulo CP343-1 Lean

FUNCIONES DE
COMUNICACIN
CP 343-1 LEAN

LADDR: Direccin inicial del mdulo

272 decimal = 110 hexadecimal

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Modulo CP343-1 Lean

FUNCIONES DE
COMUNICACIN
CP 343-1 LEAN

ENVIAR DATOS: AG_SEND


ACT: activa el intercambio de datos con un flanco
ascendente, en este ejemplo al activar la marca ENVIAR la
instruccin enva el dato

ID: se indica el nmero de la conexin, (ver direccin de


conexin)
LADDR: Direccin inicial del mdulo
SEND: Direccin del byte que se va a enviar en formato
ANY (P#byte numero de bytes)
LEN: Indica el nmero de bytes que se van a tomar del CP
Ethernet en el rea de datos.
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Modulo CP343-1 Lean

FUNCIONES DE
COMUNICACIN
CP 343-1 LEAN

RECIBIR DATOS: AG_RECV


ID: se indica el nmero de la conexin, (ver direccin de
conexin)
LADDR: Direccin inicial del mdulo
RECV: Direccin del byte que se va a Recibir en formato ANY
(P#byte numero de bytes)

LEN: Indica el nmero de bytes que se han tomado del CP


Ethernet en el rea de datos.

PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

Ejemplo 1 Comunicacin Profinet


con modulo CP
PLC S7-300
CPU314C-2PN/DP

PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

+
El procedimiento es
igual para el S7-1200
PUT: Enviar
GET: Recibir
PROFINET PN

CPU314C-2PN/DP

PUT: Enviar
GET: Recibir

CPU 313C

Profinet

CP343-1 LEAN

AG_SEND: Enviar
AG_RECV: Recibir
Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

1. CONFIGURACIN HARDWARE

IP: 192.168.1.11
M.S: 255.255.255.0
P.E.: 192.168.1.1

IP: 192.168.1.12
M.S: 255.255.255.0
P.E.: 192.168.1.1

PROFINET PN

Si no se carga la
versin correcta
se genera un
fallo en el
MODULO
PROFINET

Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP - Modulo CP343-1 Lean

2. CONEXIN S7

Seleccionar el icono CONEXIONES y elegir Conexin S7 del men,


luego Se realiza la unin de los 2 puertos ethernet de cada PLC
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP a Modulo CP343-1 Lean

PLC S7-300
CPU314C-2PN/DP

PROFINET PN

3. ENVIAR EJEMPLO
PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

Ing.Esp. John Jairo Pieros C.

PROFINET

Comunicacin Profinet
314C-2PN/DP con Modulo CP343-1 Lean

PLC S7-300
CPU314C-2PN/DP

PROFINET PN

4. RECIBIR EJEMPLO

PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP y S7-1200

Ejemplo 2 Comunicacin Profinet


S7-300 A S7-1200
PLC S7-300
CPU314C-2PN/DP

PLC S7-1200
CPU 1214C

CPU 1214C

CPU314C-2PN/DP

PUT: Enviar
GET: Recibir
PROFINET PN

Profinet

PUT: Enviar
GET: Recibir
Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP y S7-1200

IP: 192.168.1.11
M.S: 255.255.255.0
P.E.: 192.168.1.1

PROFINET PN

1. CONFIGURACIN HARDWARE

IP: 192.168.1.12
M.S: 255.255.255.0
P.E.: 192.168.1.1

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP y S7-1200

2. CONEXIN S7

Seleccionar el icono CONEXIONES y elegir Conexin S7 del men,


luego Se realiza la unin de los 2 puertos ethernet de cada PLC
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

3. ENVIAR EJEMPLO

Comunicacin Profinet
314C-2PN/DP y S7-1200

PLC S7-300
CPU314C-2PN/DP

PROFINET PN

PLC S7-1200
CPU 1214C CON MODULO CM1242-5

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
314C-2PN/DP y S7-1200

PLC S7-300
CPU314C-2PN/DP

PROFINET PN

4. RECIBIR EJEMPLO
PLC S7-1200
CPU 1214C CON MODULO CM1242-5

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Mdulos CP343-1 Lean

Ejemplo 3 Comunicacin Profinet


Mdulos CP
PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

+
CPU 313C

+
CP343-1 LEAN

AG_SEND: Enviar
AG_RECV: Recibir
PROFINET PN

CPU 313C

Profinet

CP343-1 LEAN

AG_SEND: Enviar
AG_RECV: Recibir
Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Mdulos CP343-1 Lean

IP: 192.168.1.12
M.S: 255.255.255.0
P.E.: 192.168.1.1

PROFINET PN

1. CONFIGURACIN HARDWARE

IP: 192.168.1.10
M.S: 255.255.255.0
P.E.: 192.168.1.1

Ing.Esp. John Jairo Pieros C.

PROFINET
Comunicacin Profinet
Mdulos CP343-1 Lean

2. CONEXIN TCP

Seleccionar el icono CONEXIONES y elegir Conexin TCP del men,


luego Se realiza la unin de los 2 puertos ethernet de cada PLC
PROFINET PN

Ing.Esp. John Jairo Pieros C.

PROFINET

3. ENVIAR EJEMPLO

Comunicacin Profinet
Mdulos CP343-1 Lean

PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

PROFINET PN

PLC S7-300
CPU313C CON MODULO CP343-1 LEAN

Ing.Esp. John Jairo Pieros C.

FIN
Gracias

Vous aimerez peut-être aussi