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

Pages: 1 [2]
16
Support Questions / Re: NullReferenceException when switching Forms
« on: September 10, 2013, 09:57:08 AM »
Are you do everything from scratch?

I've just created 2 forms using 20 different drivers and fine with ModbusTCP.

I take it you are using 2 different drivers as in one on one form, and one on another? Within the drivers are they mapped to the correct forms?

17
Support Questions / Re: ModbusTCP - More than 9 DataSets?
« on: September 10, 2013, 09:44:01 AM »
Perfect works fine thank you Archie.

Is there is time limit on the connections on ModbusTCP? If I leave it running I eventually get ComFail - 20 errors. I reload and it is fine? If it gets an error does it auto reset or not?

Sorry for all the questions...

18
Support Questions / Re: ModbusTCP - More than 9 DataSets?
« on: September 10, 2013, 08:35:34 AM »
Archie - Excellent thank you. Done and working an absolute treat.

I've brought all your packs online, will happily buy more as you do them i'm very impressed with this and the excellent support. If I can contribute to the project further do let me know.

A question aside, when using the BarLevel I am reading Volts and receive it from the PLC in 273 for arguments sake. It needs to be 27.3. I've tried to adjust the ValueScaleFactor from 1 to 0.1 but it doesn't change it. This works fine in the Label module or have I interepted the BarLevel wrong?

Thank you.

19
Support Questions / ModbusTCP - More than 9 DataSets?
« on: September 10, 2013, 05:44:52 AM »
Me again!

Been making great progress with this, really pleased. I got around the last error by using multiple DNS names and it works perfectly.

However when I try to add a tenth dataset for ModbusTCP I get the error below? I'm unsure how to allow the Index to build into double numbers (I.E. 10 and above). I assume it is around Line 249 but slightly unsure on this....

Any pointers appreciated.

Occasionally when I close the form in testing mode I get the error as attached below too. Is this part of the same thing?

20
Support Questions / Re: ModbusTCP - Multiple Connector Issues
« on: September 09, 2013, 01:50:04 PM »
Just done another test. I've reverted back to the original code and basically used a DNS address in one ModbusTCP and an External IP in another connector and all works fine :)

So if the code can be adapted to work on the same IP address but different ports I would be a very happy man! My other way is to simply create DNS entrys (E.g. engine1.provide.com, engine2.provider.com etc) to allow the code to route that way.

Appreciate all the help Archie thank you.

21
Support Questions / Re: ModbusTCP - Multiple Connector Issues
« on: September 09, 2013, 12:25:06 PM »
Hi Archie, great thanks for the code. I removed the old set of code and inserted the code you gave.

Error code as attached.

22
Support Questions / Re: ModbusTCP - Multiple Connector Issues
« on: September 09, 2013, 11:26:09 AM »
Hi Archie, thank you for the response appreciate it.

The setup is slightly strange in that the IP address is always the same as I use one external IP address to talk to the engines, and use different ports to access different engines.

For example:
1.1.1.1:50101 - Translates to an internal address of 192.168.1.1 on port 502
1.1.1.1:50102 - Translates to an internal address of 192.168.1.2 on port 502

And so on.

Will this work with the code or will I need to make sure the IP address is different? I can do that by using DNS settings I think which will give different internal values in VB.NET then sort itself out outside of the software. But will give unique values in VB?

Any thoughts?

23
Ok, well I just purchased one of everything on your site and that totals something like $10 so I still want to donate more as this has saved me a lot of $$$. I'll keep an eye out for the extra support option when you add it.

If you enable the donate option again let me know as I want to support this project.

Thanks,
Anthony.

In agreement with this yes!

24
Support Questions / ModbusTCP - Multiple Connector Issues
« on: September 09, 2013, 10:34:41 AM »
Firstly an excellent product thank you.

I'm writing some software in VB to query multiple PLC's. Each PLC responds to ModbusTCP and there are 14 of them.

If I add one ModbusTCP Connector to the main form it is fine. If I change the settings in the connector to the 1st PLC it is fine, if I change them to the 2nd PLC, it is fine.

If I add another ModbusTCP Connector it then screws them both up and no data from either connector. Is there some code to change to allow multiple ModbusConnectors to co-exist on one form? Or have I got to target different forms?

Appreciate anyones time! Just downloaded the latest AdvancedHMI3.8Beta today and built on this code.

Pages: 1 [2]