SlideShare a Scribd company logo
Pushing Data from S7-1200 to
Cloud
Automation Summit
Boca Raton, FL, June 26-28, 2017
DMC Overview
Established in 1996, DMC serves customers worldwide from offices in
Chicago, Boston, Denver, Houston, New York, and St. Louis
employees & growing
120+
Siemens Expertise
31 Siemens Certified Engineers
DMC Customers
Automotive Chemical & Food Processing
Consumer Goods Defense Contracting Energy & Utilities Food & Beverage
Packaging Pharmaceutical Printing & Textiles Semiconductor
Special Machinery Telecommunications Test & Measurement
Industries Served
Presenter Info
• M.S. in Systems Engineering – Chelyabinsk State University (Russia)
• With DMC since 2004
• Siemens Certified Professional
• Embedded system experience
Boris Cherkasskiy
Principal Engineer (Denver)
Agenda
• Project overview. Have this
problem been solved before?
• Communication options
between PLC and IoT
• Communication protocol
implementation on PLC side
• Overview of visualization
platforms
• Goal: Report machine status to easy-accessible dashboard
• Not an issue if you have SCADA/MES
• Challenging for machine-level control system
• Cost effective approach
Project Overview
• Chart recorder (my personal favorite)
• SCADA/MES system
• OTS data collection options
• Custom data collection solutions
Classic Approach
• Utilize well-developed visualization platforms
already available for IoT application
• Minimize intermediate hardware/software
• Use familiar technology (PLC)
• Inexpensive/free to operate
Proposed Solution
Cloud-based visualization
• Simple to set up, no “programing” required*
• Nearly real-time updates
• Web interface
• Mobile application
Benefits of the Solution
• Another cool term?
• Any device object connected to the Internet?
• Can one thing talk to another thing? Sure thing!
• It seems to be mostly used for dashboard-style applications
• Multiple web-enabled visualization options
Short Overview of IoT
• Target machine-level application
• Easy to use, familiar to automation engineers
• Supports variety of industrial protocols
o ProfiNet
o Modbus
o ProfiBus
• Unclear how to make it communicate
to the existing IoT infrastructure
Siemens S7-1200 Overview
PLC
protocols
IoT
protocols?
• On hardware level it could be anything, from custom audio
(including Morse code!) to Ethernet, WiFi, etc.
• Data protocols, could be anything too:
IoT Protocols Overview
Protocol Notes
Custom protocols Application-specific, non-standard
REST (Representational State Transfer)
HTTP (Hypertext Transfer Protocol)
Websocket (Part of HTML5)
SOAP (Simple Object Access Protocol)
Heavy to implement, requires extensive computing
power/resources to create and parse human-readbe
data (strings)
MQTT and MQTT-SN Much simpler/lightweight protocol
• Works on to of the TCP/IP protocol (PLC-friendly)
• Event-driven protocol
• Publisher/subscriber architecture
• Flexible message delivery/acknowledge mechanism (QoS)
MQTT Protocol Overview
Publisher
Broker
Subscriber
Subscriber
Subscriber
Topic
Topic
Stat/Temp or
Bottle_temp
MQTT Protocol. QoS
Publisher
Broker
Subscriber
Subscriber
Subscriber
Topic
Topicat least once
* QoS 2 is not supported by some platforms discussed later
Stat/Temp or
Bottle_temp
• Very simple protocol (the whole spec is ~50 pages)
• Binary protocol
o Low bandwidth
o Small memory footprint
• Widely accepted in IoT world
• Supported by IBM/Facebook/Amazon/Microsoft/etc.
• Lets implement MQTT on the PLC!
Is MQTT Suitable for PLC/IoT Communication?
Simplicity of the protocol has some downsides:
MQTT Downsides
Issues Mitigation
Data type is not defined as part of the protocol Vendor defines data formats. Just follow their rules
No encryption implemented as part of the protocol Could run over SSL (requires Secure Sockets Layer) 
But, SSL is not implemented on the PLC side 
Login information transmitted as clear text Key/token is transmitted instead of the actual password
There is no server identity verification Implemented as one way communication only.
Predefined response size, harder to craft malicious
packets
All of the above Run your own local MQTT broker. Bridge local MQTT
broker to the Internet via secured channel (MQTT over
SSL, VPN, etc.)
• Could address security concerns
• Easy to run your own broker (broker is pretty simple application)
• Local MQTT Broker could bridge messages to another Broker
• Example: http://www.eclipse.org/mosquitto/download
Run Your Own MQTT Broker
Protocol Implementation on the PLC Side
fcMQTT_string
or
fcMQTT_dint
dbMQTT_Queue
fbMQTT
PLC
NETWORK
MQTT Broker
(local or cloud)
Overall Architecture
Example is available here: https://github.com/boriz/MQTT-SN-Arduino/blob/master/S7-1200/MQTT_Demo_V14.zap14
Protocol Implementation on the PLC Side
PLC example
Demo Unit
Cloud-based broker is usually included with visualization platform.
• Multiple Android-based dashboards. Probably the simplest option.
• Adafruit – Targets DIY/makers community. Very simple to use.
Still in “alpha” limited mode.
• IBM Watson – Very capable, flexible platform. Not trivial for outsiders.
• Microsoft – Probably pretty advanced. But…
Data Visualization
There is one issue with it: Unencrypted MQTT is not allowed by default
• Flexible IoT protocol gateway
• Standard (unencrypted) MQTT implementation is actually
one of the examples
• Programming required – Partially defeats the ideal of “simple” solution
• Probably worth future investigation/discussion
Data Visualization – Microsoft Azure IoT Hub
Where to find it: azure.com
• Very simple platform
• May be a bit limited for advanced stuff
• Only few things to configure:
o Key is auto-generated
o Feeds = topics
o Dashboard through GUI
o Still in “alpha” mode
Data Visualization - Adafruit
Where to find it: io.adafruit.com
Data Visualization - Adafruit
Configuring/Viewing Feeds (topics)
Data visualization - Adafruit
Configuring/Viewing Dashboard
• Advanced platform. May be a bit confusing to configure.
• Example mapping IBM Watson fields to the MQTT topic.
o MQTT topic: iot-2/evt/status/fmt/json
o MQTT message example: {"d":{"OEE":66}}
• Seems to be still work-in-progress with a few bugs here and there
(selecting property in the card)
Data Visualization – IBM Watson
Where to find it: internetofthings.ibmcloud.com
Data Visualization – IBM Watson
Configuring/Viewing Dashboard
Data Visualization – Android (MQTT Dash)
Very easy to configure, but limited
Where to find it: search “MQTT Dash” in Google Play
Questions?
Appendix
PLC Implementation Details
Description of FCs
• Only 2 blocks/data types implemented so far
o DINT – Integer
o String – Universal/everything else
• Value may need special formatting (IBM)
Protocol Implementation on the PLC Side
fcMQTT_string
sInTopic
iInQoS
sInValueFormat
sInValue
fcMQTT_dint
sInTopic
iInQoS
sInValueFormat
diInValue
Format String explanation
• sInValueFormat is empty string – pass Value parameter as is
• sInValueFormat is not empty – find and replace <<value>> in the
format string with actual value and pass it to the queue
Example:
sInValueFormat: {"d":{"Message":”<<value>>”}}
sInValue: “Hello world”
String sent to the MQTT Broker: {"d":{"Message":”Hello world”}}
Protocol Implementation on the PLC Side
Overview of fbMQTT input parameters
• iInQueueSize – how many elements in the
dbMQTT_Queue datablock
• sInClientID – some services (IBM) requires
specific Client ID
• sInUserName – user name (usually, “use-
token-auth” for IBM)
• sInPassword – password/key/token
• bInCleanSession – not very important for
publishing. Set to 1 in most cases
• bInResetError – Reset bit/push button/etc.
Protocol Implementation on the PLC Side
fbMQTT
iInQueueSize
sInClientID
sInUserName
sInPassword
bInCleanSession
bInResetError
End Presentation
Track: Maintenance & Operations
Connect Event ID Session #10.5

