Hey,
This is my first time using AHMI. So far I enjoy it and once I get better at .NET ill be bale to use it a lot more.
So the project i am working on right now I need to display three different colored circles. ( Think traffic lights )
The circle that comes up is depending on logic in the PLC. The results end up in a BOOL. ( RED, AMBER, GREEN)
I have created three Data Subscribers (DS) and called them, RED, AMBER, GREEN. I have told each one that tag that it has to look at.
This is the code that each DS runs.
Dim redCircle As Pen
Dim redCircleFill As Brush
redCircle = New Pen(Drawing.Color.Red, 5)
redCircleFill = New SolidBrush(Color.Red)
Dim myGraphics As Graphics = Me.CreateGraphics
myGraphics.DrawEllipse(redCircle, 840, 175, 195, 195)
myGraphics.FillEllipse(redCircleFill, 840, 175, 195, 195)
The problem is that, I will tell Green to come on and it does, then Amber and it does, I try red and it will Just not show up. It'll stay as the last colour. Then I go back to green and it will change as expected. Red will never work.
Any Ideas on what I have done incorrectly?
Have checked the tag names and everything like that.