Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ASF

Pages: 1 [2]
16
Support Questions / Re: Alarm List - Using MessageListByValue?
« on: March 15, 2017, 01:09:32 AM »
Hi Archie,

Thanks for that. I'm having a play with it now, and just wanted to check a few things...

My alarms are stored in modbus addresses 424577 and 424578, which are 16-bit registers. For each alarm, a true bit represents an active alarm. I assume that I should:
- Set PLCAddressValues to 424577
- Set PLCElementBitWidth to 16
- Set PLCNumberOfElements to 2
- Set Value to 1
- Set ValueBitMask to 0
Then define my messages using bits 0-31, where bit 0 will represent the LSB of 424577 and bit 31 will represent the MSB of 424578. Is this right so far?

I have found the sample txt file for the alarm messages, but I can't work out how to either point to a text file, or import a text file, to correlate that text file with the message display object. How do I do this?

Thanks!

17
Support Questions / Re: Trigger VBA sub at certain time of day
« on: March 06, 2017, 11:29:08 PM »
Thanks, I'll give that a try.

I assume that the timer is a self-resetting timer, and the interval (31000) is 31 seconds?

18
Support Questions / Re: Alarm List - Using MessageListByValue?
« on: March 06, 2017, 11:28:17 PM »
They're using individual bits

19
Support Questions / Trigger VBA sub at certain time of day
« on: March 06, 2017, 10:58:18 PM »
Hi,

I have a VBA sub which, when a button is clicked, gets a value from a text file and writes it to the PLC. This text file is updated at 5:30am every day, so what I would like is for this VBA sub to run automatically every day at 6am, so that my value is automatically updated every day, whether or not I click the button.

Is there any way of triggering a VBA sub based on time of day?

I have an always-updating, hidden form that sits out of sight and handles all of my background tasks like this, so there's no issues with which form is open at 6am, and the code itself is working - all I need is a way of triggering it.

I could put a data subscriber on the hidden form and monitor the PLC's RTC, and watch for it being "6", but I'm hoping there's a cleaner way...

Thanks!

20
Support Questions / Alarm List - Using MessageListByValue?
« on: March 06, 2017, 10:41:16 PM »
I'm trying to set up a dynamic alarm display for the first time on AdvancedHMI. As far as I can tell, there isn't a specific object for this yet (unless one has been added since the posts I found on the subject?)

I found a post that talks about using a MessageListByValue to do this. Are there any examples out there of how to set this up?

I'm using a Click Koyo Ethernet PLC, and my alarms are C register bits, modbus addresses 16485 through 16499.

21
Support Questions / Re: Reusable popups & multiple tag values in captions
« on: December 31, 2016, 07:27:40 AM »
Thanks, that's working perfectly! Guess it's all just a matter of getting more familiar with VB.

Happy New Year to you both!

22
Support Questions / Re: Reusable popups & multiple tag values in captions
« on: December 31, 2016, 01:15:05 AM »
Ah yes, I see where the "e" comes from now. That's working well, the only annoyance being that when the minute or second are in single digits range, it doesn't pad it with a zero - so if it's one second past 10am, the time will read as 10:0:1 instead of 10:00:01. Any ways you can think of off the top of your head to fix that? If it's a problem I'll just go back to using 6 labels, but I like the neat and tidy one-label solution.

As to the reusable popups, right clicking and selecting from a list is probably not what I'm after. Generally, the way I have it set up is so that you can click on each motor graphic and it brings up it's own popup. It's also possible (in FTView) to have two of these popups open at once. I'll look a little deeper into how that list selector works though, and see if I can use some of its tricks to do what I want, once I've got my head a little more around how all of the rest works.


23
Support Questions / Re: Reusable popups & multiple tag values in captions
« on: December 30, 2016, 09:46:15 PM »
Thanks Archie, I'll give that a try. I'm guessing the "e.ErrorID" should be "Me.ErrorID"?

24
Support Questions / Reusable popups & multiple tag values in captions
« on: December 30, 2016, 08:38:29 PM »
Hi all,

A couple more newbie questions. My SCADA background is mostly FTView, so I'm trying to figure out the AdvancedHMI way of doing a couple of things.

First, on FTView I can create reusable popups by using placeholder tags. So, for a Motor popup, my start buttons is set to operate on #1.Start, my Stop button is set to operate on #1.Stop, and so on. Then, at runtime, I call the popup and specify which PLC tag to use in place of #1 by either parameter files or just defining the tag directly when I call the popup. So I specify Motor_1, and then #1.Start becomes Motor_1.Start and so on. Can I create reusable popups somehow in AdvancedHMI?

Second thing I can do in FTView is to display multiple tag values in one text object. This would be useful in one particular example where I'm using a Click Koyo PLC and want to display a date-and-time stamp. Ideally, I'd just use system data values to concatenate a string of the date and time within the PLC, and just display that string on the HMI, but the Click Koyo is pretty limited in it's string handling, and I can't find a nice neat way to do it. So, what I'd do to get around this in FTView is just create some text, where the caption was:

"Time of Event: [year_tag]-[month_tag]-[day_tag] at [hour_tag]:[minute_tag]:[second_tag]"

So I only need one text object, not one for each value and another for each separator. Can I do something similar in AdvancedHMI?

Thanks!

25
Support Questions / Re: Rotate and group objects
« on: December 27, 2016, 07:52:57 PM »
Terrific, thanks Archie! I'll give them a try.

26
Support Questions / Rotate and group objects
« on: December 27, 2016, 04:05:43 PM »
Hi guys,

Trying out AdvancedHMI for the first time and so far so good. There are so far just a couple of things I haven't been able to work out and wondering if they're possible. They may actually be Visual Studio questions rather than AdvancedHMI, but worth a shot.

The first is how to rotate something - in particular, text. I'd like to have some text read from bottom to top, like a Y-axis label on a graph. I can't find any detail on how to rotate anything searching for either AdvancedHMI or Visual Studio, but I'd like to think that it must be possible to rotate an object 90 degrees!

The second is how to group objects together, so that I can move them as a block or assign visibility to a bunch of objects as a whole. On searching, I found one thread describing how to group objects in Visual Studio, but it referred me to a menu I can find no trace of, so I'm stumped!

Any pointers greatly appreciated!

Pages: 1 [2]