More Related Content

What's hot

Auto Code Generation and Rapid Brewery/Distillery Automation
Auto Code Generation and Rapid Brewery/Distillery AutomationAuto Code Generation and Rapid Brewery/Distillery Automation
Auto Code Generation and Rapid Brewery/Distillery Automation
DMC, Inc.
 
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU GatewaysIntroduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
ICP DAS USA, Inc.
 
Distributed Control System
Distributed Control SystemDistributed Control System
Distributed Control System3abooodi
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
plc_course
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication SystemsLiving Online
 
Sitrain s7 1200 (exercicios)
Sitrain s7 1200 (exercicios)Sitrain s7 1200 (exercicios)
Sitrain s7 1200 (exercicios)
confidencial
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
confidencial
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMI
BOSCH
 
Introduction to PROFINET - Derek Lane of Wago
Introduction to PROFINET -  Derek Lane of WagoIntroduction to PROFINET -  Derek Lane of Wago
Introduction to PROFINET - Derek Lane of Wago
PROFIBUS and PROFINET InternationaI - PI UK
 
Treinamento a familia s7 200
Treinamento a familia s7 200Treinamento a familia s7 200
Treinamento a familia s7 200
confidencial
 
_PLC and HMI Development with Siemens TIA Portal.pdf
_PLC and HMI Development with Siemens TIA Portal.pdf_PLC and HMI Development with Siemens TIA Portal.pdf
_PLC and HMI Development with Siemens TIA Portal.pdf
RafaelRiesgo2
 
