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

3
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?

4
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.

5
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.

6
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.

Pages: [1]