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

Pages: [1] 2 3
1
Open Discussion / Re: Combobox selection value
« on: January 02, 2021, 03:53:22 PM »
Thanks Archie

Works :)

2
Open Discussion / Re: Combobox selection value
« on: January 01, 2021, 02:12:45 PM »
Hi Archie

Yes, the combobox is directly connected to the database

I have a Dataset, BindingSource and TableAdapter connected to the page

3
Open Discussion / Combobox selection value
« on: January 01, 2021, 10:57:42 AM »
First Happy new year  to everyone  :)

I am battling with a small issue this afternoon and hope someone could give me a hint

I have a combobox where I select a supplier and display it i the combobox selection and a second column with a Supplier_ID, which I pull out as the combobox.value into a BasicLabel

If there is a barcode on the product, I will get the supplier_ID via the Barcode scanner and would like to pick the selection in my combobox using the combobox.value

Would this be possible ?

/Holmux

4
Additional Components / Re: TCP Client Socket
« on: December 17, 2020, 01:03:23 PM »
Thanks Archie

I know this is an old post, but You just saved this Christmas for me :)

/Holmux 

5
Hi Archie

Thanks
I found a copy of a version before the big crash and added the few changes I made, so i am back up and running

But just to practice I will try and go true the full recovery, som I am prepared for the big crash one day.

Thanks again
/Flemming

6
I found that it is related to DataSubscriber2, all collections in my data subscribers (5 in total) where blank.

I think this started when i accidentally added a DataSubscriber2 to a different page and not the mainpage, I have corrected the mistake, but I have a hard time getting back on track, I have tried deleting the old DataSubscribers and added new ones, but I can't add a new member to the collection.

/Flemming

7
Hi List

I hope someone can point me in the right direction  :)

I am battling with this Error that shows up when I open the project, if I ignore the communication to the PLC is OK, but the communication I have to the database fails without any warnings.

Method 'System.Collections.ObjectModel.ObservableCollection`1[[MfgControl.AdvancedHMI.Drivers.PLCAddressItem, MfgControl.AdvancedHMI.Drivers, Version=3.99.19.2, Culture=neutral, PublicKeyToken=null]].Add' not found.

I am running windows 10, I get the same error if I open in VS 2017 or 2019

Is this a Microsoft thing ?

/Flemming

8
Open Discussion / Re: change language on labels and buttons
« on: May 17, 2020, 06:03:42 PM »
Thanks Archie

I had a feeling it would not be that easy :)

This project is for a customer in France and they are very picky with the translation, I am sure no mater how much work I put into it, they will have some corrections.
The next machine will be Germany, so I am ready to put some work into a good solution

I have a feeling that must of the words I need to translate er not going to be in the list in .net, so I am leaning against a text solution or local DB.

Thanks again

9
Open Discussion / change language on labels and buttons
« on: May 17, 2020, 04:31:09 PM »
Hi
I have a project where I need to be able to change the language and have been searching for the best solution, the perfect solution would be a setup where the customer would be able to edit the translation, for example in a text file.

Or do i make a local db and use the databinding setup ?

/Holmux

10
Open Discussion / Re: Add functions to existing buttons
« on: March 23, 2020, 07:01:08 PM »
Hi Godra

Thanks, just what I was looking for :)

Regards
/Holmux

11
Open Discussion / Add functions to existing buttons
« on: March 22, 2020, 06:33:27 AM »
Hi
I hope everyone is safe and in good health.

I hope I can get a little help with a task
I generate a array of basic buttons on a page, when one of the buttons is pushed first time I set an "X" into the text, if the same button is pushed again I highlight it, and if pushed again I clear both.
I am using the valueToWrite option, which simplifies my PLC code, using this value as a pointer speeds up my reaction time, Everything is working great :)

But now my customer would like a third option, like first push "X", second push "Orange", third push "Red", fourth push clear the button, I was thinking Basic Indicator would do the job, but  am missing the ValueToWrite option, would that be possible to add to the basic indicator ?
Or is there a different option i can use ?

/Holmux

12
Open Discussion / Re: Datasubscriber2 code firering twice
« on: March 03, 2020, 10:25:08 AM »
Solved  :)

I was firering the "command.ExecuteNonQuery()" twice.

Well had been starring at the code for hours and it was right there in front of me, Sorry

/Holmux

13
Open Discussion / Datasubscriber2 code firering twice
« on: March 03, 2020, 02:13:54 AM »
Dear All

I need some help figuring this one out  :)

I have a Datasubscriber2 that inserts some data into a MS SQL DB, but every record is inserted twice in the DB
I have double checked the PLC code, debugged the AdvancedHMI code, they are only firering once, here is my
code:
Code: [Select]
Private Sub DataSubscriber25_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber25.DataChanged
        If e.ErrorId = 0 Then
            If e.Values(0) = True Then
                Using Con As New SqlConnection("Data Source=192.168.100.100;Initial Catalog=DB;Persist Security Info=True;User ID=Tarzan;Password=****")
                    Dim command As New SqlCommand("insert into dbo.Products(UPID, XPOS, YPOS, Error, Employee, Employee2) values(@UPID, @xpos, @ypos, @error, @employee, @employee2)", Con)
                    command.Parameters.Add("@UPID", SqlDbType.Int).Value = BasicLabel16.Value
                    command.Parameters.Add("@xpos", SqlDbType.Int).Value = BasicLabel2.Value
                    command.Parameters.Add("@ypos", SqlDbType.Int).Value = BasicLabel3.Value
                    command.Parameters.Add("@error", SqlDbType.Int).Value = BasicLabel4.Value
                    command.Parameters.Add("@employee", SqlDbType.Int).Value = BasicLabel5.Value
                    command.Parameters.Add("@employee2", SqlDbType.Int).Value = BasicLabel33.Value
                    If Con.State.ToString <> "Open" Then
                        Con.Open()
                    End If
                    command.ExecuteNonQuery()
                    If command.ExecuteNonQuery() <> 1 Then
                        Con.Close()
                        Con.Dispose()
                    End If
                End Using
                EthernetIPforCLXCom1.Write("DB_Tricker_1", 0)
            End If
        End If
    End Sub
/Holmux

14
Open Discussion / Re: ScreenCleanButton
« on: December 18, 2019, 06:40:32 AM »
Sorry
I was very low on sugar last night when I wrote this :)

What I was trying to explain is my main form is set as: IsMidiContainer
the main screen has my menu buttons at the bottom and the rest of my
form's are shorter and lay on top of the main page.

If I use the sceenCleanButton on one of the forms, it works OK and leaves my form open,
but if I include the screenCleanButton in my menu it clears my form and I only have the main
page open when the cleanscreen closes.

I had a look at the code for the ScreenCleanButton, but I can't figure out why it also closes my
form.

/Holmux

15
Open Discussion / ScreenCleanButton
« on: December 17, 2019, 11:06:46 AM »
Hi

I have a setup where I have a main page with different Mediforms on top, I would normally place the ScreenCleanButton on the mediform it self, if I do this the cleaning screen open and closes and I still have the mediform open.

But I would like to move the Cleaning button to the main page, but when I do this the mediform that was open, will closes together with the cleaning screen.

Is there a quick way of keeping the mediform open or call it again after the cleaning screen closes ?

Regards
/Holmux

Pages: [1] 2 3