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 - Steve Etter

Pages: [1] 2
1
Support Questions / Re: ChartBySampling - Can it be made to....
« on: September 10, 2018, 10:10:21 AM »
Thanks Archie.  That is exactly what I needed.

Steve

2
Support Questions / ChartBySampling - Can it be made to....
« on: September 07, 2018, 11:45:44 AM »
I've got my ChartBySampling working pretty well but there are three (3) things I'd like to make it do that I can't seem to accomplish:
1)  Make if "freeze" and stop scrolling new data.  I want to let the operator look at the waveform held still on the screen.
2)  Make it "unfreeze" again.  Pick-up again with current data (I expect data will be ignored/lost while "frozen")
3)  Make it "restart" from scratch.  Keep all current Min/Max settings but erase the screen and start scanning anew.

Can any of these be done and, if so, what properties do I use to do so?

Thanks in advance,
Steve

3
Support Questions / Using with a Windows Gadget
« on: August 07, 2018, 12:08:34 PM »
I know this is a little OT, but I hope it's ok...

Several years ago we created a Windows Gadget that looked at 4-digit value from another Brand X HMI application.  All the gadget does is display this one value and update it on a regular basis.  It still works, but for a couple of reasons, I would like to replace this HMI application with an AdvancedHMI version.  The reason I want to use a gadget is to allow anybody with a PC on the network to open and look at the value without having to have the AdvancedHMI program loaded. 

The value I need to watch is generated in an AB PLC and I have created a single page AdvancedHMI application that sees the value using EthernetIPforCLXcom.  I added a SimpleWebServer and am able to see the running application on the development PC using IExplorer on another PC.  The problem I can't figure how to get the gadget to see the value.  With the old Brand X HMI application we were able to simply use the http://XXX.XXX.XXX.XXX/ address.  That doesn't seem to work for the new application.

Anybody have knowledge of gadgets and how I might be able to see my AdvancedHMI value with one?

4
Open Discussion / Re: Error on New Installation / New Build
« on: July 16, 2018, 07:26:11 AM »
Thanks Archie.  That fixed it.

Steve

5
Open Discussion / Re: Error on New Installation / New Build
« on: July 13, 2018, 04:00:15 PM »
I will try this on Monday (maybe).  It occured to me that I hadn't downloaded all the updates and bloatware for Windows, so I'm in the process of that right now.  Slooooow.

Anyway, I will give it another shot after that and try your suggestion if the problem remains.

6
Open Discussion / Error on New Installation / New Build
« on: July 13, 2018, 02:06:37 PM »
I've just fired up a brand new computer, Windows 10, installed both VS Community Express 2017 and the downloaded and installed the latest version of AdvancedHMI.  When I unzip Advanced HMI and fire it up, everything seems good until I do that very first "Build" which won't complete.  Instead I get a failure with this message:

"Couldn't process file MainForm.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.   AdvancedHMI"

I get a second failure message for AdvancedHMIcs.

I haven't located anything on the web and can't move on at the moment.

Any ideas?

7
Support Questions / Re: Please Help Test MessageDisplayByValue
« on: April 03, 2018, 10:07:00 AM »
I don't know.  It appears my list separator is currently set as a comma.

According to Microsoft "ttps://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentculture(v=vs.110).aspx" (the letter "h" removed from https to prevent a link):  "Windows allows users to override the standard property values of the CultureInfo object and its associated objects by using Regional and Language Options in Control Panel."

Using that method, under the Formats>Numbers>List Separator, the field shows a comma.

8
Support Questions / Re: Please Help Test MessageDisplayByValue
« on: April 03, 2018, 08:17:45 AM »
I believe I found at least one of the things causing problems:  Whenever I put a decimal point in the text ("Alarm 3.1" rather than "Alarm 3-1"), I always get a red background and default colored text.

9
Support Questions / Re: Writing to the Recipe.ini file
« on: March 29, 2018, 04:14:17 PM »
Well it works, but not quite the way I need it to.  My goal is to capture the current recipe data from the PLC and write that to the file.  This appears to write the data that was loaded when the project started.  Assuming that's what's happening, if I had a method for updating the Recipe.ini file that's in memory before writing the file, that would work too.

I will try more tomorrow.

