element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experimenting with Industrial Automation
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Industrial Automation
  • More
  • Cancel
Experimenting with Industrial Automation
Blog Overhead tank monitoring for smart home/industry : BLOG 4
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experimenting with Industrial Automation to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: embeddedguy
  • Date Created: 12 Mar 2024 5:25 PM Date Created
  • Views 919 views
  • Likes 4 likes
  • Comments 2 comments
  • experimenting with industrial automation
  • design challenge
  • industrial automation
Related
Recommended

Overhead tank monitoring for smart home/industry : BLOG 4

embeddedguy
embeddedguy
12 Mar 2024
Overhead tank monitoring for smart home/industry : BLOG 4

In the previous blogs I have mentioned about the project I am doing for Experimenting with Industrial Automation in detail and getting started with the kit. Now in this blog I will mention the technical details of the project. This Blog mainly has two parts such as hardware installation of the devices and wiring and software development such as logic and other project related settings.

This is Blog 4 in five part Blog series. 

  • Overhead tank monitoring for smart home/industry : BLOG 1

  • Overhead tank monitoring for smart home/industry : BLOG 2

  • Overhead tank monitoring for smart home/industry : BLOG 3

Table of Contents

  • Overhead tank monitoring for smart home/industry : BLOG 1
  • Overhead tank monitoring for smart home/industry : BLOG 2
  • Overhead tank monitoring for smart home/industry : BLOG 3
  • Safety information
  • HMI and PLC communication
  • Harmony Hub ZBRN2 and PLC communication
  • Harmony Hub ZBRN2 and wireless receiver ZBRRH communication
  • Controlling the relay
  • ZBRA1 Antenna
  • Sensor and PLC communication
  • Reference Documentation

Safety information

Before starting to work with Schneider Electric devices it is required to note some safety related information. It is advice for uses to read the instructions carefully. Failure to do so can result in equipment damage, electric shocks or even death. So here I will deliberately post some dangers and warnings as mentioned in the user guide of Harmony hub(ZBRN2). It would be enough to read but one should consult respective devices' user guide for warnings and dangers that needs to be considered.

image

HMI and PLC communication

In order to have correct sensor data there needs to be a communication between HMI module and PLC itself. There are some methods to do that. One of them is using the nodename of the PLC and other is by using the IP address of the device. I will post more on this in my final blog post.

Harmony Hub ZBRN2 and PLC communication

Harmony Hub supports Modbus communication. ZBRN2 has only serial port to communicate to the PLC. Modbus protocol uses some registers to access data. Such as read/write bit values or register(byte) values. To my understanding it is similar to I2C and SPI protocols that I have used in the past. So the Harmony Hub registers can be accessed using Modbus RTU/ASCII protocol supported in EcoStructure Machine expert over serial connection to the PLC.

Following images shows the device on the EcoStructure project Device tree and Modbus channel configurations.

{gallery}My Gallery Title

image

EcoStructure Modbus device registers

image

Adding ZBRN2 Harmony hub on serial port

image

Modbus device channels

image

Harmony Hub ZBRN2 and wireless receiver ZBRRH communication

ZBRRH is the wireless receiver module capable of receiving commands from the PLC through Harmony hub. How is that actually possible?

Harmony hub has input and output channels that can receive commands from push buttons as state of inputs and ZBRRH wireless receivers that can act as state of output channels on Harmony Hub. Using the jog-dial on the ZBRN2 one can associate output channels on the hub to the wireless receivers. As I showed in blog-3 already, push buttons can be associated with input channels on the Harmony hub. Similarly, in this blog I will mention how output channels can be associated with ZBRRH receivers. 

One thing to mention here is that upto 60 ZBRRH receivers can be associated with Harmony Hub. Meaning that one can control so many devices(at least 60!) directly. But using some techniques in digital electronics one can control 60x4=240 discreet devices.

Following illustration from the user guide of Harmony Hub shows how to control different outputs of the receiver module. Once assigned output channel, Modbus request could be sent to the output registers of the Harmony Hub. 

image

image

Before working with Modbus output registers following care must be taken(as per the user guide). 

image

Controlling the relay

The 24V relay(782XBXM4L-24D) can be controlled remotely from PLC using Harmony hub receiver module(ZBRRH). This relay can eventually turn on/off the motor to control the water flow in the respective tank. It is possible to control upto 4 relay modules given that power supply can provide enough power to control these relay coils. The following image shows Q1 output of ZBRRH is turned on that is connected to the relay module. 

The question here would be how one can turn ON/OFF respective outputs(Q1.....Q4)? These outputs can be turned ON/OFF by writing to respective Modbus registers.

The following values are possible as per the user's guide

  • 0x00 -- Output off
  • 0x5A -- Output blink
  • 0xFF -- Output on

image

ZBRA1 Antenna

ZBRA1 is the antenna that can be used to increase the signal transmission range. The antenna is capable of handling varied voltage range from 24....240 vDC/AC. It comes with 5 meters of cable wire and can be easily mounted on to surface. Harmony Hub(ZBRN2) has association process to link the antenna to the RF channel. 

imageimage

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Sensor and PLC communication

I will write about it in the final blog post.

Reference Documentation

Harmony Hub ZBRN2 user guide

ZBRA1 Antenna user guide

  • Sign in to reply
  • embeddedguy
    embeddedguy over 1 year ago in reply to DAB

    Depends, it may get difficult once the complexity increases.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 1 year ago

    Looks easy to use.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube