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

Pages: [1]
1
Support Questions / List of tags...
« on: September 29, 2023, 09:48:02 AM »
Hi folks, when using EthernetIPforCLX.GetTagList - I get a lot of things which are not visible in the PLC tag list, and things which are the top level of an array, and not the members of the array. (MyFLoat[100] just comes out as MyFloat)

I only have controller-scoped tags and no program scoped ones, there are also lots of things like _DEFVAL_0000DEE etc, what are these and why do they show up when they aren't visible in the controller tag list in Studio?

2
Support Questions / Re: VS 2022
« on: March 14, 2023, 11:48:24 AM »
Thanks Archie, oddly that setting was on, but after some (many) minutes of the project being open, the toolbox eventually populated - I have now pushed the lot up to Github and hopefully it will remain working.

I must admit VS2019 was a bit more user friendly, where 2022 isn't so much. Ah well, progress is progress eh.

3
Support Questions / Re: VS 2022
« on: March 14, 2023, 10:43:30 AM »
So to fix any potential errors I had pushed my project to Github, then opened it on the new computer with VS2022 and the same thing happens, it builds fine with no errors but the toolbox is completely empty - any idea what to do Archie ?

It does insist on retargeting to .NET 4.8 and will not accept any other option as 4.0 is deprecated.

"There are no usable controls in this group, Drag an item onto this text to add it to the toolbox"

4
Support Questions / Re: VS 2022
« on: March 14, 2023, 10:23:23 AM »
Ok, so more info on copying it over again, I am asked to retarget to .NET framework 4.8 - will this work?

I am trying again, having just rebuilt all, and then rebuilt individual project sections but I get an error that "this solution does not support individual rebuild etc" on some sections.

Still the toolbox is completely empty, "show all" shows all standard controls from Windows in grey, but no AHMI controls at all. No errors on rebuild all, including advancedHMIControls.

5
Support Questions / Re: VS 2022
« on: March 14, 2023, 09:46:17 AM »
Hi Archie, there is no option to rebuild solution (not in the menu) when I open this project, yet on vs2019 it opens without errors. I am going to try and copy the project over again, it is weird behaviour. I expect I can just lift the project folder from My Documents and place on the new PC with nothing else needed?

6
Support Questions / VS 2022
« on: March 09, 2023, 05:58:56 AM »
Hi all, when I copy my project over to another (new) computer with VS 2022 on it instead of VS 2019, I can open the default AHMI project SLN but when I open my one (with created HMI) it has a blank toolbox and complains there are lots of components missing which are referenced in my main form. This is true, since the toolbox is empty but no idea why?

If I open my project in VS 2019, all works as expected, so why can VS 2022 not open my project copy with a working toolbox but yet can open the default SLN from the AHMI zip and the toolbox populates as expected?

toolbox > reset does not work.

7
Support Questions / Re: Graphic Indicator
« on: January 24, 2023, 08:19:46 AM »
I have the same issue, is there a fix for this?

8
Open Discussion / Re: Label text is ugly at runtime
« on: May 03, 2021, 11:17:18 AM »
No it's the same on every device. Tried 15" laptop screen, big TV etc. I do have a picture background on the form and I think that is what's causing the label to render badly.

9
Cannot get to the bottom of this. Tried sending the chart to back, all other controls to front, loads fine as an app in debug or release but when viewed on a web browser (all browsers) then the chart itself is the only control you can see, no others appear in that view.

Anyone had this?

10
Support Questions / Standard labels disappear in simplewebserver view
« on: April 27, 2021, 09:13:06 AM »
I've used the SimpleWebServer component and it works perfectly, really great addition to the components. I built a dashboard showing various plant metrics and using only AHMI components on the main form, all good.

Next, I built an app to use the standard Chart component from Windows to chart a rolling value from a PLC tag (controllogix) again it works perfectly in the HMI, I then added two standard Windows labels to display the value of the tag in one label, with a timestamp below the value in another label.

When the app is running, it is perfect but when viewed on a browser (using SimpleWebServer) then all of the standard Windows labels disappear? Only the chart works, and since there are only the CLX comms component, a VBTimer and the SimpleWebServer on the form with the chart and 3 labels (the 3rd one shows if my comms are ok using try...catch) then I can't understand why the label components all become invisible but the chart works.

