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

Pages: [1] 2
1
Thanks for the reply bobbh95

  Each of the DataSubscriber2's have 12 items in the collection, they are all built off the GUI.

  I was able to get the "Name" property of the item as they got fired and am now working to process the data.

Thanks

2
Thanks for the reply bobbh95,

I tried changing the DataChanged to DataUpdated and I get this error...

BC30590: Event 'DataUpdated' cannot be found.

When I look at the DataSubscriber2 Properties there are only 4 options, "ComError", "DataChanged", "DataReturned", and "SuccessfulSubscription"

Thanks

3
Thank you bobbh95,

I was able to get the name finally.

So now it's on to the processing.
....

Here is the code I use...

    Private Sub Sta1Error_DataChanged(sender As Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) Handles _
        Sta1Error.DataChanged, Sta2Error.DataChanged, Sta3Error.DataChanged, Sta4Error.DataChanged, Sta5Error.DataChanged _
        , Sta6Error.DataChanged, Sta7Error.DataChanged, Sta8Error.DataChanged

        Count = 0
        Data = sender.PLCAddressValueItems.Item(0).Name
        StaData = Mid(Data, 1, 4)

        Select Case StaData
            Case = "Sta1"
                i = 103
                q = 105
            Case = "Sta2"
                i = 121
                q = 123
            Case = "Sta3"
                i = 139
                q = 141
            Case = "Sta4"
                i = 157
                q = 160
            Case = "Sta5"
                i = 175
                q = 178
            Case = "Sta6"
                i = 193
                q = 196
            Case = "Sta7"
                i = 211
                q = 214
            Case = "Sta8"
                i = 229
                q = 232
        End Select

        Try
            Using EP As New ExcelPackage(New FileInfo(Local & TackStationXl))
                Dim WS As ExcelWorksheet = EP.Workbook.Worksheets("Alarms")
                FirstBlankRow = WS.Dimension.Rows + 1

                For x = i To q
                    If TackStation.Read("MP3300:I.Data[" & x & "]") <> 0 Then

There is more but it is repeat code.

The Problem that I am seeing is that the Datasubsriber2 only fires for Sta1Error.DataChanged and Sta2Error.DataChanged.  I do not ever see the other stations fire when one of the defined bits are triggered in the PLC.

Anyone know why the other Datasubscriber2's do not get captured?  Is there a limit to the number of Handles I can have on a sub?

Any Help would be great.
Thanks




4
Support Questions / Grabbing the Member "Name" from a DataSubscriber2
« on: August 02, 2024, 09:54:50 AM »
Hello All,

I have a Program that I am working on that has 9 Datasubscriber2s running.
When one of the tags is triggered the Datasubscriber2 fires and I collect the data...all works fine.

What I am trying to do is consolidate my code so that I am not running 9 Identical DataChanged routines with different tags.
What I would like to do is Grab the Name of the Member that fired and use a If..Then..Else or a Select Case to process the data.

In debug mode in Visual Studio I can see the name that I need to grab but the code for it eludes me.

I have tried

        Data = sender.PlcAddressValueItems.Items(0).Name
        Data = Sender.Datachangedevent.method.name

Is there a way to Grab the Member Name?

Thanks

5
Support Questions / Re: Changing the Look of a Button
« on: March 04, 2024, 05:53:29 AM »
Thank you Archie that works very well.

6
Support Questions / Re: Changing the Look of a Button
« on: February 27, 2024, 06:32:16 AM »
Thanks Archie,

I am using the PLCAddressHighlightX and PLCAddressSelectTextAlternate to display reactions to the button press, these are basic Jog and Run buttons.

Is there an option/method to add a "Enable Forecolor" and "Enable Backcolor"?

Thanks

7
Support Questions / Changing the Look of a Button
« on: February 26, 2024, 08:02:15 AM »
Good Morning Everyone,

I have a working project that the operators are asking for a change.

I have several Basic Buttons that are Enabled and Disabled based on the machine condition.  The operators would like the Disabled state to be a different color as they are having trouble determining if the button is Disabled.

Is there some code I can add to the button to change the color when Disabled??

Thanks

8
Support Questions / Re: Adding Conditions
« on: February 23, 2024, 12:52:36 PM »
Thanks Archie,  I set it up like that and it works well.

9
Support Questions / Adding Conditions
« on: February 23, 2024, 10:13:47 AM »
Good Morning Everyone,

I have a program that works but I want to make the BasicButtons show and hide.
I can add PLC Addresses to the 'PLCAddressVisible' but cannot add multiple addresses.

is there a way to add additional 'PLCAddressVisible' addresses to the BasicButton code to accept multiple conditions??

I don't have PLC change permissions.

Thanks

10
Support Questions / Re: BasicLabel Overload
« on: June 07, 2022, 06:34:58 AM »
Out of curiosity, can you try to push it up to 100 BasicLabels with Beta 38?

Archie, bachphi,

I have migrated my app to Bet38, (only Minor Struggle, Operator Error ).
I tested the Basiclabel limit at 100 labels with no issue, I also tested it with more than 500 with no issues.

Edit/Update:
At 750 BasicLabels the communications is still trying but the update rate can not handle the changing data.

Thank you Gentlemen for your assistance,
Randy

11
Support Questions / Re: BasicLabel Overload
« on: June 02, 2022, 09:58:17 AM »
I can update to Beta 38, might take awhile to get it moved.

I will try to push it up to 100 BasicLabels and see if it strokes out.


12
Support Questions / Re: BasicLabel Overload
« on: June 02, 2022, 08:54:10 AM »
Archie,

Yes, I am using 3.99y Beta 34.

I switched the DisableMultiServiceRequest to True on all three drivers and now i can see all the data coming and going.

Thanks Archie


13
Support Questions / BasicLabel Overload
« on: June 02, 2022, 07:33:58 AM »
Good Morning Y'all,

I have an App that I've been working on that uses 59 BasicLabels to read and write data to three Allen Bradley PLC's.
I needed to add more BasicLabels to the app but adding one more causes all of them to loose connection to the PLC's.

Is there any way to increase the maximum limit of basiclabels per screen?

Thanks Randy 

14
Support Questions / Re: Error Migrating From Beta17 to Beta34
« on: December 02, 2019, 11:00:46 AM »
Thank you Sir

That fixed the problem perfectly.

Arv

15
Support Questions / Error Migrating From Beta17 to Beta34
« on: December 02, 2019, 10:29:27 AM »
Gentlemen,

I have an app that was built and functions using 3.99y Beta17, I have been trying to upgrade this app to 3.99y Beta34 but I have had minor errors to knock down.
This one however I can't seem to get past...
---------------------------
Microsoft Visual Studio
---------------------------
Code generation for property 'PLCAddressValue' failed.  Error was: '[A]MfgControl.AdvancedHMI.Drivers.PLCAddressItem cannot be cast to MfgControl.AdvancedHMI.Drivers.PLCAddressItem. Type A originates from 'MfgControl.AdvancedHMI.Drivers, Version=3.99.19.7, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\Users\rshepherd\AppData\Local\Microsoft\VisualStudio\15.0_8ccf801a\ProjectAssemblies\j5wj0pv401\MfgControl.AdvancedHMI.Drivers.dll'. Type B originates from 'MfgControl.AdvancedHMI.Drivers, Version=3.99.19.7, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\Users\rshepherd\AppData\Local\Microsoft\VisualStudio\15.0_8ccf801a\ProjectAssemblies\incer8y701\MfgControl.AdvancedHMI.Drivers.dll'.'

Anyone else having this issue?
Any help would be appreciated.

Thanks
Arvanoss

Pages: [1] 2