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

Pages: [1] 2 3 ... 8
1
Open Discussion / Coming Soon.....
« on: November 18, 2023, 09:59:46 PM »
After a very long wait for Microsoft to work all the bugs out of the latest WinForms for .NET, it seems to finally be here. For AdvancedHMI, this means a major update to the .NET 8.0 framework.

The update has been about 80% done and tested with decent results. So far the chart controls were the greatest challenge because the chart component that used to be part of the .NET framework has been removed. Thankfully it was all open sourced and the community has updated it.

The next big challenge are the COM components which consists of OPC-DA and one of the TwinCAT drivers.

A beta version may be available as soon as by the end of the month. It will be posted in the members only section. It will requite the latest update of Visual Studio 2022.

2
Open Discussion / Driver for 3D Printers (Klipper)
« on: January 18, 2023, 09:12:04 AM »
How many people are 3D printer enthusiasts that likes to tinker with the firmware? I am investigating the possibility of an AdvancedHMI driver for the Klipper firmware that would allow you to create HMI's for a 3D printer. I am wondering if there would be enough demand to justify the investment of time.

3
Open Discussion / Posting Guidelines to Getting Faster Responses
« on: February 21, 2021, 08:05:56 AM »
When posting a support question, it is important to include key information in order for others to provide useful support. The following is a list of information that will be extremely helpful:

- Version of AdvancedHMI (typically 3.99x or 3.99y Beta xx)
- Version of Visual Studio (e.g. 2017 , 2019)
- Operating System (Windows, MAC, Linux)
- Hardware (Windows PC, Raspberry Pi, etc.)
- PLC make and model (AB, Omron, Beckhoff, etc)
- Communication Driver (EthernetIPforCLXCom, etc)
- Any additional code you may have added
- Maybe post your complete solution to something like Google Drive or Dopbox
- Screen shots may be just as helpful if you feel the full solution is not necessary

4
Open Discussion / .NET 5
« on: November 12, 2020, 07:03:01 AM »
If you keep your Visual Studio up to date as soon as updates are released, you should now have version 16.8.0
This version now supports the fully released version of .NET 5. The long standing plan has been to convert AdvancedHMI to the latest version when .NET Core and .NET Framework have merged. With .NET 5 this is now the case.

So far I have only spent a few minutes testing out a .NET 5 application on the latest Visual Studio. There seems to be some quirkiness in the WinForm designer, but I suspect it may be because I have some high DPI overrides set on my laptop.

Has anyone else been following the evolution of .NET Core? What are your feelings on AdvancedHMI being ported to it? Since Microsoft has frozen the further development of Visual Basic in favor of C#, there is a possibility of making AdvancedHMI primarily based on C#. Any thought on that?

If you are interested in trying out .NET 5, you first must make sure you have VS version 16.8. When you create a new application, you will see there are now 3 options (.NET Framework, .NET Core, and .NET) It is the .NET that you want to use for the latest. After creating the new application, right click your project in Solution Explorer and select Properties, then check the Framework version to make sure it is on .NET 5

5
Tips & Tricks / Adding ScaleOffset to Keypad
« on: July 13, 2020, 10:51:34 AM »
On some controls the display can use an Offset as well as a ScaleFactor. But the Keypad does not give this same functionality. This can be fairly easily added with the following steps. The edited file is attached that you can download and replace the original in your solution (see below how to use the attached file).

1) In Solution Explorer expand down the AdvancedHMIControls project
2) Expand down the \ControlsFolder
3) Right Click AnalogValueDisplay and select View Code
4) Scroll down to about line 566 until you find:
    Public Property KeypadScaleFactor() As Double
5) Scroll down past the next End Property
6) Insert this code:
Code: [Select]
    Private m_KeypadScaleOffset As Double = 0
    Public Property KeypadScaleOffset() As Double
        Get
            Return m_KeypadScaleOffset
        End Get
        Set(ByVal value As Double)
            m_KeypadScaleOffset = value
        End Set
    End Property

7) Scroll down to about line 639 and look for:
        If m_KeypadScaleFactor = 1 Or m_KeypadScaleFactor = 0 Then

8- Modify the If-Then block of code to this
Code: [Select]
                            If (m_KeypadScaleFactor = 1 Or m_KeypadScaleFactor = 0) And m_KeypadScaleOffset <> 0 Then
                                m_ComComponent.Write(m_PLCAddressKeypad, KeypadPopUp.Value)
                            Else
                                If m_KeypadScaleFactor = 0 Then
                                    m_KeypadScaleFactor = 1
                                End If
                                m_ComComponent.Write(m_PLCAddressKeypad, Convert.ToString(CDbl(KeypadPopUp.Value - m_KeypadScaleOffset) / m_KeypadScaleFactor) + m_KeypadScaleOffset)
                            End If




To insert the attached file into your solution:

1) Windows->Close All Documents
2) In Solution Explorer expand down the AdvancedHMIControls project
3) Right click the \Controls folder and select Add Existing
4) Browse to and select the attached file that was downloaded
5) Select replace
6) Rebuild Solution

6
Open Discussion / MOVED: Version 399y Beta ready for public testing
« on: June 26, 2019, 12:29:49 AM »
This topic has been moved to an area only accessible to logged in members:
 New Versions.

https://www.advancedhmi.com/forum/index.php?topic=2058.0

7
Support Questions / Visual Studio 2019 Form Design View Errors
« on: June 18, 2019, 08:33:40 PM »
Visual Studio 2019 has a bug that will nearly every time show an error if opening a project that had a form in Design View open from the last session. My recommendation to prevent seeing this error and having to take action to fix it is to do this:

