IOT NODE-RED APPLICATIONS 6 - Siemens PLC Communication (Webinar)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 31

UC20-WL2000-AC

Siemens PLC Communication


S7 & S7Comm Node-RED Configuration

Xavi Cerqueda Puig


Technical Support Engineer
Electronics, Communications & Automation
Agenda

01 Application Overview & Setup

02 S7 Library Nodes

03 S7comm Library Nodes

Page 2 12/04/2021 © Weidmüller


Old Webinars

01 U-Control Web Basics 06 Node-RED: Databases & Cloud Connection

02 Node-RED Basics 07 ModbusTCP & RS485 Module

03 Node-RED: SD Card & e-mail handling 08 Siemens PLC’s Communication

04 Node-RED Dashboard & Visualization

05 U-Link Remote Access & IoT Dashboard

Page 3 12/04/2021 © Weidmüller


Agenda

01 Application Overview & Setup

02 S7 Library Nodes

03 S7comm Library Nodes

Page 4 12/04/2021 © Weidmüller


Overview

UC20-WL2000-AC PLC S7-1200

Page 5 12/04/2021 © Weidmüller


Library Nodes

Page 6 12/04/2021 © Weidmüller


Access Web Server

Access web server or


configuration interface of IoT
Controller through any browser.

USB Port: 192.168.10.202

Ethernet Port X1: 192.168.0.101


Ethernet Port X2: 192.168.1.101

Page 7 12/04/2021 © Weidmüller


Access Node-RED

Page 8 12/04/2021 © Weidmüller


Agenda

01 Application Overview & Setup

02 S7 Library Nodes

03 S7comm Library Nodes

Page 9 12/04/2021 © Weidmüller


S7 in Node

With double click in s7 in node, you can edit the


connection paràmeters:

• PLC: PLC you want to connect with (see


next slide)
• Mode: You can choose between single or
all variables
• Variable: You can select the specific
variable you want to read (in case you
choose single variable mode)

Page 10 12/04/2021 © Weidmüller


S7 in Node

In this tab, you can edit the connection


paràmeters:

• Address: PLC IP Address


• Mode: Rack/Slot (Default)
• Port: 102 (Default)
• Slot: 1 (for PLC s1200 and s1500)
or 2 (for s7-300)
• Rack: 0 (Default)

Cycle time and Timeout by Default.


You can also add the variables you want to
read/write in the other tab (see next slide).

Page 11 12/04/2021 © Weidmüller


S7 in Node
In this tab, you can
add a list of variables

Page 12 12/04/2021 © Weidmüller


S7 in Node

Page 13 12/04/2021 © Weidmüller


S7 in Node
If you change the status
of the DI2, you will
receive a message in
the debug screen.

Page 14 12/04/2021 © Weidmüller


S7 out Node

Page 15 12/04/2021 © Weidmüller


S7 out Node

If you press the true inject, the


status of the variable DO0, will
change to 1

Page 16 12/04/2021 © Weidmüller


S7 out Node

If you press the false inject, the


status of the variable DO0, will
change to 0

Page 17 12/04/2021 © Weidmüller


S7 out Node

If you don’t select any


variable in the s7 out node,
you can send variable
name through msg.variable
(see next slide)

Page 18 12/04/2021 © Weidmüller


S7 out Node

If you don’t select any


variable in S7 out
node, you can send
variable name through
msg.variable

Page 19 12/04/2021 © Weidmüller


Agenda

01 Application Overview & Setup

02 S7 Library Nodes

03 S7comm Library Nodes

Page 20 12/04/2021 © Weidmüller


S7comm Read Node

Page 21 12/04/2021 © Weidmüller


S7comm Read Node

Page 22 12/04/2021 © Weidmüller


S7comm Read Node

Page 23 12/04/2021 © Weidmüller


S7comm Read Node
If you press inject
node, it will read the
DI_0 variable, which is
in the position I0.0 of
the PLC.

Page 24 12/04/2021 © Weidmüller


S7comm Read Node
If you press inject
node, it will read the
DI_0 variable, which is
in the position I0.0 of
the PLC.

Page 25 12/04/2021 © Weidmüller


S7comm Write Node

Page 26 12/04/2021 © Weidmüller


S7comm Write Node

With double click in s7comm write node,


you can edit the connection paràmeters:

• Connection: PLC you want to


connect with (see next slide)
• Signal: Variable you want to
write

Page 27 12/04/2021 © Weidmüller


S7comm Write Node

Page 28 12/04/2021 © Weidmüller


S7comm Write Node

Page 29 12/04/2021 © Weidmüller


Thank you!
Contact

Weidmüller S.A
Name Xavi Cerqueda Puig
Position Technical Support – Electronics, Communications & Automation
Pol. Ind. Sudoeste C/ Narcís Monturiol 11-13
08960 Sant Just Desvern - Barcelona
Email xavier.cerqueda@weidmueller.com
Web www.weidmuller.es

You might also like