You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old December 24th, 2017, 02:02 PM   #1
AustralIan
Member
United Kingdom

AustralIan is online now
 
Join Date: Jan 2013
Location: UK
Posts: 715
MQTT Vs OPC

Anyone used MQTT for anything?
How does it compare to OPC?
How easy is it to setup?
How easy is it to maintain?
Do you pronounce it EMM QUE TEE TEE or em cute ee TEE?

Discuss.
  Reply With Quote
Old December 24th, 2017, 04:26 PM   #2
damica1
Member
United States

damica1 is offline
 
Join Date: Aug 2015
Location: Illinois
Posts: 406
Here's something that may help!

http://blog.opto22.com/optoblog/opc-...tt-in-the-iiot

If I was connecting to various brands, hardware types, across different networks, MQTT would be what I would use. Very easy to setup, not expensive, easy to maintain!

But if I'm just connecting a single piece of hardware to another and I don't need to expand OPC (Might be the best choice!)

You might also want to look at Cirrus Link's web site, Mr Arlen Nippers is the co-inventor of MQTT.
__________________
David M. Camp

Marshall Electric / www.mei-tech.com

PLEASE READ: https://www.prlog.org/12642091-marsh...-industry.html

PLEASE READ: https://www.prlog.org/12680572-marij...hold-word.html
  Reply With Quote
Old December 25th, 2017, 08:17 AM   #3
mk42
Member
United States

mk42 is online now
 
Join Date: Jun 2013
Location: MI
Posts: 1,781
I've never heard anyone say mqtt out loud, but in my head I pronounce each letter.

To me, MQTT and OPC solve different problems. OPCb defines a cross platform way of reading/writing data, whereas MQTT defines a way of transporting data. The next revision of the OPC UA spec actually incident MQTT as a transport option (current options are binary or http requests).

Both can be pretty light weight. Multiple PLC brands can have OPC UA built into the PLC. I'm seeing mqtt discussed in many RTU applications, places where communication is spotty.

I've never actually seen MQTT in industry yet, but many of us have used it in things like FaceBook messenger.

As far as maintenance/usability, that depends entirely on the vendor's implementation.
  Reply With Quote
Old December 25th, 2017, 09:26 AM   #4
danw
Member
United States

danw is online now
 
danw's Avatar
 
Join Date: Oct 2004
Location: midwest, USA
Posts: 2,763
Quote:
Originally Posted by damica1 View Post
+1 Thanks for the link. Very informative. Dan
  Reply With Quote
Old December 25th, 2017, 10:17 AM   #5
mk42
Member
United States

mk42 is online now
 
Join Date: Jun 2013
Location: MI
Posts: 1,781
Quote:
Originally Posted by mk42 View Post
The next revision of the OPC UA spec actually incident MQTT as a transport option (current options are binary or http requests)
Too late edit: actually includes, not incident
  Reply With Quote
Old December 26th, 2017, 04:14 PM   #6
boneless
Lifetime Supporting Member + Moderator
United States

boneless is offline
 
Join Date: Feb 2008
Location: OKC
Posts: 1,414
I use MQTT around my house for some remote sensors and sprinkler.

Works well, but would not imagine using it for "work". I would consider it if I had long distance RIO, it is very easy to connect to the cloud. Not to sure about security tho.

OPC is a proven concept, never had issues.
  Reply With Quote
Old December 26th, 2017, 06:24 PM   #7
Mark-
Lifetime Supporting Member
United States

Mark- is offline
 
Join Date: Nov 2008
Location: Texas
Posts: 647
Quote:
Originally Posted by boneless View Post
Not to sure about security tho.
You can use SSL and additionally the protocol supports user names and passwords.
__________________
Good luck,

Mark
PeakHMI
  Reply With Quote
Old January 7th, 2018, 03:22 PM   #8
AustralIan
Member
United Kingdom

AustralIan is online now
 
Join Date: Jan 2013
Location: UK
Posts: 715
Thanks guys! MQTT seems to tick a lot of boxes, but like any protocol it is only as good as the things that use it! I still think it is a bit early for me to adopt at this stage, unless I have a lot more resources to throw at researching and developing a solution with it.

Maybe the answer is to start it as a hobby on a sprinkler system so I can get a feel for it.
  Reply With Quote
Old March 17th, 2018, 05:27 PM   #9
bits'bytes
Member
Austria

bits'bytes is offline
 
bits'bytes's Avatar
 
Join Date: May 2010
Location: Austria
Posts: 119
Hello,

I just wanted to share that we just installed for a customer a MQTT connection. 5 machines - each producing like 30 live values during the process - are sending the process data as well as SET values to a mosquitto broker. The clients MES system is reading them from there and joining them to other contract data.

From my experiance I have to say that I never saw any protocoll that is that easy to handle and understand and flexible.

As we kept data local, security was no issue, but as already mentioned there are ways (TLS, ..) also, when using VPN it should be safe also I think.

The best thing in here was that we used a straight ASCII format for all values , so just like "12.3 V" for a voltage actual value. So, without any problem we could use e.g. MQTT-Spy (freeware) to check the data on the broker, compare it with the data on the MES and helping us to find really fast some small bugs on the other side.

Also that broker thing in the middle is genious. A client is producing data and writing it to the broker, 0 - n clients may or may not read it. It is a perfect Interface between two parties (e.g. customer and machine manufactorer).

BR
BB
__________________
--
http://www.pltrend.at/
--
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Programming an 315 2DP, connecting with an OPC server, Testing a c++ app!! hlvas LIVE PLC Questions And Answers 4 September 21st, 2010 04:15 PM
First Day Learning about OPC recondaddy LIVE PLC Questions And Answers 3 May 31st, 2010 06:33 PM
OPC test Client cannot connec to RSLinx Proffesional Eric Le Yin LIVE PLC Questions And Answers 0 May 7th, 2009 10:04 PM
HELP - Remote OPC Client glenglen LIVE PLC Questions And Answers 2 April 24th, 2007 06:02 AM
OPC DX anyone ? JesperMP LIVE PLC Questions And Answers 8 February 20th, 2006 07:44 AM


All times are GMT -5. The time now is 07:11 AM.


.