SCADA
SCADASCADA
Delta V Control System Overview
Delta V Control System OverviewDelta V Control System Overview
Delta V Control System OverviewSumeet Goel
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
confidencial
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loop
Mahmoud Hussein
 
Ch6 v70 sfc_en
Ch6 v70 sfc_enCh6 v70 sfc_en
Ch6 v70 sfc_en
confidencial
 
Asi presentation 08
Asi presentation 08Asi presentation 08
Asi presentation 08
manojchandrasekharan
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
EMERSON EDUARDO RODRIGUES
 
Vt training plc_1
Vt training plc_1Vt training plc_1
Vt training plc_1
Kumar Navaneethan
 

What's hot (20)

Auto Code Generation and Rapid Brewery/Distillery Automation
Auto Code Generation and Rapid Brewery/Distillery AutomationAuto Code Generation and Rapid Brewery/Distillery Automation
Auto Code Generation and Rapid Brewery/Distillery Automation
 
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU GatewaysIntroduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
Introduction to Modbus to Ethernet Device Servers and Modbus TCP to RTU Gateways
 
Distributed Control System
Distributed Control SystemDistributed Control System
Distributed Control System
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication Systems
 
Sitrain s7 1200 (exercicios)
Sitrain s7 1200 (exercicios)Sitrain s7 1200 (exercicios)
Sitrain s7 1200 (exercicios)
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMI
 
Introduction to PROFINET - Derek Lane of Wago
Introduction to PROFINET -  Derek Lane of WagoIntroduction to PROFINET -  Derek Lane of Wago
Introduction to PROFINET - Derek Lane of Wago
 
Treinamento a familia s7 200
Treinamento a familia s7 200Treinamento a familia s7 200
Treinamento a familia s7 200
 
_PLC and HMI Development with Siemens TIA Portal.pdf
_PLC and HMI Development with Siemens TIA Portal.pdf_PLC and HMI Development with Siemens TIA Portal.pdf
_PLC and HMI Development with Siemens TIA Portal.pdf
 
SCADA
SCADASCADA
SCADA
 
Delta V Control System Overview
Delta V Control System OverviewDelta V Control System Overview
Delta V Control System Overview
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loop
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
Ch6 v70 sfc_en
Ch6 v70 sfc_enCh6 v70 sfc_en
Ch6 v70 sfc_en
 
Asi presentation 08
Asi presentation 08Asi presentation 08
Asi presentation 08
 
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
Everything about PLC programming Practical lessons on PLC EMERSON EDUARDO ROD...
 
Vt training plc_1
Vt training plc_1Vt training plc_1
Vt training plc_1
 

Viewers also liked

5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
5 Tips for Using TIA Portal V14 to Decrease Safety Development Time 5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
DMC, Inc.
 
Tools for Managing your LabVIEW Source Code
Tools for Managing your LabVIEW Source CodeTools for Managing your LabVIEW Source Code
Tools for Managing your LabVIEW Source Code
DMC, Inc.
 
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoTReal-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
DMC, Inc.
 
Tips & Tricks for Motion with S7 1500 CPU
Tips & Tricks for Motion with S7 1500 CPUTips & Tricks for Motion with S7 1500 CPU
Tips & Tricks for Motion with S7 1500 CPU
DMC, Inc.
 
What's New in LabVIEW 2017
What's New in LabVIEW 2017What's New in LabVIEW 2017
What's New in LabVIEW 2017
DMC, Inc.
 
What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...
DMC, Inc.
 
Sitec 2017 Siemens Open Library Presentation
Sitec 2017 Siemens Open Library PresentationSitec 2017 Siemens Open Library Presentation
Sitec 2017 Siemens Open Library Presentation
DMC, Inc.
 
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
DMC, Inc.
 
Siemens Open Library- Summit 2016
Siemens Open Library- Summit 2016Siemens Open Library- Summit 2016
Siemens Open Library- Summit 2016
DMC, Inc.
 
Lightning Fast SCADA Development with Open Library for WinCC OA
Lightning Fast SCADA Development with Open Library for WinCC OA Lightning Fast SCADA Development with Open Library for WinCC OA
Lightning Fast SCADA Development with Open Library for WinCC OA
DMC, Inc.
 

Viewers also liked (10)

5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
5 Tips for Using TIA Portal V14 to Decrease Safety Development Time 5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
5 Tips for Using TIA Portal V14 to Decrease Safety Development Time
 