10
Support Questions / Re: Writing to the Recipe.ini file
« on: March 29, 2018, 02:58:45 PM »
I looked at that for just a moment but dismissed it thinking it was only creating a new file.  I will try working with that and see what I can do.

Thanks
Steve

11
Support Questions / Re: Writing to the Recipe.ini file
« on: March 29, 2018, 02:37:14 PM »
No, you're absolutely right, there isn't a SaveSetting method that I've found, either.  For this go-around, I tried using the DeleteSettings method followed by the AddSettings method.  Neither did anything to the file.  I'm guessing I need to "open" the file first, but that's only a guess.

12
Support Questions / Writing to the Recipe.ini file
« on: March 29, 2018, 02:01:30 PM »
I've managed to work through the RecipeButton.vb read the recipes from my Recipe.ini file way I want, but now I want to be able to over-write values for recipe changes.  It appears in the parser.vb file that this functionality should be there already, but I haven't been able to get my file to change.

Here is the code I've tried so far and while it appears to work (no errors), it doesn't do anything to the file designated in the IniFileName section.

Code: [Select]
    Protected Overrides Sub OnClick(e As EventArgs)
        MyBase.OnClick(e)

        '* Make sure an INI file was specified
        If Not String.IsNullOrEmpty(m_IniFileName) Then
            If String.IsNullOrEmpty(RecipeFileError) Then
                ' Get the file name from the button configuration
                Dim file As New AdvancedHMIDrivers.IniParser(m_IniFileName)
                ' Get the file section from the PLC as per the button configuration
                Dim section As String = m_ComComponent.Read(m_PLCAddressSaveSection, 1)(0)
                ' Verify the file section exists
                If Not String.IsNullOrEmpty(section) Then
                    Dim c() As Char = {vbNullChar}
                    Dim TrimmedSection As String = section.Trim(c)
                    Dim SettingList() As String = file.ListSettings(section.Trim(c))
                    Settings.Clear()

                    For index = 0 To SettingList.Length - 1
                        If String.Compare(SettingList(index), "ButtonText", True) <> 0 Then
                            Dim s As New RecipeSaveSetting(SettingList(index), section)
                            Settings.Add(s)
                        Else
                            Text = file.GetSetting(TrimmedSection, SettingList(index))
                        End If
                    Next
                End If
                If m_ComComponent IsNot Nothing Then
                    For i = 0 To Settings.Count - 1
                        Dim v As String
                        Try
                            v = ""
                            v = m_ComComponent.Read(Settings(i).PLCAddress, 1)(0)
                            While v Is ""

                            End While
                            file.DeleteSetting(section, Settings(i).PLCAddress)
                            file.AddSetting(section, Settings(i).PLCAddress, v)
                        Catch ex As Exception
                            System.Windows.Forms.MessageBox.Show("Faile to write " & Settings(i).Value & " to " & Settings(i).PLCAddress & " ." & ex.Message)
                        End Try
                    Next
                Else
                    System.Windows.Forms.MessageBox.Show("ComComponent Property must be set.")
                End If
            Else
                System.Windows.Forms.MessageBox.Show("INI File Error - " & RecipeFileError)
            End If
        End If
    End Sub

Any help?

13
Support Questions / Re: Using the Recipe.ini file
« on: March 28, 2018, 01:33:04 PM »
I had to make a number of changes to get it to work the way I wanted, but I finally did.  Below is the button I finished up with.

With this RecipeButton control, you can dynamically set the IniFileSection using the "PLCAddressText" property.  This property also defines the recipe button text.  Furthermore, unlike the original RecipeButton control that needs to be reloaded if the PLC value changes, this one loads the current values.

I suspect there are improvements to be made, but it's a good start I think.


14
Support Questions / Re: Using the Recipe.ini file
« on: March 27, 2018, 07:36:54 AM »
Still no go.  I downloaded the beta version, copied in the updated RecipeButton.vb, and then did the build.  The errors went away but still the recipe button only looks at the IniFileSection rather than the STRING value in the tag assigned to in the PLCAddressIniFileSection.  I tried adjusting the code in the recipe button but nothing I did captured the tag value such that I could use it.

15
Support Questions / Re: Read String From Holding Registers
« on: March 26, 2018, 10:55:33 AM »
Got it.  Thanks

Pages: [1] 2