AdvancedHMI Software

General Category => Open Discussion => Topic started by: bachphi on December 01, 2023, 07:34:54 PM

Title: All I want for this Christmas
Post by: bachphi on December 01, 2023, 07:34:54 PM
Is an easier way to read the UDT tags with AAHMI.

My recent experience with node-red is blowing me away with how easy it is to read/subscribe tags including UDT tags.

First, the Tag Browser brings up all tags in the processor, then clicking on the tag that you want to read/subscribe will get it into the Tag list with proper data type automatically defined.
(https://i.postimg.cc/Pr3TSWcg/Node-red-Browse-Tags.png)

In the 1st screenshot, DTCurrent is a UDT tag that contains date time info  AND a custom string length of 20. The FreeRunning tag is a TIMER. As you can see, in the node-red they are STRUCT type.


In the 2nd screenshot, showing all the atomic data type and the debug data from the two tags

(https://i.postimg.cc/288CdcHd/Node-Red-Data-Type-Structure.png)

The ethernet driver module that I use is the 'node-red-contrib-cip-st-ethernet-ip'  and on Github: 
https://github.com/st-one-io/node-red-contrib-cip-ethernet-ip (https://github.com/st-one-io/node-red-contrib-cip-ethernet-ip)
Title: Re: All I want for this Christmas
Post by: Godra on December 02, 2023, 08:27:30 PM
bachphi, that's nice.

Could you post any more info or screenshots (like setup flow text file and a screenshot)?

I have a repository on GitHub which showcases Node-RED and pylogix / pycomm3 libraries, which can be seen here:

   https://github.com/GitHubDragonFly/Node-RED_PLC_Example

There is also a link to this post so anybody looking for more information can get it here.
Title: Re: All I want for this Christmas
Post by: bachphi on December 02, 2023, 08:45:40 PM
Godra,  I was only testing out its capability. You are way far ahead of me.
Title: Re: All I want for this Christmas
Post by: Godra on December 02, 2023, 08:55:40 PM
Your testing might actually simplify the overall approach and improve the knowledge of those who dare to try using Node-RED and this particular module you used.

I might eventually try this myself.
Title: Re: All I want for this Christmas
Post by: dmroeder on December 03, 2023, 11:38:24 AM
bachphi, that's nice.

Could you post any more info or screenshots (like setup flow text file and a screenshot)?

I have a repository on GitHub which showcases Node-RED and pylogix / pycomm3 libraries, which can be seen here:

   https://github.com/GitHubDragonFly/Node-RED_PLC_Example

There is also a link to this post so anybody looking for more information can get it here.

Wat!? You're GitHubDragonFly?  I did not know that.
Title: Re: All I want for this Christmas
Post by: Godra on December 03, 2023, 01:19:15 PM
dmroeder, there is a few more posts in this forum that suggest the same, like these 2:

  - https://www.advancedhmi.com/forum/index.php?topic=2568.msg18010#msg18010
  - https://www.advancedhmi.com/forum/index.php?topic=2563.msg16237#msg16237

I did bother contributing to your pylogix project since it's open sourced and people can find it useful.
Title: Re: All I want for this Christmas
Post by: dmroeder on December 03, 2023, 03:56:21 PM
dmroeder, there is a few more posts in this forum that suggest the same, like these 2:

  - https://www.advancedhmi.com/forum/index.php?topic=2568.msg18010#msg18010
  - https://www.advancedhmi.com/forum/index.php?topic=2563.msg16237#msg16237

I did bother contributing to your pylogix project since it's open sourced and people can find it useful.

I guess I missed those threads and never made the connection.  Thanks for the contributions!
Title: Re: All I want for this Christmas
Post by: bachphi on December 04, 2023, 10:49:39 AM
Dragonfly!  The animated series or the scary one?
Title: Re: All I want for this Christmas
Post by: Godra on December 04, 2023, 01:38:53 PM
bachphi, just so you don't find dragonflies scary here is a link to 14 Fun Facts about dragonflies:

   - https://www.smithsonianmag.com/science-nature/14-fun-facts-about-dragonflies-96882693/

Title: Re: All I want for this Christmas
Post by: bachphi on December 04, 2023, 02:17:26 PM
OK, you were not inspired by the 2015 movie.
I know enough about the dragonfly.

Did you know when the dragonfly is flying low, it means it's about to rain and when it's flying higher, it means it's sunny?
Title: Re: All I want for this Christmas
Post by: Godra on December 04, 2023, 05:50:54 PM
I did not know that, sounds like it is susceptible to atmospheric pressure or something else related to  the weather.

All in all, I am not much into dragonflies even though it's a part of my GitHub username.