Tools for Managing your LabVIEW Source Code
Tools for Managing your LabVIEW Source CodeTools for Managing your LabVIEW Source Code
Tools for Managing your LabVIEW Source Code
 
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoTReal-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
 
Tips & Tricks for Motion with S7 1500 CPU
Tips & Tricks for Motion with S7 1500 CPUTips & Tricks for Motion with S7 1500 CPU
Tips & Tricks for Motion with S7 1500 CPU
 
What's New in LabVIEW 2017
What's New in LabVIEW 2017What's New in LabVIEW 2017
What's New in LabVIEW 2017
 
What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...What is the Siemens Open Library, and How it Decreased Development Time for E...
What is the Siemens Open Library, and How it Decreased Development Time for E...
 
Sitec 2017 Siemens Open Library Presentation
Sitec 2017 Siemens Open Library PresentationSitec 2017 Siemens Open Library Presentation
Sitec 2017 Siemens Open Library Presentation
 
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
Advanced Motion Control: Using the New 1500TF Processor and Siemens LAxis Lib...
 
Siemens Open Library- Summit 2016
Siemens Open Library- Summit 2016Siemens Open Library- Summit 2016
Siemens Open Library- Summit 2016
 
Lightning Fast SCADA Development with Open Library for WinCC OA
Lightning Fast SCADA Development with Open Library for WinCC OA Lightning Fast SCADA Development with Open Library for WinCC OA
Lightning Fast SCADA Development with Open Library for WinCC OA
 

Similar to Pushing Data from S7-1200 to Cloud

Industrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the RescueIndustrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the Rescue
Eurotech
 
Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?
Eurotech
 
InduSoft IoTView
InduSoft IoTViewInduSoft IoTView
InduSoft IoTView
AVEVA
 
IBC2022: Tips for Media-over-IP Network Design
IBC2022: Tips for Media-over-IP Network DesignIBC2022: Tips for Media-over-IP Network Design
IBC2022: Tips for Media-over-IP Network Design
Koji Oyama
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
confluent
 
DACHSview++features
DACHSview++featuresDACHSview++features
DACHSview++featuresA. Steinhoff
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IP
Dai Yang
 
Geef Industry 4.0 een boost
Geef Industry 4.0 een boostGeef Industry 4.0 een boost
Geef Industry 4.0 een boost
Howest_ENM
 
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux – Unified IoT Pl...
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux –  Unified IoT Pl...Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux –  Unified IoT Pl...
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux – Unified IoT Pl...
mCloud
 
Introduction to Building Communication Protocols
Introduction to Building Communication Protocols Introduction to Building Communication Protocols
Introduction to Building Communication Protocols
Mahmoud Ahmed
 
Secure IOT Gateway
Secure IOT GatewaySecure IOT Gateway
Secure IOT Gateway
LF Events
 
Securing the Internet of Things
Securing the Internet of ThingsSecuring the Internet of Things
Securing the Internet of Things
Paul Fremantle
 
Design Like a Pro - Best Practices For IIoT 2016
Design Like a Pro - Best Practices For IIoT 2016Design Like a Pro - Best Practices For IIoT 2016
Design Like a Pro - Best Practices For IIoT 2016
Inductive Automation
 
Automated Deployment and Management of Edge Clouds
Automated Deployment and Management of Edge CloudsAutomated Deployment and Management of Edge Clouds
Automated Deployment and Management of Edge Clouds
Jay Bryant
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
Manju Nathan
 
Audi - TCU Project - H Schumacher
Audi - TCU Project - H SchumacherAudi - TCU Project - H Schumacher
Audi - TCU Project - H Schumacher
mfrancis
 
Introduction to Fog
Introduction to FogIntroduction to Fog
Introduction to Fog
Cisco DevNet
 
Cisco Multi-Service FAN Solution
Cisco Multi-Service FAN SolutionCisco Multi-Service FAN Solution
Cisco Multi-Service FAN Solution
Cisco DevNet
 
Network-Connected Development with ZeroMQ
Network-Connected Development with ZeroMQNetwork-Connected Development with ZeroMQ
Network-Connected Development with ZeroMQ
ICS
 
plc8-200417125816.pdf
plc8-200417125816.pdfplc8-200417125816.pdf
plc8-200417125816.pdf
Robin8015873726
 

Similar to Pushing Data from S7-1200 to Cloud (20)

Industrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the RescueIndustrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the Rescue
 
Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?
 
InduSoft IoTView
InduSoft IoTViewInduSoft IoTView
InduSoft IoTView
 
