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 - PLCHorse

Pages: [1] 2
1
Additional Components / Re: Ping Button
« on: October 02, 2024, 04:47:12 PM »
I really like this.

Is there any way you think to make this read from PLCConfig.ini for IP addresses to ping?

2
Me dum dum. Works perfectly now. thanks lots.

Was modifying "recipe button" vb but not "recipe SELECT" vb.

Apes, together strong.

3
Another option could be to use the enabled property and disable the button, maybe change its text to something else while it is disabled.

See this topic and its "Event - Mouse Down" section that disables the button (Reply #6):

  https://www.advancedhmi.com/forum/index.php?topic=1562.msg8438#msg8438

thank you for the help:

Hm, i tried this and it worked well but only for the recipe save button. The recipeButton does not disappear.

In : RecipeButton.vb this is where I put my code: I tried several areas in this sub, nothing seemed to do the trick.

Code: [Select]
#Region "Events"
    Private m_savedText As String = ""
    Protected Overrides Sub OnClick(e As EventArgs)
        MyBase.OnClick(e)
        Me.Visible = False

        '* Make sure an INI file was specified
        If Not String.IsNullOrEmpty(m_IniFileName) Then
            If String.IsNullOrEmpty(RecipeFileError) Then
                If m_ComComponent IsNot Nothing Then
                    For i = 0 To Settings.Count - 1
                        Try
                            m_ComComponent.Write(Settings(i).PLCAddress, Settings(i).Value)
                        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
        Me.Visible = True
    End Sub

4
I have seperated my AHMI project from this project and instead used Python/Pylogix/Pycomm3 for this: which was far less complicated for the simple project i was working on, and thus lighter weight on the PC.

5
You mean make the button invisible after it gets clicked? Ok that sounds plausible but how can i detect in the plc that the recipe load /save  is in progress such to make it invisible

6
So what ive noticed is the recipe buttons: if it takes a long time to load or save and someone hits the button multiply due to very little indication of anything happening: then they might hit the button 3 times or 4 or 10, causing 10 recipe loads.

7
I would like to load a High Resolution Image onto a screen (like 1920x1080) that is pulled from a user accessibile directory. Say an integer in my plc is 2, then 2.png will appear on the screen.

Can this be done?

8
Support Questions / Add Loading Spinner to Recipe Load / Recipe Save Button?
« on: September 16, 2024, 09:12:32 AM »
The Recipe Load and Recipe save button is working Excellent!

I am using it to write 1101 Integers, and one string.

Is there any way to make it show some kind of loading spinner?

9
- In Visual Studio, in the form designer, select the RecipeSaveButton
- In the properties Window, click the lightening bolt
- Scroll down to RecipeSaved and double click in the box to get back to the code for handling the RecipeSaved event
- Add this line of code:
Code: [Select]
    Private Sub RecipeSaveButton1_RecipeSaved_1(sender As Object, e As EventArgs) Handles RecipeSaveButton1.RecipeSaved
        MsgBox("Recipe save complete")
    End Sub

I used this - works great! thank you again Archie. I couldn't see a similar place to put it for the Recipe load button however, do you think that is possible somehow? I'm writing 901 integers so it does take a few seconds. ;)

10
Support Questions / Re: 3.99y - BasicButton Toggle no longer working
« on: September 13, 2024, 11:01:48 AM »
Try this:

https://www.advancedhmi.com/forum/index.php?topic=3118.0

thats a cool workaround: though I think the dev might want to be aware of this feature having broken.

11
Support Questions / Re: 3.99y - BasicButton Toggle no longer working
« on: September 13, 2024, 10:07:31 AM »
I have confirmed with someone else that this IS a problem!!!

12
Support Questions / Re: 3.99y - BasicButton Toggle no longer working
« on: September 12, 2024, 03:40:33 PM »
Update:
BasicButton does NOT work however
SquareIlluminatedButton Does.

Same bit, same settings.

13
Support Questions / 3.99y - BasicButton Toggle no longer working
« on: September 12, 2024, 12:24:42 PM »
Sorry for all the questions today.

After changing to 3.99y from 3.99x - by basicButtons that were using the "Toggle" feature have ceased to work.

I tried to remake the buttons - but they still do not seem to toggle the bit in the PLC. I searched for this but didn't find any results. I have trouble imagining this would be broken: is there something new I'm missing?

I'm using MicroLogix.

14
I have experienced the power of AdvancedHMI today.

One last question: and thank you again for your time.

Is there a way to indicate to the Operator that the Recipe Save / Recipe Selection Buttons are working? They seem to take a little bit of time - not an issue I'm actually quite amazed by the speed but it is noticable and there is little feedback to say the button is working or not.

15
This is amazing stuff - thank you.

It seems that I built my project in 3.99x instead of 3.99y is there a way to migrate the screens I built from x to y or do I need to start over fresh?

Pages: [1] 2