AdvancedHMI Software
General Category => Support Questions => Topic started by: Aviraj on November 10, 2015, 12:36:33 PM
-
Hi
I am extremely new to Advanced HMI and was building up an application. I was looking to tie a few Pilot Lights to the PLC inputs to see if a particular input was turned on or not. I am seeing that the Pilot Light tool properties do not have the "PLC Properties" in them. Is there a way that I can still tie the Pilot Lights to the actual PLC Inputs ? If not is there any work around to it ?
Thanks a lot in advance
Aviraj
-
Look for the Property PLCAddressValue. It may not be in a certain group, so if you sort the properties alphabetically , it is easier to find.
-
Hello Archie
The property PLCAddressValue is not listed anywhere in the toolbox ! I see that property in the vb code for the PilotLight tool, but it does not show up in the Properties list. Also if a actually try using the PLCAddressValue property in the code, it give me an error.
-
I added a PilotLight from the ToolBox to the MainForm, then the picture is what I see in the Properties Window. There is no need to do anything in code.
-
Hi Archie
That is really strange. I do not see those properties when I open the properties for the PilotLight. I've attached all the properties that I see.
One difference that I see is that in my Properties Windows, it says MfgControl.AdvancedHMI.Controls.PilotLight , which is different from what I see in the picture you attached.
Also, when I first opened up the AdvancedHMI solution after installation, all the AHMI controls were not being shown the in Toolbox. I had to manually add them by browsing from the specified file (Attached screenshot show where I added them from). Could this have something to do with the problem I am experiencing ?
-
Also, when I first opened up the AdvancedHMI solution after installation, all the AHMI controls were not being shown the in Toolbox. I had to manually add them by browsing from the specified file (Attached screenshot show where I added them from). Could this have something to do with the problem I am experiencing ?
That's where the problem is coming from. You have a base class in your ToolBox, not the AdvancedHMI controls.
Go to Tools->Options from the menus. Then select Windows Form Designer group. Look for Automatically Populate Toolbox and make sure that is True.
You may also have to Right Click your Toolbox and select Reset Toolbox
-
Hi Archie
So I changed that option, reset the Toolbox and rebuilt the MainForm. It automatically populated all the controls and under the correct subgroups. However, now when I try inserting a PilotLight, it gives me an error about failing to create the component. I am attaching a screenshot here.
Thanks a lot
-
Try exiting Visual Studio, then re-open the project and immediately Rebuild All
-
Thanks a ton Archie. It works now :)
Avi