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

BRX Do-more PLC to Node-RED Setup from AutomationDirect


Related Products

BX-DM1E-M
BX-DM1E-M Thumbnail
BX-DM1E-M-D
BX-DM1E-M-D Thumbnail
BX-DM1-10ED1-D
BX-DM1-10ED1-D Thumbnail
BX-DM1-10ED2-D
BX-DM1-10ED2-D Thumbnail
BX-DM1-10ER-D
BX-DM1-10ER-D Thumbnail
BX-DM1-10AR-D
BX-DM1-10AR-D Thumbnail
BX-DM1E-10ED13-D
BX-DM1E-10ED13-D Thumbnail
BX-DM1E-10ED23-D
BX-DM1E-10ED23-D Thumbnail
BX-DM1E-10ER3-D
BX-DM1E-10ER3-D Thumbnail
BX-DM1E-10AR3-D
BX-DM1E-10AR3-D Thumbnail
BX-DM1-18ED1
BX-DM1-18ED1 Thumbnail
BX-DM1-18ED2
BX-DM1-18ED2 Thumbnail
BX-DM1-18ER
BX-DM1-18ER Thumbnail
BX-DM1-18AR
BX-DM1-18AR Thumbnail
BX-DM1-18ED1-D
BX-DM1-18ED1-D Thumbnail
BX-DM1-18ED2-D
BX-DM1-18ED2-D Thumbnail
BX-DM1-18ER-D
BX-DM1-18ER-D Thumbnail
BX-DM1E-18ED13
BX-DM1E-18ED13 Thumbnail
BX-DM1E-18ED23
BX-DM1E-18ED23 Thumbnail
BX-DM1E-18ER3
BX-DM1E-18ER3 Thumbnail
BX-DM1E-18AR3
BX-DM1E-18AR3 Thumbnail
BX-DM1E-18ED13-D
BX-DM1E-18ED13-D Thumbnail
BX-DM1E-18ED23-D
BX-DM1E-18ED23-D Thumbnail
BX-DM1E-18ER3-D
BX-DM1E-18ER3-D Thumbnail
BX-DM1-36ED1
BX-DM1-36ED1 Thumbnail
BX-DM1-36ED2
BX-DM1-36ED2 Thumbnail
BX-DM1-36ER
BX-DM1-36ER Thumbnail
BX-DM1-36AR
BX-DM1-36AR Thumbnail
BX-DM1-36ED1-D
BX-DM1-36ED1-D Thumbnail
BX-DM1-36ED2-D
BX-DM1-36ED2-D Thumbnail
BX-DM1-36ER-D
BX-DM1-36ER-D Thumbnail
BX-DM1E-36ED13
BX-DM1E-36ED13 Thumbnail
BX-DM1E-36ED23
BX-DM1E-36ED23 Thumbnail
BX-DM1E-36ER3
BX-DM1E-36ER3 Thumbnail
BX-DM1E-36AR3
BX-DM1E-36AR3 Thumbnail
BX-DM1E-36ED13-D
BX-DM1E-36ED13-D Thumbnail
BX-DM1E-36ED23-D
BX-DM1E-36ED23-D Thumbnail
BX-DM1E-36ER3-DBX-RTB08-2
BX-DM1E-36ER3-DBX-RTB08-2 Thumbnail
BX-RTB08-1
BX-RTB08-1 Thumbnail
BX-RTB08
BX-RTB08 Thumbnail
BX-RTB36-1
BX-RTB36-1 Thumbnail
BX-RTB36
BX-RTB36 Thumbnail
BX-RTB18-1
BX-RTB18-1 Thumbnail
BX-RTB18
BX-RTB18 Thumbnail
BX-RTB10-2
BX-RTB10-2 Thumbnail
BX-RTB10-1
BX-RTB10-1 Thumbnail
BX-RTB10
BX-RTB10 Thumbnail
BX-RTB03S
BX-RTB03S Thumbnail
BX-P-ECOMLT
BX-P-ECOMLT Thumbnail
BX-P-USB-B
BX-P-USB-B Thumbnail
BX-P-SER4-TERM
BX-P-SER4-TERM Thumbnail
BX-P-SER2-TERM
BX-P-SER2-TERM Thumbnail
BX-P-SER2-RJ12
BX-P-SER2-RJ12 Thumbnail
BX-HSIO2
BX-HSIO2 Thumbnail
BX-HSIO1
BX-HSIO1 Thumbnail
BX-SERIO
BX-SERIO Thumbnail
BX-08NTC
BX-08NTC Thumbnail
BX-4RTD4DA-1
BX-4RTD4DA-1 Thumbnail
BX-06RTD
BX-06RTD Thumbnail
BX-4THM4DA-1
BX-4THM4DA-1 Thumbnail
BX-08THM
BX-08THM Thumbnail
BX-04THM
BX-04THM Thumbnail
BX-08DA-2B
BX-08DA-2B Thumbnail
BX-2AD2DA-2B
BX-2AD2DA-2B Thumbnail
BX-4AD2DA-1
BX-4AD2DA-1 Thumbnail
BX-2AD2DA-1
BX-2AD2DA-1 Thumbnail
BX-04DA-2B
BX-04DA-2B Thumbnail
BX-08DA-1
BX-08DA-1 Thumbnail
BX-04DA-1
BX-04DA-1 Thumbnail
BX-08AD-2B
BX-08AD-2B Thumbnail
BX-04AD-2B
BX-04AD-2B Thumbnail
BX-16AD-1
BX-16AD-1 Thumbnail
BX-08AD-1
BX-08AD-1 Thumbnail
BX-04AD-1
BX-04AD-1 Thumbnail
BX-04ADM-1
BX-04ADM-1 Thumbnail
BX-05TRS
BX-05TRS Thumbnail
BX-16TR
BX-16TR Thumbnail
BX-12TR
BX-12TR Thumbnail
BX-08TR
BX-08TR Thumbnail
BX-12TA
BX-12TA Thumbnail
BX-08TA
BX-08TA Thumbnail
BX-16NA
BX-16NA Thumbnail
BX-12NA
BX-12NA Thumbnail
BX-08NA
BX-08NA Thumbnail
BX-16NB
BX-16NB Thumbnail
BX-08NB
BX-08NB Thumbnail
BX-08SIM
BX-08SIM Thumbnail
BX-16CD3D2
BX-16CD3D2 Thumbnail
BX-16CD3D1
BX-16CD3D1 Thumbnail
BX-12CD3D2
BX-12CD3D2 Thumbnail
BX-12CD3D1
BX-12CD3D1 Thumbnail
BX-08CD3R
BX-08CD3R Thumbnail
BX-32TD2
BX-32TD2 Thumbnail
BX-32TD1
BX-32TD1 Thumbnail
BX-16TD2
BX-16TD2 Thumbnail
BX-16TD1
BX-16TD1 Thumbnail
BX-12TD2
BX-12TD2 Thumbnail
BX-12TD1
BX-12TD1 Thumbnail
BX-08TD2
BX-08TD2 Thumbnail
BX-08TD1
BX-08TD1 Thumbnail
BX-08NF3
BX-08NF3 Thumbnail
BX-32ND3
BX-32ND3 Thumbnail
BX-16ND3
BX-16ND3 Thumbnail
BX-12ND3
BX-12ND3 Thumbnail
BX-08ND3
BX-08ND3 Thumbnail
BX-EBC100-M
BX-EBC100-M Thumbnail
BX-MBIO-M-D
BX-MBIO-M-D Thumbnail
BX-MBIO-M
BX-MBIO-M Thumbnail


