AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • AC Motors
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

CLICK PLUS PLC: MQTT Setup: Industrial Internet of Things (IIoT) at AutomationDirect


Related Products

C2-FILL
C2-FILL Thumbnail
C0-08SIM
C0-08SIM Thumbnail
C0-08ND3
C0-08ND3 Thumbnail
C0-08ND3-1
C0-08ND3-1 Thumbnail
C0-16ND3
C0-16ND3 Thumbnail
C0-08TD1
C0-08TD1 Thumbnail
C0-08TD2
C0-08TD2 Thumbnail
C0-08NE3
C0-08NE3 Thumbnail
C0-16TD1
C0-16TD1 Thumbnail
C0-16TD2
C0-16TD2 Thumbnail
C0-16NE3
C0-16NE3 Thumbnail
C0-08CDR
C0-08CDR Thumbnail
C0-16CDD1
C0-16CDD1 Thumbnail
C0-16CDD2
C0-16CDD2 Thumbnail
C0-08NA
C0-08NA Thumbnail
C0-08TA
C0-08TA Thumbnail
C0-08TR
C0-08TR Thumbnail
C0-04AD-1
C0-04AD-1 Thumbnail
C0-04AD-2
C0-04AD-2 Thumbnail
C0-04DA-1
C0-04DA-1 Thumbnail
C0-04DA-2
C0-04DA-2 Thumbnail
C0-4AD2DA-1
C0-4AD2DA-1 Thumbnail
C0-4AD2DA-2
C0-4AD2DA-2 Thumbnail
C0-04RTD
C0-04RTD Thumbnail
C0-04THM
C0-04THM Thumbnail
C2-DCM
C2-DCM Thumbnail
C0-PGMSW
C0-PGMSW Thumbnail
C2-01CPU
C2-01CPU Thumbnail
C2-02CPU
C2-02CPU Thumbnail
C2-03CPU
C2-03CPU Thumbnail
C2-01CPU-2
C2-01CPU-2 Thumbnail
C2-02CPU-2
C2-02CPU-2 Thumbnail
C2-03CPU-2
C2-03CPU-2 Thumbnail
C2-14D1
C2-14D1 Thumbnail
C2-14D2
C2-14D2 Thumbnail
C2-14DR
C2-14DR Thumbnail
C2-14AR
C2-14AR Thumbnail
C2-08D1-4VC
C2-08D1-4VC Thumbnail
C2-08D2-4VC
C2-08D2-4VC Thumbnail
C2-08DR-4VC
C2-08DR-4VC Thumbnail
C2-08AR-4VC
C2-08AR-4VC Thumbnail
C2-08D1-6C
C2-08D1-6C Thumbnail
C2-08D2-6C
C2-08D2-6C Thumbnail
C2-08DR-6C
C2-08DR-6C Thumbnail
C2-08AR-6C
C2-08AR-6C Thumbnail
C2-08D1-6V
C2-08D1-6V Thumbnail
C2-08D2-6V
C2-08D2-6V Thumbnail
C2-08DR-6V
C2-08DR-6V Thumbnail
C2-08AR-6V
C2-08AR-6V Thumbnail


To learn more: https://www.automationdirect.com/click-plc?utm_source=pzIRrtyQdDw&utm_medium=VideoTeamDescription

(VID-CL-0063)

The Click PLUS PLC has now added MQTT to the CLICK PLC Line. This feature really helps integrate the CLICK PLUS PLC into the the industrial internet of things (IIoT).

Mosquitto MQTT broker setup for Raspberry PI:
https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/

Online Support Page: https://community.automationdirect.com/s/?utm_source=pzIRrtyQdDw&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

CLICK PLC is now offering MQTT on the CLICK PLUS CPUs. MQTT is an extremely simple and lightweight messaging protocol and is a great way to pass data between multiple platforms without a lot of protocol confusion and very little development time. Messaging in MQTT is based upon Topics. These can either be subscribed to or published to from a central repository. This central repository of topics is called a Broker. The devices subscribing or publishing to this broker are called Clients. Each client can publish or subscribe to one or more of the topics on the Broker. First, you must have a CLICK PLUS CPU that has version 3.0 software or above. The CLICK PLUS CPU can only work as a client. You must have already set up an MQTT Broker to handle the messaging. There are too many different MQTT Brokers and their setups are way too varied to cover in this video. Please see MQTT.org for more information on this topic. For the purposes of this video, I am using a Raspberry PI 4 with Mosquito loaded. There is a really good tutorial on this setup, and you can find a link to that in the description below. CLICK has made using MQTT very simple. It does not require any instructions in your ladder code. To set up MQTT, go to the Function tab and then select MQTT setup. Here you can enable MQTT. Then you have the option to enable subscribe, publish or both. When you enable the Client setup, if you select subscribe you get 1 subscribe setup, and if you select publish you will get up to 4 blocks. Let’s start with the MQTT Client setup. Here you can place either the server name or the direct IP Address of your broker. If you are going to use the server name, you must have setup DNS setup on your Click Plus. I am on an isolated network with a static IP address from my Raspberry Pi so I will enter that in here. Protocol is, of course, MQTT. The standard server port for MQTT is 1883, consult your broker information, to ensure that this number is correct. Enter a bit to monitor the connection status and this will be helpful in troubleshooting if you have problems. If your broker requires Authentication enter that here. This last will option is used to notify that there has been a disconnect of this client. This is a topic that will be maintained at the Broker, and not published unless the Client has dropped connection. And here, you can enter a Custom Client ID. Now, I am going to enable the subscribe by selecting here. Enter a bit to enable the reading of the Topic. And here you can define the the action of that bit. Then place a bit for the error status and reading the error code. Select here and you will bring up the possible Broker topics. Select the Edit mode and you can enter in the topic name. Setting up my Broker, it created a test topic that I will enter here. The test message already in my Broker is “Hello World!”, which is 12 characters. So I will use txt address 1 -12 to display this. If you select this, you will be able to see this messaging from the MQTT text view, which is a troubleshooting tool you will see later. Now, before I go on to publish, let’s send this to the CPU and do a quick display of this works. I am going to open a data view and put my connection status bit, enable bit, error bit, error code, and the text addresses that this will be loaded into. Once I enable the bit. I see the text addresses fill out the topic message. And if I open the MQTT text view you will see the same here. Let’s go back and create a publish message to change this topic message. Enable the publish here. Place an enable, success, error bit and then the error code. I will use the same topic we created before. The payload, now before we begin, if you are placing static text, it must be encapsulated with quotation marks. You can also place an embedded memory address that does not require quotations. I will use DS20 and set that up to be 2 fixed digits. Now, I am going to back out of all of this. I am going to send it to my PLC. I am going to add onto my data view, the publish bits and the DS20 into my data view. I will enable the publish. And our new message is present and if we change DS20 and then reenable the publish. The changes are made. Nice and easy way to pass information between multiple platforms Once again, CLICK is making advanced simple. If you have any question about this video, please feel free to comment below or call into our technical support team. Please follow this link to see more videos on the CLICK PLUS platform and select here to subscribe to our YouTube channel for upcoming news and solutions.



No data returned!
An error has occurred! Please contact support
Videos Home > CLICK PLUS PLC: MQTT Setup: Industrial Internet of Things (IIoT) at AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info
„