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

Pages: [1]
1
Open Discussion / Re: Alternative way to view AHMI
« on: December 03, 2018, 07:21:53 PM »
Thanks, I managed to get SimpleWebServer working. However, I Think the option of putting the .exe in a shared folder is the best option.

2
Open Discussion / Re: Alternative way to view AHMI
« on: November 29, 2018, 11:53:24 PM »
Thank guys.

How do I use the SimpleWebServer? Is there a guide on it. Did a google and didn't find anything.

Option 3 might be the best bet I think. However, I do like the idea of the Web server.

True about the VNC. I could also look into that.

On another note. When I build the app. On some PCs, it seems fine ( like the one I build it on) then when putting it onto another PC ( Not all the time ) it appears squashed - Is it something to do with the resolution?



3
Open Discussion / Alternative way to view AHMI
« on: November 25, 2018, 01:41:11 AM »
Hi,
I have used AHMI to make some pretty simple screen to show some plant metrics.

As a shoot off from that, I made some screen that runs on my desktop - Like a mini version of the 43" screens.

I got caught by production and they all wanted a copy.

So my question is - Is there a way other than installing the application on every manager's laptop. Get frustrating when you make a change and all 7-10 people want the updated version. Can I host it somewhere on site and they access it from a browser maybe?

Worth noting that its purely "view only" The screen I made only displays values. No control from them.

Thanks

4
Open Discussion / Re: Changing colour of 7 segment displays
« on: October 25, 2018, 06:48:17 PM »
Great, This works exactly how I needed it to. Thank you.

For future reference, If I was to go the Data subscriber way. Where would I put the code for something like this?

Is there any documentation I can read?
Thanks

5
Open Discussion / Re: Changing colour of 7 segment displays
« on: October 25, 2018, 05:28:53 PM »
Yes, I understand that, But What I'm trying to do is have it change to red or green based on the plant being under or over the production goal for tthe current point in time.

Eg -  Goal is 10 widgets over a 12-hour shift. If at the 6-hour mark they have completed 4 widgets the seven segment display would be red. However the next day at the 6-hour mark they have made 5 it would be green.

Is that clear?

I was wondering if its possible to use a Data subscriber & an IF Else statement to change the seven segment display properties so I can manipulate the ForeColorHigh from red to green as I need. I could keep the ForeColorHighLimitValue as 1 and just change the properties.

Thanks!

6
Open Discussion / Re: Changing colour of 7 segment displays
« on: October 25, 2018, 01:36:45 AM »
I assume I need to place some code in here. I have no idea what to do though. Have tried google and the forum but this hasn't come up before.


Code: [Select]
    Private Sub SevenSegment21_ForeColorChanged(sender As Object, e As EventArgs) Handles SevenSegment21.ForeColorChanged




    End Sub

7
Open Discussion / Changing colour of 7 segment displays
« on: October 24, 2018, 10:50:45 PM »
Hi,

I have a seven segment display that I want to change to be either red or green.

The red/green is determined by where the factory is in regard to the goal.

In the properties, I can only see the option to change colour depending on the value the seven segments is displaying. ( foreColourOverHighLimit etc.)

Is there any way I can change the colour another way. Like from a BOOL in the PLC. I can do the maths and determine if they are ahead or behind target.

Thanks!

8
Open Discussion / Re: Seven Segment display properties
« on: August 09, 2018, 08:49:57 PM »
"Show off segments"

Found that and I'm on the way.

9
Open Discussion / Seven Segment display properties
« on: August 09, 2018, 08:43:57 PM »
Hey,

I am using the seven segment display on a project.

I was wondering is it possible to change the color of the segments that are off.

Currently they are a dark grey and in the properties it seems like I cant change it. Ideally I'd like to make it the same color as the  Main form so the off segments are invisible.

Thanks

10
Open Discussion / Re: Help a rookie - Displaying Circles
« on: August 06, 2018, 09:51:02 PM »
Ah, No idea how I missed Basic indicator, Well I learnt a bit on that adventure.

Not sure about the DS and why they were doing that.

11
Open Discussion / Help a rookie - Displaying Circles
« on: August 06, 2018, 08:57:55 PM »
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.

Code: [Select]
     
  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.

Pages: [1]