Author Topic: Visual Studio Express AdvancedHMI Comms to Controllogix Publish stop Comm  (Read 1587 times)

Saul@kac.us

  • Newbie
  • *
  • Posts: 3
    • View Profile
I am using Visual Studio Express 2015 and AdvancedHMI software to talk to a ControlLogix Processor. I am using AdvancedHMI BasicLabels with the EthernetIPforCLXCom driver to monitor certain tags in the controllogix l81e processor. While everything works on the development software while debugging, once i want to actually run the software from the shortcut that i created from EXE found in the \bin  folder under the project folder, no BasicLabels will update, it almost seems that there is no communication to the plc, but it works perfect while in the debug mode. What im i dong wrong. Please help....

I almost done with my project and im stuck at the very end...


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Are you using the default VB project that is part of the AdvancedHMI package?

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
He think he said somehting about publish??
create the shortcut from \bin\debug folder not from the release folder
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
I was not completely clear on this because the title did not match the post. The title mentioned Publish, but in the post it says he created a shortcut to the exe. The other thing was the mention of Visual Studio Express and 2015. The express versions no longer existed after VS 2012

So I made the assumption it was VS 2015 Community Edition and "publish" did not mean the actual Publish function, but an XCopy deployment.

Saul@kac.us

  • Newbie
  • *
  • Posts: 3
    • View Profile
I apologize for the misspelling and the bad writing from my previous post. I did publish the project with the Visual Studio Express 2015 publisher wizard. After installation of the program, that is when I noticed that it was not communicating to the plc and it was the wrong method to run the final program so it fully complies with the licensing. I looked into other post and Archie recommended to copy the complete solution to the PC and create a shortcut to the EXE found in the \bin folder (debug or release). I could not get any of the programs  to work from the release folder nor the debug folder. What am i missing?
I think im using the default program from the AdvancedHMI Package.
The name of the software is Microsoft Visual Studio Express 2015 for Windows Desktop. Version 14 Update 3
Did i do the xcopy deployment wrong? I assume you build the project in the development software and then go to the /bin folder  and start the program from there.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
By default the application file will be in the bin\debug folder. This may be different if you changed the setting in Visual Studio to Release.

Do you get any errors or any changes in the BasicLabels? If there are any communication problems, it should show in the BasicLabel. Just to make sure you are starting the correct exe file, make a small change to the form such as adding another label or changing the BackColor,  Build the project, then go to your exe and try to run it to see if the change shows up.

Saul@kac.us

  • Newbie
  • *
  • Posts: 3
    • View Profile
Not sure what fixed the problem, but this is how i got it to work, I re-dowloaded your AdvanchedHMI Package again. Replaced my AdvancedHMIControls, AdvancedHMIDrivers and AdvancedHMICS folders from the freshly downloaded package.  I opened up the project and build the solution. Once i did this, i noticed that the project was now giving me errors. Somehow under the MainForm.Designer.vb code every BasicLabel created had a misspelling on one of its properties. for example:

Me.BasicLabel1.KeypadAlphaNumeric = False
was spelled as
Me.BasicLabel1.KeypadAlpahNumeric = False

Where the a and h flipped. Not sure how this happened, but it happened on all basiclabels... Weird.
Once i fixed this error, i build the project tested the project through the XCopy deployment and it worked great.

I really appreciate the quick response and assistance from you Archie. Thank you very much

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
You must have been working from an older version because that spelling correction was made a few versions ago.