Author Topic: New Version 3.99t Now Available  (Read 7980 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
New Version 3.99t Now Available
« on: January 08, 2017, 08:49:37 PM »
V3.99t
BasicLabel - Added OneZero as a Boolean display option
AB PCCC Drivers - implemented PD data table access
EthernetIPviaDHRIO - Added DHRIOChannel property
AnalogValueDisplay - Added KeypadPasscode property
BasicLabel - Was not updating the BackColor if the value=""
LinearMeterH - TargetValue band was working in reverse
LinearMeterH,V - Added CenterTargetValue Property. Uses tolerance*4 to calc min and max
LinearMeterH,V - Allow 0 BorderWidth
LinearMeterV - Added same properties and fixed sizing issue with border
LinearMeterH,V - Improved transparency and backgound image
Gauge - Added region for corner clipping problem
AlphaKeyboard - was growing in size and causing problem on 800x600 resolution
Meter2 - Scaling was wrong when zero centered
MeterCompact, GageCompact - New controls
EthernetIPtoDHRIOforSLCMicroPLC5 - fixed to allow multiple DHRIO cards in same rack
RotationalPositionIndicator - changed to let work with transparent background and BackgroundImage
EthernetIP Drivers- fixed a problem with SerialNumber overflow not allowing reconnect
StackLight - Added Events for light value changed
ModbusRTU - Fixed problem with multiple devices on network

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #1 on: January 26, 2017, 01:03:38 PM »
Hi Archie,
I am using the drivers only in my C# project, the new version 3.99t is throwing Timeout Exception for all EthernetIPCLXCom methods (GetTagList(), Read()). The previous version (V3.99r) which we were using works just fine.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #2 on: January 26, 2017, 01:15:05 PM »
Hi Archie,
I am using the drivers only in my C# project, the new version 3.99t is throwing Timeout Exception for all EthernetIPCLXCom methods (GetTagList(), Read()). The previous version (V3.99r) which we were using works just fine.
If you use the default VB project, add a BasicLabel to the form and set PLCAddressValue, does it work?

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #3 on: January 26, 2017, 01:22:57 PM »
Yes, I tried that, it works, but If am using the driver class EthernetIPCLXCom in a simple main program, its timing out.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #4 on: January 26, 2017, 01:28:08 PM »
Can you post the code you are using?

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #5 on: January 26, 2017, 01:35:23 PM »
Below is the code.


using System;
using AdvancedHMIDrivers;
using MfgControl.AdvancedHMI.Drivers;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            EthernetIPforCLXCom comobj = new EthernetIPforCLXCom();

            comobj.IPAddress = "X.X.X.X";
           

            MfgControl.AdvancedHMI.Drivers.CLXTag[] x = comobj.GetTagList();

            Console.WriteLine(comobj.Read("AFI"));

            foreach (CLXTag item in x)
            {
                Console.WriteLine(item.TagName);
            }
            Console.Read();
        }
     
    }
}

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #6 on: January 26, 2017, 01:43:56 PM »
The default timeout is 15 seconds. Do you have a large number of tags? You can do a Wireshark capture to see if it is taking more than 15 seconds.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #7 on: January 26, 2017, 01:53:26 PM »
I created a patch that gives the ability to specify the timeout in seconds:

            x=ethernetIPforCLXCom1.GetTagList(30);


https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5/Patches/

- Download and extract the driver patch 6
- Open your version 3.99t project in Visual Studio
- In Solution Explorer, expand down the AdvancedHMIDrivers project
- Right click the \support folder and select Add Existing Item
- Browse to and select the extracted patch file
- Rebuild the solution

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #8 on: January 26, 2017, 02:24:01 PM »
Thanks Archie, this helps. I am facing a weird behavior, the old driver which is used to work with PLC A is not working now with the new driver.
The old driver which was not working with PLC B is working with new driver.
Both the PLC's are same model Allen Bradley Compact logix 5380.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #9 on: January 26, 2017, 02:28:31 PM »
If you could do a Wireshark capture of the one not working, I could tell from that what is the problem.

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #10 on: January 26, 2017, 02:49:04 PM »
I have attached the wireshark file, please take a look and let me know.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #11 on: January 26, 2017, 03:01:13 PM »
Are the PLCs both the same firmware? It's only returning Path Destination Unknown when it tries to read the tags. For some reason the Wireshark only recorded the responses and not the request.

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #12 on: January 26, 2017, 03:06:14 PM »
I am not sure about the firmware, I can check on that. I have attached the working PLC wireshark logs, in case you need.

On a side note, One of my team member is able to read the tags in the same PLC using a JAVA API (ethernet-ip https://github.com/EPICSTools/etherip), which is not working using the advancedHMI drivers. I double checked with him :)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: New Version 3.99t Now Available
« Reply #13 on: January 26, 2017, 03:39:23 PM »
This must be a firmware difference. The change in the AdvancedHMI driver could be 1 of 2 things. There was a change in connected/unconnected message and the new version requests less information about the tags.

uthaman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: New Version 3.99t Now Available
« Reply #14 on: January 26, 2017, 03:58:01 PM »
Not sure about the firmware here.

When I tried to read a tag value using Read(String tagName) in a main program using the driver, I am getting an error saying "Read Failed. Path Segment error (Invalid Tag name) status code=4",
but when I use the default VB project, add a BasicLabel to the form and set PLCAddressValue to the same PLC and read the same tag, it is displaying the correct tag value.

It is working with the VB form controls and not standalone.