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

Pages: [1]
1
Support Questions / How to handle disconnected PLC?
« on: June 28, 2017, 05:23:54 AM »
Hello
I'm doing a bit of a code that writes a string to PLC depending on the statuses read from the same PLC, Micrologix 1400.
I got the functionality that I wanted, but I have a problem, which occurs when AdvancedHMI looses connection to PLC, which I simulate by disconnecting the ethernet cable. The error message occurs, as seen in the attachment.

How can I handle this error, so that my application doesn't crash and resumes normal operation, after the PLC is reconnected?

2
Support Questions / Software update
« on: July 14, 2015, 02:54:14 AM »
Hello!
It has been a while since I had time and need to develop application in Advanced HMI and I was very pleased to see how much it was developed. Great job, I really like this software and I'm looking forward to using it.

Related to that, I made an application based on Advanced HMI version 3.50 over a year ago. It involved a great amount of programming (I must thank Archie again for his advice on multiple occasions) and now I must upgrade my application with new functionality. While at it, I would like to upgrade the Advanced HMI software itself, since there have been upgrade to data subscribers etc. My question is, what is the most painless way to upgrade from version 3.50 to current 3.98t? I noticed, the placement of the HMI system files in not the same in both versions, so I'm not sure how to interchange between them.

3
Open Discussion / General VB
« on: October 15, 2014, 08:03:06 AM »
I'm developing my applications based on AdvancedHMI, which includes a great amount of coding. Since my first touch with Visual Basic was trough AdvancedHMI, I'm still battling difficulties of writing a good code in this language. So, I would like to open this topic, which could cover some more general issues, when upgrading your own AdvancedHMI code.

As I stated in my other posts, my application logs data to excel file on a time basis. On one of my forms I have a chart, where this data should be plotted. Data is plotted by pressing a button, next to the chart. Code for the Plot button, where I read data from excel file and fill the chart series, is:

Code: [Select]
    Private Sub plot_Click(sender As Object, e As EventArgs) Handles iscrtaj.Click
            For i As Integer = 900 To 910
            Chart1.Series("Nivo VS").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("C" + CStr(i)).Value / 100)
            Chart1.Series("Nivo CS").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("D" + CStr(i)).Value / 100)
            Chart1.Series("Tlak CS").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("E" + CStr(i)).Value)
            Chart1.Series("Protok CS").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("F" + CStr(i)).Value)
            Chart1.Series("Struja CS").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("G" + CStr(i)).Value)
            Chart1.Series("Želj. protok").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("H" + CStr(i)).Value)
            Chart1.Series("Snaga UV").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("I" + CStr(i)).Value)
            Chart1.Series("N. uklj. T1").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("J" + CStr(i)).Value / 100)
            Chart1.Series("N. isklj. T1").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("K" + CStr(i)).Value / 100)
            Chart1.Series("N. uklj. T2").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("L" + CStr(i)).Value / 100)
            Chart1.Series("N. isklj. T2").Points.AddXY(excel.Range("B" + CStr(i)).Value, excel.Range("M" + CStr(i)).Value / 100)
        Next
    End Sub

B column contains data and time, other columns are data. Counter "i" is now set to fixed values, later I plan to implement to plot data according to date picker.

My problem is, plotting this way is SLOW (can't stress this hard enough). When pressing the button, plotting is performed with a speed of 1 - 2 data point per second. I log data every minute, and should be able to chart data for several days, which comes to >10000 data points per series and I have 11 series in chart. What can I do to speed up the plotting?

4
Support Questions / Processing signal and data in Advanced HMI
« on: November 18, 2013, 04:39:52 AM »
Hello.

Is it possible to process signals and data inside HMI?

E.g., if I have several binary signals from PLC, lets call them S1, S2 and S3 (bits or inputs of PLC), can I use BasicIndicator to turn red for a specific combination of symbols?
So, if (S1=1 or S2=1 or S3=0) Basic Indicator should be red (e.g. General Error).

Also, if I have several integer values, is it possible to make calculations inside HMI?

I'm sorry if this is a elementary question or if it was discussed already, I didn't find answers. I was trying to make myself clear, hope I'm not to vague.

Pages: [1]