IBC2022: Tips for Media-over-IP Network Design
IBC2022: Tips for Media-over-IP Network DesignIBC2022: Tips for Media-over-IP Network Design
IBC2022: Tips for Media-over-IP Network Design
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
 
DACHSview++features
DACHSview++featuresDACHSview++features
DACHSview++features
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IP
 
Geef Industry 4.0 een boost
Geef Industry 4.0 een boostGeef Industry 4.0 een boost
Geef Industry 4.0 een boost
 
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux – Unified IoT Pl...
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux –  Unified IoT Pl...Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux –  Unified IoT Pl...
Developers’ mDay u Banjoj Luci - Janko Isidorović, Mainflux – Unified IoT Pl...
 
Introduction to Building Communication Protocols
Introduction to Building Communication Protocols Introduction to Building Communication Protocols
Introduction to Building Communication Protocols
 
Secure IOT Gateway
Secure IOT GatewaySecure IOT Gateway
Secure IOT Gateway
 
Securing the Internet of Things
Securing the Internet of ThingsSecuring the Internet of Things
Securing the Internet of Things
 
Design Like a Pro - Best Practices For IIoT 2016
Design Like a Pro - Best Practices For IIoT 2016Design Like a Pro - Best Practices For IIoT 2016
Design Like a Pro - Best Practices For IIoT 2016
 
Automated Deployment and Management of Edge Clouds
Automated Deployment and Management of Edge CloudsAutomated Deployment and Management of Edge Clouds
Automated Deployment and Management of Edge Clouds
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Audi - TCU Project - H Schumacher
Audi - TCU Project - H SchumacherAudi - TCU Project - H Schumacher
Audi - TCU Project - H Schumacher
 
Introduction to Fog
Introduction to FogIntroduction to Fog
Introduction to Fog
 
Cisco Multi-Service FAN Solution
Cisco Multi-Service FAN SolutionCisco Multi-Service FAN Solution
Cisco Multi-Service FAN Solution
 
Network-Connected Development with ZeroMQ
Network-Connected Development with ZeroMQNetwork-Connected Development with ZeroMQ
Network-Connected Development with ZeroMQ
 
plc8-200417125816.pdf
plc8-200417125816.pdfplc8-200417125816.pdf
plc8-200417125816.pdf
 

More from DMC, Inc.

NI Week 2019 Overview
NI Week 2019 OverviewNI Week 2019 Overview
NI Week 2019 Overview
DMC, Inc.
 
VI package manager
VI package managerVI package manager
VI package manager
DMC, Inc.
 
NI Package Manager
NI Package ManagerNI Package Manager
NI Package Manager
DMC, Inc.
 
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
DMC, Inc.
 
Dynamic and Scalable Systems Using WinCC OA
Dynamic and Scalable Systems Using WinCC OADynamic and Scalable Systems Using WinCC OA
Dynamic and Scalable Systems Using WinCC OA
DMC, Inc.
 
Flexibility and standardization using dynamic IO addressing and option handling
Flexibility and standardization using dynamic IO addressing and option handlingFlexibility and standardization using dynamic IO addressing and option handling
Flexibility and standardization using dynamic IO addressing and option handling
DMC, Inc.
 
Ni week 2018 DMC presentation IoT
Ni week 2018 DMC presentation IoTNi week 2018 DMC presentation IoT
Ni week 2018 DMC presentation IoT
DMC, Inc.
 
Ni week 2018_ux_lab_viewcandothat
Ni week 2018_ux_lab_viewcandothatNi week 2018_ux_lab_viewcandothat
Ni week 2018_ux_lab_viewcandothat
DMC, Inc.
 
Ni week 2018 LLAMA presentation
Ni week 2018 LLAMA presentationNi week 2018 LLAMA presentation
Ni week 2018 LLAMA presentation
DMC, Inc.
 
Career Development Plans as a Competitive Advantage
Career Development Plans as a Competitive AdvantageCareer Development Plans as a Competitive Advantage
Career Development Plans as a Competitive Advantage
DMC, Inc.
 
10 Tips for Using SharePoint to prepare for the CSIA Audit
10 Tips for Using SharePoint to prepare for the CSIA Audit10 Tips for Using SharePoint to prepare for the CSIA Audit
10 Tips for Using SharePoint to prepare for the CSIA Audit
DMC, Inc.
 
Frank Riordan Siemens Automation Summit 2016 Presentation
Frank Riordan Siemens Automation Summit 2016 PresentationFrank Riordan Siemens Automation Summit 2016 Presentation
Frank Riordan Siemens Automation Summit 2016 Presentation
DMC, Inc.
 
Siemens oil and gas 2016 WinCC OA
Siemens oil and gas 2016   WinCC OASiemens oil and gas 2016   WinCC OA
Siemens oil and gas 2016 WinCC OA
DMC, Inc.
 
