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.


Topics - sunny

Pages: [1]
1
Support Questions / Change stacklight
« on: April 14, 2017, 02:34:47 PM »
Hello all,

I am trying to change the stacklightcontrol in this post:

http://advancedhmi.com/forum/index.php?topic=1676.0

I have now 5 positions and one position I can change the color.
The thing is now that if I sellect the control from the toolbox you can see all 5 postions (so far so good) If I change the fifth position to either "none" of an other color the fift position goes away (stil good).
But if al resellect it it should be enabled again and that is not going oke. I have noticed that it looks like it is enabling but the whole stacklight is drawn wrong the lowest position is now over the base.
I have looked in the code but I can't find anything. I am a complete beginner with VB so it is not so easy for me. I hope that someone can have a look at it.

I have attached the control that i am working on.

Thanks in advance

2
Open Discussion / making a stacklight
« on: March 11, 2017, 03:13:20 PM »
Hi everyone

I have no experiance with VB, but I have a question. Is it doable to expand the stacklight to 5 lights (because that is how you can buy them with 5 positions) and use a list box so you can choose the color that you want (I think you can buy them in Blue, Red, Green, Amber and White).

Thanks for any answers

3
Support Questions / How to use modbus tcp
« on: June 02, 2015, 04:36:34 PM »
Hi All

I like to learn about communication with modbus tcp. I have zero experiance with that. I have a Siemens S7-1200 plc ad home. I have red here on te forum that some of you did some work with modbus tcp and a S7-1200. My question is does someone has an example program or somthint to get me going. Because I don't have a clou where to start.
thanks in advance

4
Hi,

I am working on a project with a omron PLC. It is a CPM1 and I am using the OmronSerialHostLinkCom1 driver.
I use 2 DM words for the inputs. If I use 2 Annunciators to view for exaple D0.00 and D0.01 and turn only D0.00 true, than both of them light up. But on the label I put in to read the whole D0 word I see the correct value. And I can only read one word. If I put another annunciator on the mainform that reads D1.00 it wil do nothing. Unless I delete the first two annunciators.
When I want to wright it is pretty much the same thing. If I put two BasicButtons on the mainform and try to wright to D2.00 and D2.01. I can only see that D2.00 is doing something.

With regards Marcel

5
Support Questions / Trackbar
« on: March 31, 2015, 03:31:27 PM »
Hi all

I have found the source code for a trackbar (slider) but I have no idea how to intergrate it in AdvancedHMI. Is there some one how can help me with that.
Thanks in advance.
Marcel

The source code can be found here.
http://www.codeproject.com/Articles/35104/gTrackBar-A-Custom-TrackBar-UserControl-VB-NET

6
Tips & Tricks / Another button
« on: March 31, 2015, 03:10:36 PM »
Hi all

I found a button where you have a lot of properties. You can change color, shape, gradient, etc.
This is the URL where you can find the source code of the CButton.

http://www.codeproject.com/Articles/26622/Custom-Button-Control-with-Gradient-Colors-and-Ext

I have added the dll in the same way as being described in this topic.

http://advancedhmi.com/forum/index.php?topic=185.0

From the errors that I found I commented out all code

It seems that the CButton works.


7
Support Questions / omron with hostlink driver
« on: February 11, 2015, 03:34:34 PM »
Hi All

I am working on a project with a omron PLC. It is a CPM1 and I am using the OmronSerialHostLinkCom1 driver.
I use 2 DM words for the inputs. If I use 2 Annunciators to view for exaple D0.00 and D0.01 and turn only D0.00 true, than both of them light up. But on the label I put in to read the whole D0 word I see the correct value. And I can only read one word. If I put another annunciator on the mainform that reads D1.00 it wil do nothing. Unless I delete the first two annunciators.
When I want to wright it is pretty much the same thing. If I put two BasicButtons on the mainform and try to wright to D2.00 and D2.01. I can only see that D2.00 is doing something.

Something else the SelectorSwitch don't turn when I push it. But it sents the value to the PLC.

I hope someone can help me

Greetings Marcel

Pages: [1]