Author Topic: Internal Tags  (Read 1445 times)

EliW

  • Newbie
  • *
  • Posts: 4
    • View Profile
Internal Tags
« on: September 03, 2021, 02:39:25 PM »
We are looking for a way to use tags within AHMI without needing to use a PLC as a place to store values. How is the best way to do this? Other HMI softwares call them "Internal" tags.
Is there a way to do something similar with AHMI? If so, what would be the correct way of doing it?
We are looking for a simple and cheap HMI and AHMI seems to fit the description. We need something with Alarming (which this has according to some post we found), and something that gives us the capabilities to use internal tags.

Thanks for the help in advance.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Internal Tags
« Reply #1 on: September 03, 2021, 09:03:46 PM »
The simulator driver uses virtual tags.

What do you want to do with the tags? In VB code you can declare variables.

EliW

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Internal Tags
« Reply #2 on: September 04, 2021, 11:06:12 AM »
An example of where we would use the tags is to disable the Modbus driver with a button when we take a Modbus device offline so it doesn't give a communication error. Does that answer the question or do we need to try to explain it better? Can the Variables that are declared in VB code be used like any other PLC address? (To control visibility for example?)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Internal Tags
« Reply #3 on: September 04, 2021, 11:37:45 AM »
To add a button to disable driver communications:

1) From the Toolbox, add a button to the form
2) Double click the button to get back to the code for the Click event
3) Enter the code:

ModbusTCP1.DisableSubscriptions = NOT ModbusTCP1.DisableSubscriptions

EliW

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Internal Tags
« Reply #4 on: September 04, 2021, 02:14:27 PM »
Thanks for the info Archie! It seems you have got something good going here.

How would you control the visibility of a picture or something like that? Or can that all be done with VB Code?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5270
    • View Profile
    • AdvancedHMI
Re: Internal Tags
« Reply #5 on: September 04, 2021, 03:13:52 PM »
It would be very similar.

1) From the Toolbox add a PictureBox to the form
2) From the Toolbix add a button to the form
3) Double click the button, add this code

PictureBox1.Visible = NOT PictureBox1.Visible

EliW

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Internal Tags
« Reply #6 on: September 04, 2021, 03:32:39 PM »
Thanks for your help Archie! We really appreciate it!

Keep up the good work!