Siemens oil and gas 2016 LACT unit
Siemens oil and gas 2016 LACT unitSiemens oil and gas 2016 LACT unit
Siemens oil and gas 2016 LACT unit
DMC, Inc.
 
Dmc patco siemens og presentation
Dmc patco siemens og presentationDmc patco siemens og presentation
Dmc patco siemens og presentation
DMC, Inc.
 
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
DMC, Inc.
 
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
DMC, Inc.
 
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
DMC, Inc.
 

More from DMC, Inc. (18)

NI Week 2019 Overview
NI Week 2019 OverviewNI Week 2019 Overview
NI Week 2019 Overview
 
VI package manager
VI package managerVI package manager
VI package manager
 
NI Package Manager
NI Package ManagerNI Package Manager
NI Package Manager
 
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
Multi-site WinCC 7 Development with Centralized Process Historian & Informati...
 
Dynamic and Scalable Systems Using WinCC OA
Dynamic and Scalable Systems Using WinCC OADynamic and Scalable Systems Using WinCC OA
Dynamic and Scalable Systems Using WinCC OA
 
Flexibility and standardization using dynamic IO addressing and option handling
Flexibility and standardization using dynamic IO addressing and option handlingFlexibility and standardization using dynamic IO addressing and option handling
Flexibility and standardization using dynamic IO addressing and option handling
 
Ni week 2018 DMC presentation IoT
Ni week 2018 DMC presentation IoTNi week 2018 DMC presentation IoT
Ni week 2018 DMC presentation IoT
 
Ni week 2018_ux_lab_viewcandothat
Ni week 2018_ux_lab_viewcandothatNi week 2018_ux_lab_viewcandothat
Ni week 2018_ux_lab_viewcandothat
 
Ni week 2018 LLAMA presentation
Ni week 2018 LLAMA presentationNi week 2018 LLAMA presentation
Ni week 2018 LLAMA presentation
 
Career Development Plans as a Competitive Advantage
Career Development Plans as a Competitive AdvantageCareer Development Plans as a Competitive Advantage
Career Development Plans as a Competitive Advantage
 
10 Tips for Using SharePoint to prepare for the CSIA Audit
10 Tips for Using SharePoint to prepare for the CSIA Audit10 Tips for Using SharePoint to prepare for the CSIA Audit
10 Tips for Using SharePoint to prepare for the CSIA Audit
 
Frank Riordan Siemens Automation Summit 2016 Presentation
Frank Riordan Siemens Automation Summit 2016 PresentationFrank Riordan Siemens Automation Summit 2016 Presentation
Frank Riordan Siemens Automation Summit 2016 Presentation
 
Siemens oil and gas 2016 WinCC OA
Siemens oil and gas 2016   WinCC OASiemens oil and gas 2016   WinCC OA
Siemens oil and gas 2016 WinCC OA
 
Siemens oil and gas 2016 LACT unit
Siemens oil and gas 2016 LACT unitSiemens oil and gas 2016 LACT unit
Siemens oil and gas 2016 LACT unit
 
Dmc patco siemens og presentation
Dmc patco siemens og presentationDmc patco siemens og presentation
Dmc patco siemens og presentation
 
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
 
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
 
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
Democratizing Digital Marketing: Motivating and Managing Your Engineers to Cr...
 

Recently uploaded

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

