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

Pages: [1] 2
1
Support Questions / Re: Where did the cool popup keypad go?
« on: March 22, 2023, 01:21:59 PM »
That worked, thank you!

Shane

2
Support Questions / Where did the cool popup keypad go?
« on: March 21, 2023, 03:09:46 AM »
I migrated from 399x to 399y and the cool color keypad no longer pops up for changing numeric values. Now it is a plain black and white keypad. Only thing I can seem to edit on the new one is the font color.  How do I get the old one back?

3
Support Questions / Re: Program locks up if connection is interrupted
« on: March 16, 2023, 02:22:33 AM »
I have a couple "MessageByDisplayValue" functions that broke after that.  When I try to open the "Collection" to repair the messages Visual Studio shuts off and restarts.

Update:
I just copied the old ones from 399x and pasted them to 399y and it seems to have worked.

4
Support Questions / Re: Program locks up if connection is interrupted
« on: March 16, 2023, 02:16:18 AM »
Unfortunately it still locks up if the Modbus TCP comm fails.

5
Support Questions / Re: Program locks up if connection is interrupted
« on: March 16, 2023, 02:14:15 AM »
Thank you very much, would have never figured that out on my own.  Some things are broken now as I was using those obsolete things but I think I can work with this.

Really appreciate it.

Shane

6
Support Questions / Re: Program locks up if connection is interrupted
« on: March 16, 2023, 01:13:35 AM »
That seems to have cleared up quite a few.  Here's what is left.

Thanks for the assistance!

7
Support Questions / Re: Program locks up if connection is interrupted
« on: March 16, 2023, 12:55:29 AM »
A screenshot seemed the easiest way to share what I'm seeing.

8
Support Questions / Re: Program locks up if connection is interrupted
« on: March 15, 2023, 12:20:06 AM »
Anyone?  I'm sure I am missing some minor detail or I've over simplified adding just the MainForm.vb file.  It can't be that difficult to move my project from 'x' to 'y'.

One error I did notice was for an image file I had on my MainForm so that was easy to import manually. Since it didn't migrate the graphic over, there must be more to do to bring the project over than import the one .vb file?

9
Support Questions / Re: Program locks up if connection is interrupted
« on: March 13, 2023, 07:28:29 PM »
Try it on V3.99y Beta that you can download from this forum.

How do I migrate my project to 3.99y or does running the "AdvancedHMIv35.sln" file from 3.99y update my PC so when opening the project from the old folder opens with "y"?

I did try this from another thread and I get a bunch of "...not a member of..." errors

"As long as you don't cross over the 3.5 version update:

1) Open the newest version in Visual Studio
2) Right Click AdvancedHMI in Solution Explorer
3) Select Add->Existing Item
4) Browse to and select your .vb files (forms) from your previous project"

I added my MainForm.vb which is my only page. Is there something else I need to import using the Add function?

Thanks.

10
Support Questions / Re: Program locks up if connection is interrupted
« on: March 03, 2023, 04:34:31 PM »
Thanks, I'll give that a try!

I did build a work around but would like it not to freeze up if it looses comms.

11
Support Questions / Re: Program locks up if connection is interrupted
« on: March 03, 2023, 01:34:45 PM »
I'm on 3.99x and if the IP isn't correct when you start the HMI it locks up before I have a chance to update the IP from my on screen textbox.  Trying to figure out how to prevent this.  Any help would be appreciated.

12
Support Questions / Re: Variable for PLC IPAddress
« on: March 03, 2023, 12:04:59 PM »
My TextBox IP edit method works but I've ran into an anomaly. On some PCs if the IP isn't pointing to the Modbus device upon startup the display locks up and it won't let me edit the textbox to change it.  I can't click on anything and have to force close it.  On another laptop, it doesn't lock up when I start it with the wrong IP and it lets me edit it and recover the Modbus connection.

Any ideas why it would do this only on some PC's and how I can "Keep it alive" in the event of an incorrect IP?  Perhaps create an object on the display that points to the local machine so it will always be able to see it?  If this sounds logical, how would I do that?

Thanks for any assistance.  Had my eye on AdvancedHMI for a few years, just now finally dove in and started experimenting and so far it is pretty awesome!

Thanks,
Shane

13
Support Questions / Re: Heartbeat Signal
« on: March 01, 2023, 07:47:56 PM »
I'm sure there are other/better ways but I ended up using two timers with offset times. One turns the bit on, the other turns it off. They aren't exactly xx seconds on and xx seconds off but for my application I just need the bit to turn on/off at least once per 60 seconds to ensure the Modbus is talking.  Timer1 is set for 1000ms and timer2 is 2250ms and that give me a good random pulse.

------------------------------------------------
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        ModbusTCPCom1.Write("000030", 1)
End Sub

Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
        ModbusTCPCom1.Write("000030", 0)
End Sub
-------------------------------------------------

14
Support Questions / Re: Heartbeat Signal
« on: March 01, 2023, 10:24:17 AM »
I tried this method and I get one pulse when the timer runs out but how do I make the timer reset and start again? I have it set for 2000ms but need continuous pulses every 2000ms.

This is my code so far for the pulse and I do get one pulse out on the correct Modbus channel.  Tried adding some code to stop and start the timer but either I didn't write the code correctly or that's not the right method.

=======
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        ModbusTCPCom1.Write("000030", 1)
End Sub
=======

Thanks.

Again there is more than one way, a simple way is to drop a timer to your form, then set appropriate  time & enable it, double click and enter code like PLCDriver.Write("freetimer.acc",0)

15
Support Questions / Re: Variable for PLC IPAddress
« on: February 16, 2023, 06:39:30 PM »
My first suggestion is to not use Publish if you are using the Visual Studio Publish tool.

https://www.advancedhmi.com/forum/index.php?topic=14.msg37#msg37

Even before publishing I was seeing that error when I Start the app to test so the publishing wasn't the cause, I made a mistake in the setup.

I believe I have achieved my goal another way. By using a TextBox to enter the IP address as a string and in the MainForm code I made the Modbus IP address = the textbox string. It now uses the IP I enter into the textbox in the runtime screen for the IP.

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
        Me.ModbusTCPCom1.IPAddress = TextBox1.Text
    End Sub

Is there another way to publish an app for use by clients or my technicians that doesn't require them to have the full development software?  Making a purpose built small app the service tech or client can't modify without his managers permission is one of the most attractive features of AdvancedHMI for my use case.

Pages: [1] 2