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.


Topics - GraemeTownsend

Pages: [1]
1
Support Questions / Array of DataSubscriber2 at runtime
« on: August 08, 2018, 08:51:17 PM »
Hi All,

I have a situation where I want to create multiple DataSubscriber2 at runtime, but the quantity may vary depending on ini file settings.

I can create them no problem, (at least I think I can!), but I am having trouble linking them to an event handler function. Happy for the one routine to handle all as once I get the event details I can branch/react as required.

Any advice? Or am I fooling myself?

Cheers,
Graeme.

(Reason: I have a common app across multiple projects. Each project connects to different quantities of PLC's. I want to keep the application generic)

2
Hi all,

Whenever I open the MainFrom.vb file, it will create an AdvancedHMIDrivers.EthernetIPforCLXCom item, (naming it EthernetIPforCLXCom1). Despite the fact there is already an instance of one there already, (with a project specific name).

I cannot work out why? There is no reference to it anywhere in the code. It's as if the MainForm feels that it needs to see one hen it opens and doesn't recognise the existing.
If I delete it, close and re-open MainForm.vb it comes back.
If I rename it, close and re-open MainForm.vb I get another one.

There are no other AdvancedHMI items on the MainForm apart from a DataSubscriber2 already linked to the EthernetIPforCLXCom.

Any idea's on what to look for?
Thanks.

3
Hi,

I am getting the following error on an AdvancedHMIControls.CheckBox

"General Error: Offset plus Number of Elements extends beyond the end of the requested tag."

The comms method is EthernetIPforCLXCom, and works fine for all else.

The PLC tag in question is a type of BOOL. (Set up in an array as BOOL[100]), PLC is a L27 Compact Logix

The Advanced HMI check box control has the same PLC tag set in both:
PLCAddressCheckChanged
PLCAddressChecked

It works fine, as expected, however the error flashes on and off continually. I can turn the error off using SuppressErrorDisplay = true. But I would still like to know what is happening?

I am using AdvancedHMI version: 3.99(t)

Thanks,
Graeme.

4
Support Questions / App freezing when showing windows forms.
« on: July 31, 2017, 05:37:44 AM »
Hi All,

I have an interesting issue with the app freezing for a while before updating all content and working fine.

Windows form app with minimal PLC interaction.
Various windows forms a are shown at different times with the true HMI data.
These forms a created at runtime, but not shown.

One such form has a Tab Control on it with two tabs. Each tab has an overview with several basic labels (20+).
When I open/show this form, I pre-select which tab to view first.

When I open form to Tab A, all it's labels work 100% fine, quick acting, no issue. As soon as I click on Tab B, the tab is shown, but the app freezes. You cannot even move it around by the top title bar. After a wait of between 10 and 20 seconds, it comes to life and then works fine. You can alternate between tabs no issue, all is OK. You can also hide the tab, then re show with no issue.

It behaves completely the same in reverse if I open Tab B first.

Any idea's?

Regards,
Graeme

5
Support Questions / ComComponent runtime change
« on: June 02, 2017, 01:03:08 AM »
Hi All,

I want to be able to change the ComComponent during runtime for various BasicLabel and BasicIndicator. Is this achievable? (I have seen hint of SubscribeToComDriver but struggle to find implementation).

Alternatively, (and perhaps even better), could a common AdvancedHMIDrivers.EthernetIPforSLCMicroCom have it's IP address changed at runtime?

Any advice welcomed.
Thanks,
Graeme.

6
Open Discussion / IP traffic with multiple windows forms
« on: March 28, 2017, 01:05:37 AM »
Hi,

I'm looking at a project with potentially a lot of I/O. I am building the HMI to have several Windows forms that I Show/Hide to manage the layout.

Question:
- Will the Basic Labels and Indicators continue to poll the PLC(s) even when not visible?

Cheers,
Graeme.

7
Support Questions / NullReferenceException in Basic Indicator
« on: August 23, 2016, 09:00:49 PM »
Hi,

I'm getting the following error on application shutdown: An unhandled exception of type 'System.NullReferenceException' occurred in MfgControl.AdvancedHMI.Controls.dll.

I can't easily see which part of my code this is coming fro? any advice? I'm running AdvancedHMI 3.99n.

Image of error below.

Regards,
Graeme.

8
Support Questions / Meter Pack and version 3.99d
« on: April 20, 2016, 01:19:04 AM »
Hi,

I have just upgraded from version 3.99a to 3.99d and I can't get my purchased Meter pack to work? Is there a change required for them?

Also, AdvancedHMIDrivers.PLCAddressItem now creates an "is not defined" error.

Any help welcomed.

Regards,
Graeme.

9
Support Questions / Pipe animation
« on: October 22, 2015, 08:43:33 PM »
Hi All,

Is there a way to animate the pipes (and elbows?) for flow indication?
ie. stay grey for no flow and go coloured for flow?

Or another method people may have used to create an animated flow screen?

Cheers,
GT.

10
Support Questions / BasicLabel and Substring
« on: October 21, 2015, 08:36:17 PM »
Hi All,

This is most likely a very basic question, but I'm struggling.
Using TextChanged event on a basicLabel I want to manipulate the returned data, (which is just a long number, 10 digits).
I want to get a substring as indicated below, but I cannot.
If I use Substring I get System.ArgumentOutOfRangeException
If I use Mid the label goes blank.

If I use a bogus string, (TestStr3 below), it works fine.


Code below, (I've ballooned it out with un-needed variables for clarity and fault finding). Any advice welcomed.
Cheers,
GT.



    Private Sub Time_TK01_TextChanged(sender As Object, e As EventArgs) Handles Time_TK01.TextChanged
        Dim TestStr1 As String = Time_TK01.Text.ToString()
        Dim TestStr2 As String = "1234567890"
        Dim TestStr3 As String

        TestStr3 = TestStr1.Substring(2, 2)
        'TestStr3 = Mid(TestStr1, 2, 2)

        Time_TK01.Text = TestStr3
    End Sub

Pages: [1]