Pushing Data from S7-1200 to Cloud

  • 1. Pushing Data from S7-1200 to Cloud Automation Summit Boca Raton, FL, June 26-28, 2017
  • 2. DMC Overview Established in 1996, DMC serves customers worldwide from offices in Chicago, Boston, Denver, Houston, New York, and St. Louis employees & growing 120+
  • 3. Siemens Expertise 31 Siemens Certified Engineers
  • 5. Automotive Chemical & Food Processing Consumer Goods Defense Contracting Energy & Utilities Food & Beverage Packaging Pharmaceutical Printing & Textiles Semiconductor Special Machinery Telecommunications Test & Measurement Industries Served
  • 6. Presenter Info • M.S. in Systems Engineering – Chelyabinsk State University (Russia) • With DMC since 2004 • Siemens Certified Professional • Embedded system experience Boris Cherkasskiy Principal Engineer (Denver)
  • 7. Agenda • Project overview. Have this problem been solved before? • Communication options between PLC and IoT • Communication protocol implementation on PLC side • Overview of visualization platforms
  • 8. • Goal: Report machine status to easy-accessible dashboard • Not an issue if you have SCADA/MES • Challenging for machine-level control system • Cost effective approach Project Overview
  • 9. • Chart recorder (my personal favorite) • SCADA/MES system • OTS data collection options • Custom data collection solutions Classic Approach
  • 10. • Utilize well-developed visualization platforms already available for IoT application • Minimize intermediate hardware/software • Use familiar technology (PLC) • Inexpensive/free to operate Proposed Solution Cloud-based visualization
  • 11. • Simple to set up, no “programing” required* • Nearly real-time updates • Web interface • Mobile application Benefits of the Solution
  • 12. • Another cool term? • Any device object connected to the Internet? • Can one thing talk to another thing? Sure thing! • It seems to be mostly used for dashboard-style applications • Multiple web-enabled visualization options Short Overview of IoT
  • 13. • Target machine-level application • Easy to use, familiar to automation engineers • Supports variety of industrial protocols o ProfiNet o Modbus o ProfiBus • Unclear how to make it communicate to the existing IoT infrastructure Siemens S7-1200 Overview PLC protocols IoT protocols?
  • 14. • On hardware level it could be anything, from custom audio (including Morse code!) to Ethernet, WiFi, etc. • Data protocols, could be anything too: IoT Protocols Overview Protocol Notes Custom protocols Application-specific, non-standard REST (Representational State Transfer) HTTP (Hypertext Transfer Protocol) Websocket (Part of HTML5) SOAP (Simple Object Access Protocol) Heavy to implement, requires extensive computing power/resources to create and parse human-readbe data (strings) MQTT and MQTT-SN Much simpler/lightweight protocol
  • 15. • Works on to of the TCP/IP protocol (PLC-friendly) • Event-driven protocol • Publisher/subscriber architecture • Flexible message delivery/acknowledge mechanism (QoS) MQTT Protocol Overview Publisher Broker Subscriber Subscriber Subscriber Topic Topic Stat/Temp or Bottle_temp
  • 16. MQTT Protocol. QoS Publisher Broker Subscriber Subscriber Subscriber Topic Topicat least once * QoS 2 is not supported by some platforms discussed later Stat/Temp or Bottle_temp
  • 17. • Very simple protocol (the whole spec is ~50 pages) • Binary protocol o Low bandwidth o Small memory footprint • Widely accepted in IoT world • Supported by IBM/Facebook/Amazon/Microsoft/etc. • Lets implement MQTT on the PLC! Is MQTT Suitable for PLC/IoT Communication?
  • 18. Simplicity of the protocol has some downsides: MQTT Downsides Issues Mitigation Data type is not defined as part of the protocol Vendor defines data formats. Just follow their rules No encryption implemented as part of the protocol Could run over SSL (requires Secure Sockets Layer)  But, SSL is not implemented on the PLC side  Login information transmitted as clear text Key/token is transmitted instead of the actual password There is no server identity verification Implemented as one way communication only. Predefined response size, harder to craft malicious packets All of the above Run your own local MQTT broker. Bridge local MQTT broker to the Internet via secured channel (MQTT over SSL, VPN, etc.)
  • 19. • Could address security concerns • Easy to run your own broker (broker is pretty simple application) • Local MQTT Broker could bridge messages to another Broker • Example: http://www.eclipse.org/mosquitto/download Run Your Own MQTT Broker
  • 20. Protocol Implementation on the PLC Side fcMQTT_string or fcMQTT_dint dbMQTT_Queue fbMQTT PLC NETWORK MQTT Broker (local or cloud) Overall Architecture Example is available here: https://github.com/boriz/MQTT-SN-Arduino/blob/master/S7-1200/MQTT_Demo_V14.zap14
  • 21. Protocol Implementation on the PLC Side PLC example
  • 23. Cloud-based broker is usually included with visualization platform. • Multiple Android-based dashboards. Probably the simplest option. • Adafruit – Targets DIY/makers community. Very simple to use. Still in “alpha” limited mode. • IBM Watson – Very capable, flexible platform. Not trivial for outsiders. • Microsoft – Probably pretty advanced. But… Data Visualization
  • 24. There is one issue with it: Unencrypted MQTT is not allowed by default • Flexible IoT protocol gateway • Standard (unencrypted) MQTT implementation is actually one of the examples • Programming required – Partially defeats the ideal of “simple” solution • Probably worth future investigation/discussion Data Visualization – Microsoft Azure IoT Hub Where to find it: azure.com
  • 25. • Very simple platform • May be a bit limited for advanced stuff • Only few things to configure: o Key is auto-generated o Feeds = topics o Dashboard through GUI o Still in “alpha” mode Data Visualization - Adafruit Where to find it: io.adafruit.com
  • 26. Data Visualization - Adafruit Configuring/Viewing Feeds (topics)
  • 27. Data visualization - Adafruit Configuring/Viewing Dashboard
  • 28. • Advanced platform. May be a bit confusing to configure. • Example mapping IBM Watson fields to the MQTT topic. o MQTT topic: iot-2/evt/status/fmt/json o MQTT message example: {"d":{"OEE":66}} • Seems to be still work-in-progress with a few bugs here and there (selecting property in the card) Data Visualization – IBM Watson Where to find it: internetofthings.ibmcloud.com
  • 29. Data Visualization – IBM Watson Configuring/Viewing Dashboard
  • 30. Data Visualization – Android (MQTT Dash) Very easy to configure, but limited Where to find it: search “MQTT Dash” in Google Play
  • 33. Description of FCs • Only 2 blocks/data types implemented so far o DINT – Integer o String – Universal/everything else • Value may need special formatting (IBM) Protocol Implementation on the PLC Side fcMQTT_string sInTopic iInQoS sInValueFormat sInValue fcMQTT_dint sInTopic iInQoS sInValueFormat diInValue
  • 34. Format String explanation • sInValueFormat is empty string – pass Value parameter as is • sInValueFormat is not empty – find and replace <<value>> in the format string with actual value and pass it to the queue Example: sInValueFormat: {"d":{"Message":”<<value>>”}} sInValue: “Hello world” String sent to the MQTT Broker: {"d":{"Message":”Hello world”}} Protocol Implementation on the PLC Side
  • 35. Overview of fbMQTT input parameters • iInQueueSize – how many elements in the dbMQTT_Queue datablock • sInClientID – some services (IBM) requires specific Client ID • sInUserName – user name (usually, “use- token-auth” for IBM) • sInPassword – password/key/token • bInCleanSession – not very important for publishing. Set to 1 in most cases • bInResetError – Reset bit/push button/etc. Protocol Implementation on the PLC Side fbMQTT iInQueueSize sInClientID sInUserName sInPassword bInCleanSession bInResetError
  • 36. End Presentation Track: Maintenance & Operations Connect Event ID Session #10.5

