SlideShare ist ein Scribd-Unternehmen logo
1 von 36
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Plc Basics
Plc BasicsPlc Basics
Plc Basics
 
Profibus
ProfibusProfibus
Profibus
 
How scada systems work
How scada systems workHow scada systems work
How scada systems work
 
Air quality montoring system
Air quality montoring systemAir quality montoring system
Air quality montoring system
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
 
SIEMENS S7-300c.ppt
SIEMENS S7-300c.pptSIEMENS S7-300c.ppt
SIEMENS S7-300c.ppt
 
Distributed Control System Basics
Distributed Control System BasicsDistributed Control System Basics
Distributed Control System Basics
 
PLC Troubleshooting & Maintenance.pdf
PLC Troubleshooting & Maintenance.pdfPLC Troubleshooting & Maintenance.pdf
PLC Troubleshooting & Maintenance.pdf
 
Plc and scada report
Plc and scada reportPlc and scada report
Plc and scada report
 
SCADA
SCADASCADA
SCADA
 
PLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology OverviewPLC and Industrial Automation - Technology Overview
PLC and Industrial Automation - Technology Overview
 
Serial communication of microcontroller 8051
Serial communication of microcontroller 8051Serial communication of microcontroller 8051
Serial communication of microcontroller 8051
 
Control System toolbox in Matlab
Control System toolbox in MatlabControl System toolbox in Matlab
Control System toolbox in Matlab
 
Basic PLC
Basic PLCBasic PLC
Basic PLC
 
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
Plc Siemens Training Notes
Plc Siemens Training NotesPlc Siemens Training Notes
Plc Siemens Training Notes
 
PLC and SCADA
PLC and SCADAPLC and SCADA
PLC and SCADA
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 
Class 14 summary – basics of process control
Class 14   summary – basics of process controlClass 14   summary – basics of process control
Class 14 summary – basics of process control
 

Andere mochten auch

Andere mochten auch (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
 

Ähnlich wie Pushing Data from S7-1200 to Cloud

DACHSview++features
DACHSview++featuresDACHSview++features
DACHSview++features
A. Steinhoff
 

Ähnlich wie 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
 
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
 
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
 

Mehr von DMC, Inc.

Mehr von DMC, Inc. (19)

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
 
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
 
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...
 

Kürzlich hochgeladen

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Kürzlich hochgeladen (20)

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 

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

Hinweis der Redaktion

  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