This is the same in IE11 and Chrome (up to date) on a Win 7 / 64 machine.

Any ideas? Thanks. (VS2019 and 3.99 AHMI)

EDIT: further info, the chart object seems to be hiding all of the other components even if they are set to be in front of it. I am going to investigate that - it works perfectly as an application but only the web view is like this. Even if I add AHMI visual components on top of the border area of the chart, they are fine in the running app but invisible on the web server view.
 

11
Open Discussion / Re: Label text is ugly at runtime
« on: April 21, 2021, 06:15:44 AM »
Hi, I can do. I am about to start a new project so will soon find out. I've written hundreds of desktop apps with VB before but have never seen this happen. Admittedly I'm new to VS and .NET apps but the main difference is Object based code rather than anything else.

This issue affects every display the software has been run on so far. I'm a controls engineer, tried it on a Dell laptop screen, large Samsung LED HD TV and a PC monitor, all fairly recent hardware (and different computers for each display). Same result on all. The label text looks perfect on the design screen, and this issue only affects the "label" designated controls. Items like the BevelButtonDisplay do not suffer any change when running.

12
Open Discussion / Re: Label text is ugly at runtime
« on: April 20, 2021, 08:17:07 AM »
Hi Archie, yep same problem. It looks fine on the form till run time then it looks like it breaks up into dots with coloured ones among white ones. Hard to explain but can try to add a picture if that's possible to upload. I do have a background image on the form and the label is set to black background with white text, but various combinations of fore and back colour have the same effect.

Studio 2019 and AHMI 3.99 - forgot to mention.

13
Open Discussion / Label text is ugly at runtime
« on: April 20, 2021, 04:48:43 AM »
Hi folks,

I have a basic label (windows forms control) with white text on a black background (though the backcolour isnt the issue) and it looks fine at design time but when the application runs, the text looks multicoloured and "bitty" as if you can see through the letters.

Any ideas? Looks rubbish on screen especially on a large display. Not sure if this VS issue or AHMI.

14
Open Discussion / Re: Checking the returned tag value against a preset
« on: April 16, 2021, 04:14:04 AM »
Thanks, I never knew about the autosize property, that threw me. Old VB6 just let you resize it from the start as default. Many thanks.

15
Open Discussion / Checking the returned tag value against a preset
« on: April 15, 2021, 07:50:48 AM »
Hi all - I'm using AHMI for a great dashboard reading our CLX PLC's along with other things, and hit a problem I can't seem to solve yet (experienced in VB6, new to .NET)

I pull a string tag into a BevelButtonDisplay to show a production run code, so when the machine is running the production ID is entered by them on the local HMI at the console, and appears in my AHMI dashboard as it should.

When the machine is not running, no code is entered so I want to change the text in the BBD to "PLANNED DOWNTIME" lets say, however I seem to have issues finding the right property to check if the PLC is returning a blank string tag. I have tried the TextChanged property of the BBD so that as it changes to blank, I try to check if the .text = "" and initially that is true when no string is displayed (the PLC returned an empty string from that tag) - so I set the .text value of the BBD to "PLANNED DOWNTIME" but it gets over-written a second later as the tag refreshes - this time the TextChanged property never fires again??

I need a straightforward way to detect the PLC tag returning a blank string and then substitute my string into the control. I tried the DataSubscriber control but double clicking it does not take me to its events.

I have AHMI V3.99 and VS 2019. The data I am reading from the PLC works flawlessly, just need a method or property that is only true when the returned tag data matches a value. Seems like it should be easy, maybe I'm not seeing the solution.


EDIT I had to reboot VS as it had stopped letting me double click into a controls' code - weird. Anyway, I am using a timer to check the .text values and that works, so of course the EthernetIPforCLX overwrites the .text with the blank tag value every 500ms, and the timer puts the string back, so I guess I will have to read the tag value into an intermediate variable, check if it's blank and then write the default string to the DBB control if it is, and the proper data if not. I think the timer will be best for that function. This is instead of using the direct tag link in the DBB properties.

I think I answered my own question........!

Is there a standard VB style label control in VS? I can only seem to find ones that can't be resized at design time...

Pages: [1]