Editor's Notes

  1. We are Siemens Solutions partners with the Factory Automation Group and with WinCC OA and as WinCC Specialists. We are certified with the Control Systems Integrators Association.
  2. Here are some of DMC’s customers. There are some big companies you might recognize as well as smaller companies.
  3. Our diverse experience in technology, industry and processes allows us to bring best practices from many areas.  We deliver solutions not available from singularly focused organizations. Our experience is broad and deep.  We have a proven track record in a wide range of industries.
  4. Embedded experience is relevant to the topic
  5. Easy-accessible means web or mobile Fat, thin, web clients, historical data Beer packaging line example
  6. Chart recorder - Obsolete a long time ago SCADA/MES system - Extremely expensive for small-scale operations OTS data collection options - Nice to have an IT department to maintain it HW/SW to maintain, Additional cost, Unfamiliar environment Custom data collection solutions - Most flexible option Same issues as OTS data collection, Cost-prohibitive for small scale
  7. IoT had grown, multiple platforms available Server to handle data and visualization is cloud-hosted There is someone at the company who already knows PLC
  8. No “real” text-based programming require to setup dashboard Polished web interface
  9. Show coffee and/or popcorn temperature on the physical gauge or “virtual” gage. Virtual options seems to be more popular
  10. We will be assuming that your machine is controlled by S7-1200 PLC
  11. Simpler protocol is easier to implement on the resource-constrained PLC platform
  12. Subscriber could be dashboard on cell phone or dashboard on PC QoS – Quality Of Service QoS is somehow important, will discuss later
  13. QoS 2 – not supported by all platforms
  14. Yes! It should be fine for PLC/IoT communication But wait! Any issues with this protocol?
  15. Obviously there is a catch. Data types are pretty wild between platforms
  16. Downside – you have to host application (broker) locally
  17. Data sent to the queue, multiple topics/values could be queued from one cycle fbMQTT block handles queue and maintain connection to Broker
  18. All logic fit into a single network Time to add MQTT to your project - minutes
  19. There are multiple options. Big guys, DIY grade services Android dashboard requires internet/cloud based MQTT broker
  20. Seems to be very advance and capable platform
  21. Feed is actually MQTT topic
  22. Took about 15 minutes to set up everything
  23. Very capable, can execute actions on events, linking events to other services. Tweet, post, email, etc Wild terminology
  24. Took a few hours to configure it. Spent most of the time mapping JSON parameters to cards.
  25. Took 5 minutes to set up a dashboard Requires MQTT broker. Adafruit was used in this example Subscriber for the MQTT broker, visualization only
  26. Describe Topic and QoS. QoS 2 is not implemented Value Format is for IBM compatibility only