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

Pages: [1]
1
Support Questions / Comms Loss/Lockup
« on: December 22, 2022, 10:41:23 AM »
Having an intermittent issue with 2 seperate AdvancedHMI applications that are running similar machines, and I was wondering if you guys could give me some ideas of where to start.

They are both Lenovo AllinOne touchscreens running windows 11.  As far as I can tell, I have all updating turned off and neither are connected to the internet.  Just a LAN with their respective PLC Processor networks.  These computers are dedicated and are not used for anything but this application.
Comms are ModbusTCP.

I need to point out that these PC's are not on the same network.  They are each talking with different PLC's.  But I'm having the same problems.  The PLC's are Automation Direct DoMores.
I'm running AdvancedHMI v35v399xR1.

Approximately every 3 weeks or so, the comms will lock up.  It will not communicate with any plc on the network.  However, AdvancedHMI doesn't show a comm loss.  I have a heartbeat with each PLC that increments and it is stopped.  I have multiple buttons and analog displays, and they are all static and will not communicate with the plc.
The application itself is not locked up and I can switch screens, the clock is correct, etc.

I hate to say it but I'm lost on what to even look for.  Simply closing the application and opening it again is all it takes to fix the problem.  And since the problem only happens every couple weeks, it's hard to track down.

I'm mad at myself that I didn't try pinging the PLCs the last time it happened.  I will definitely do that next time.
Any other ideas?  Anybody have something similar? 

2
Support Questions / Re: Koyo directlogic 05 addressing
« on: September 20, 2022, 08:42:05 AM »
I've only communicated with DoMore plc's from Aut. Dir.
Their DL05 manual leaves a lot to be desired from a quick glance.
I'm surprised you can map directly to an output.  I would have expected an internal register only.

Anyways, I'm no help but I'd post this on Automation Direct's forum.  Or you can call their tech support.  Their support is very good and unlike AB, it's free. 

3
I went ahead and uploaded another copy of the same exact AdvancedHMI program I had before.
Upgraded the framework.
Cleaned and Rebuilt each file.

Works great.

I have no idea, but something wasn't right with the first program I copied over.
Thanks for the help Archie.

By the way, this is my second use for AdvancedHMI.  Although I'm a hack in VB.net and am stumbling as I go, it works great.  Thank you. 
My third application is going to be for a homemade sawmill that I built.

I'm sure I'll be back in touch with more problems... ;D

4
Thanks Archie for all the help.

This morning I delete all of the \obj and \bin files.

Right clicked AdvancedHMI in the solution explorer.
selected clean
3 succeeded, 0 failed, 0 skipped
selected rebuild
3 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIControls.
2 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIcs
3 succeeded, 0 failed, 0 skipped

Did the same to AdvancedHMIDrivers
1 succeeded, 0 failed, 0 skipped

Opened the main form.
All controls are there and looks good.

Hit start
The main form loads with only the AdvancedHMI logo in the upper right corner.


5
Followed the advice on this post.
https://www.advancedhmi.com/forum/index.php?topic=1062.msg5555#msg5555

"- Open your AdvancedHMI project in Visual Studio
- Window->Close All Documents
- File->Save All
- Exit Visual Studio
- Using Windows Explorer, go to the folder with your AdvancedHMI project
- Delete the 6 following folders:
   \AdvancedHMI\bin
   \AdvancedHMI\obj
   \AdvancedHMIControls\bin
   \AdvancedHMIControls\obj
   \AdvancedHMIDrivers\bin
   \AdvancedHMIDrivers\obj

- If your PC is setup to show hidden files, also delete AdvancedHMI.sou
- Re-Open your project in Visual Studio
- Build->Clean Solution
- Build->Rebuild Solution
- Open MainForm from Solution Explorer"

Had an issue with a gtrackbar on the rebuild.  Just deleted all references to it. 
Everything built fine.
The main form looks perfect in designer, but when I press start and launch it.  The form loads missing all controls.  The only thing that makes it is the AdvancedHMI bitmap.

Any other ideas?
I'm going to keep googling.

6
Picked up a new computer.  Had one go down from heat exhaustion.

Anyhow, loaded VS 2022 and some other needed software.  Loaded a current AdvancedHMI solution I deployed elsewhere in a similar machine.  Had to update the framework to 4.8.

Everything loaded.  Built the solution.
The main form had all the proper controls in designer.  Everything looked good.  Hit start.

The Main form launches and has the AdvancedHMI bitmap logo in the corner but all the controls are missing.