To learn more: https://www.AutomationDirect.com/brx?utm_source=z0Hs83AXUrM&utm_medium=VideoTeamDescription

(VID-DM-0052)

BRX PLCs allow for creating JSON packets and also MQTT communications. You can then leverage these tools to integrate your control system with Node-RED. This integration will allow connecting with various tools like SQL databases, creating flow-based workflows to handle text operations, and much more.

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

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


Hide Transcript
View Transcript

Node-RED is an open-source platform and is a great way to augment your PLC controls and integrate them quickly with multiple platforms allowing you to collect data and then pass it on to an SQL database, create dashboards for quick access on a web browser and much more. In this video, we will show connecting a BRX PLC to Node-RED and pass some data information to the Node-RED platform using MQTT communication. Then receive data back into the BRX PLC from Node-RED. How quick it was to set up surprised me. In a separate video, we will create a dashboard to show this data for quick access. For this example, I will be using Node-RED installed on a Raspberry Pi 4. In the description below there is a link to Nodered.org on how to set this up quickly. For this Node-RED setup, there are 6 parts to transferring data back and forth to Node-RED. Let's start in the BRX setup. I have already created this program, but I will go over the parts that you will need to set up. To set up, the MQTT Client in BRX enter your system configuration, select Device Configuration, and select to add a new device. Here is the client I have already set up. Give your device a name. Enter in the IP address of your Node-RED setup or if you are using a server name you can put that here. There are a few things for a more advanced setup, like MQTTs, enabling authentication, and Last Will, but for this example, I will forgo these. Now that you have the client set up let’s look at the data we will be sending to Node-RED Here I have a JSON Build instruction. In this JSON message, it packs these 5 data points together and then loads it to a long string address to be sent to Node-RED On names like this, make sure to not use spaces. It will confuse Node-RED when you unpack it. And parallel to this JSON build I have entered an MQTT Publish Instruction that will send this long string that contains our JSON message to Node-RED. Here enter the MQTT client device we created before. Set the rate at which you want to send this data to Node-RED. Here enter in the MQTT Topic name you will be sending this data to Node-RED. This will need to match exactly what you set up in Node-RED. To make this a little bit easier later on I just copy and paste. Then the Payload will be the JSON message we create above. I don’t want to retain this data in the broker and have the data only published if the data has changed. Now, since we are using seconds, of course, this is going to change every second. I also added an MQTT Subscribe to read data back from Node-RED. Notice here that my Topic is different from the Publish. Once you have this set up, go ahead and send this to your PLC. Access your Node-RED setup, open up a web browser and enter in the IP address of your Node-RED setup, and then colon 1880. Now with Node-RED, you can add on a lot of different things. If you will notice here on the left-hand side, here are all the Nodes that come pre-installed on Node-RED. We can add onto this so for example, I am going to add on the MQTT Broker to Node-RED so it will be acting both as my Broker and the Node-RED setup. To do this, I select Here, select Manage Pallete, select Install and then type in AEDES. This will be your MQTT Broker. Now that you have that installed, if you will look on the left-hand side in all of your nodes under the Network section, you will see the AEDES Broker. Drag that into your Workflow window. Now double-click on this node. This is the same port we had set up in our BRX MQTT Client setup. These do have to match. Now we enable the WebSocket by entering in a port number here. I will enter in 8080. Select Done. That is how easy it is to create your broker in Node-RED. Now let’s bring our MQTT message from BRX into our Node-RED. We'll do this by adding an MQTT in Node and dragging into our workspace. Double-click it. I'm going to go back to my BRX, copy the Topic message for my Publish and then paste that into my Node-RED setup. Make sure to remove the quotation marks here. To display the JSON message, that will be sent into this MQTT in, I will add a Debug node and drag a line between the two nodes. I will then select to deploy the workflow and to see the data I will need to enable the Debug window. We can do that by selecting here, View, and Debug Messages. Now we see the JSON packet updating every second. This is just how easy it was to get the data from my BRX PLC to my Node-RED setup. Now let’s send some data back to our BRX. Add an MQTT Out node. Double-click it. Copy the Topic from our MQTT Subscribe in BRX and paste it here. Remember to remove the quotation marks. Select your quality of service and I will select it to retain the data and then select Done. Now I'm going to grab an Inject node and add it to my workflow. By default, this is selected as Timestamp. I will set this to inject the Timestamp every second. I will leave that as it is and connect it to my MQTT out. And now just select to deploy. So, if we go back into our BRX and look at SL1 in our dataview, we see this updating every second. So this is a very basic setup but allows you to see how you pass information back and forth. There are tons of Node-RED resources online that can show you more advanced features in getting deeper into this. In our next video, we will show you how to create a dashboard to display some data and interact with Node-RED. If you would like to see more information on the BRX PLC select here and select here to subscribe to our YouTube channel for new products and solutions.



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more PLC to Node-RED Setup from 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
„