Tools->Options->Projects and Solutions->General
Remove the check for Reopen Documents on Solution Load

8
Open Discussion / PLC Scan Time Benchmark
« on: June 08, 2019, 12:09:10 AM »
I posted this on another forum and found the results interesting so I thought I'd share them here. I ran a couple intensive tests on various PLCs to see how fast they could scan a program. The tests consist of a math and conversion, index text, bitwise test, and bubble sort. While running the code I checked the scan time to see how long it took the PLC to process it. Here are my results so far. Times are in milliseconds:


MathTest  IndexTest  BitwiseTest      BubbleSort
Omron CP1H
2030.0
2350
Schneider M340
849.0
411
32
---
2080-LC20-20QBB (Micro820)
499.0
744
---
---
Siemens S7 151-8 CPU
430.0
609
307
---
CompactLogix L16ER v24   
348.0
131
148
1398
CompactLogix L24ER     
293.0
ControlLogix L71 v31     
313.0
147
167
1570
AD Productivity P1-540
271.0
---
AD Productivity P2-550
264.2
---
Beckhoff CX8090
255.0
631
Click C0-11DRE-D
202.0
---
Omron NJ101-9000
84.0
11
82
ControlLogix L85E v32
9.5
3.5
2.4
77
Omron NX1P2-9024DT1
8.1
3.0
5.0
ControlLogix L85E v28
7.5
3.7
2.6
83
CompactLogix L306ER v32
7.3
3.4
2.4
78
Beckhoff CX9020 TC3
6.5
3.8
2.3
71
BrainBoxes BB-400/CodeSys 3.5.15
5.1
6.3
3.6
38
Beckhoff CX5140 TC3
4.2
11
Kunbus RevPi Connect+/CodeSys 3.5.14
2.5
3.1
1.8
33



Test Code in RSLogix Format
MathTest
Code: [Select]
Real1:=123;
Real2:=456;
FOR i:=0 TO 99999 DO
DINTResult:=(Real1*Real2);
END_FOR;

IndexTest
Code: [Select]
FOR j:=0 TO 9999 DO
  FOR i:=0 TO 9 DO
DINT1[i]:=DINT2[i];  (*'Arrays of 10 elements *)
  END_FOR;
END_FOR;

BitwiseTest
Code: [Select]
FOR i:=0 TO 99999 DO
DINTResult:=i AND 2730; (* '* Every other bit for 12 bits *)
END_FOR;

BubbleSort
Code: [Select]
Result[0]:=2;
Result[999]:=-1;

REPEAT
swapped:=0;
FOR i:=1 TO 999 DO
IF (Result[i-1]>Result[i]) THEN
Temp:=Result[i];
Result[i]:=Result[i-1];
Result[i-1]:=Temp;
swapped:=1;
END_IF;
END_FOR;
UNTIL (NOT swapped)
END_REPEAT;


9
Tips & Tricks / High DPI Monitor Issue
« on: April 18, 2019, 09:16:07 AM »
If developing on a PC with a High DPI monitor (>1920) then you will get graphics changing sizes between design time and run time.

This is fixed by adding a key into the Windows registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\devenv.exe]
"dpiAwareness"=dword:00000000

You can read more about this here:

https://code4ward.net/2016/11/29/visual-studio-winforms-designer-on-highdpi/

10
Open Discussion / OT : ModRSsim2 Easter Egg
« on: February 26, 2019, 06:26:45 PM »
Click the About button to open the dialog
Hold Down shift key and click the OK Button

11
Open Discussion / Trending Chart
« on: February 21, 2019, 10:49:56 AM »
For those not following the latest 3.99y beta updates. I wanted to point out that beta 21 now includes a ChartWithLogging control. This is the combination of a BasicDataLogger, ChartBySampling, and a historical data viewer.

You simply add it to the form, add some PCLAddressValueItems, then run the application.

This was one of the top requested controls that has been missing from AdvancedHMI. It will close some of the gap between AdvancedHMI and other HMI packages.

12
Tips & Tricks / Customizable Digital Panel Meter
« on: February 01, 2019, 05:54:57 PM »
Version 3.99y Beta 16 has a modified SevenSegment2 that allows you to add a frame and text. This allows you to make a custom digital panel meter.

- Save the attached file DigitalPanelMeterR1.png
- Using 3.99y Beta 16 or higher, open the MainForm
- Add a SevenSegment2 to the form
- Set Size to 400,178
- Set TextCenterLocation to 200, 30
- Set InsetPercent to 25
- Set BackgroundImageLayout to Stretch
- Add a BackgroundImage and browse to the downloaded file

You should end up with something as shown in the attached picture of SevenSegment2wFrame

13
Open Discussion / Testing a New Theme
« on: January 28, 2019, 12:22:58 PM »
I'm going to change the default theme again to something that is hopefully more phone friendly, but not more difficult to read. If you changed your theme to something other than default, you can try the new theme by switching to UX.

I'd like to hear some feedback on anything from colors to how well it works on phones.

15
Open Discussion / Interest in Free Hand-On Training
« on: October 27, 2018, 05:23:56 PM »
I've discussed with several local users and customers about coming to our facility for a half day hands-on session working with AdvancedHMI. I am looking to introduce new users, show new/unknown features to long time users, and have discussions on the future direction to take AdvancedHMI. There is a lot of interest from people that are reasonably close by. So my question to everyone is.... Would this be interesting to you and how far would you be willing to travel to attend? For those not familiar, our facility is located in central SC.

Pages: [1] 2 3 ... 8