Did get an message in the debug window that stated: Skipped loading symbols.  Module is optimized and debugger option 'Just my Code' is enabled.

Searched online and recommendations seemed to focus on going to tools, options, debugging, general, uncheck enable just my code.

That doesn't help.  However, I do not get the Skipped loading symbols message in debugging.  In fact, the degging window states the symbols loaded.

I've been googling and searching the forum. Just not having any luck.

Anyone have any ideas?

I also added new controls to the form.  Both AdvancedHMI controls and VS common controls.  Neither displayed. 

7
Support Questions / chartbysampling exception thrown
« on: April 22, 2022, 03:29:27 PM »
I keep getting this exception thrown in my chartbysampling.  I've been scouring the net trying to understand why with no luck.  It doesn't affect my program.  But, everytime I shutdown the runtime and go back to designer, I'm greeted with it.

Anyone help me understand the exception?

8
Support Questions / Can you write to modbus words at the bit level?
« on: March 18, 2022, 12:59:46 PM »
Archie,

Wondering if you can write to Modbus words at the bit level?  I know you can read them.

9
Did you use Mysql?

If so something like this would work:

 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        MysqlConn = New MySqlConnection
        MysqlConn.ConnectionString = "server=localhost;userid=root;password=password;database=databasename"
        Dim Reader As MySqlDataReader

        Try
            MysqlConn.Open()
            Dim Query As String
            Dim regDate As DateTime = DateTime.Now
            Dim strDate As String = regDate.ToString("yyyy-MM-dd HH:mm:ss")

            Query = "insert into databasename.tablename (tag1columnname, tag2columnname, tag3columnname) values ('" & "tag1" & "','" & tag2 & "','" & tag3 &"')"
            Command = New MySqlCommand(Query, MysqlConn)
            Reader = Command.ExecuteReader

            MysqlConn.Close()


        Catch ex As Exception
            MessageBox.Show(ex.Message)

        Finally
            MysqlConn.Dispose()

        End Try
    End Sub

11
Hey guys.  I've been stumbling through trying to get AdvancedHMI to connect with a MySQL database. 
My first problem was I couldn't add reference mysql.data.  It wasn't there.  However, if I opened a windows form app in Visual Studio 2019, it was available.  I tried to manually add the reference by browsing to it's location. 
C:ProgramFiles(x86)\mysql\mysqlconnectornet 8.0.27\assemblies\v4.5.2\mysql.data.dll

That seemed to work.

However, when I would build my solution I received the error that mysqlconnection is not defined.  After some googling, I found that the connector needs to be at the same level or lower than .net.
My project was originally created in the target .net framework 4.  I changed it to .net framework 4.5.2.

After building the project, I was met with a multitude of errors. 
windows form timer is not defined bc30002

Pretty much every component with windows.forms.timer was an error.
Google said it should be System.windows.forms.timer

I changed all of them and don't seem to have any errors now.
Plus, my database is connecting successfully.

Are there any downsides to what I have done?
Everything seems to be working.  I'll admit that I was very hesitant to make so many changes when I barely have a clue what I'm doing. :o

Obviously, I'm new at this.  I've been self teaching vb.net and mysql.  I'm sure I will have a thousand more questions before this is over.

My goal is to build a HMI connected to a DoMore PLC that controls a dry kiln.  I typically use a CMore as the interface, but with it's crappy datalogging I've decided to do it in AdvancedHMI.  I want to log to a mysql database and be able to print historical line graphs when necessary.  The HMI part has went well, but now I'm to datalogging.  I've been trying to learn through youtube.  I'll take any advice you're willing to give.

12
Open Discussion / Some questions about historical capabilities.
« on: December 18, 2018, 04:51:42 PM »
I have an application coming up that will need to write to a sql database.  After a batch of product has ran for a predetermined amount, I need to print a historical line chart.  The process typically takes 2-3 weeks.  The line chart would be temperatures and setpoints.  I've quickly glanced and I'm not sure it's possible with Advanced HMI.  Was wondering if any of you guys do something like this?

I've done this project in the past with Indusoft but have always wanted to give AdvancedHMI a try and this would be a good reason.  I've also never setup a sql database but like above, thought this would be a good reason. 

Just for info, the controller will be an Automation Direct Domore, communication with the pc  via Modbus.

13
Open Discussion / Re: Interest in Free Hand-On Training
« on: November 20, 2018, 09:30:31 AM »
I would be/am interested but it may be hard to mesh with my schedule.  Definitely a no the rest of this year. 

Is there any way to video it?  Throw it up on youtube? 

Pages: [1]