Author Topic: All I want for this Christmas  (Read 824 times)

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
All I want for this Christmas
« 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.


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



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
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: All I want for this Christmas
« Reply #1 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.

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: All I want for this Christmas
« Reply #2 on: December 02, 2023, 08:45:40 PM »
Godra,  I was only testing out its capability. You are way far ahead of me.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: All I want for this Christmas
« Reply #3 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.

dmroeder

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
    • View Profile
Re: All I want for this Christmas
« Reply #4 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.

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: All I want for this Christmas
« Reply #5 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.

dmroeder

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
    • View Profile
Re: All I want for this Christmas
« Reply #6 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!

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: All I want for this Christmas
« Reply #7 on: December 04, 2023, 10:49:39 AM »
Dragonfly!  The animated series or the scary one?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: All I want for this Christmas
« Reply #8 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/


bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: All I want for this Christmas
« Reply #9 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?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: All I want for this Christmas
« Reply #10 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.