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

Pages: [1] 2 3 ... 342
1
Support Questions / Re: Basic Indicator On wiith decimal value
« on: March 14, 2024, 08:53:31 AM »
The PLCAddressSelectColor2 works on a boolean value, so you can program the comparison in your PLC to set a boolean value.

The other option is to use some code:

- Add a DataSubscriber to the form
- Set PLCAddressValue to the register you want to use
- Double click the DataSubscriber to get back to code
- Enter this code:
Code: [Select]
if e.Values(0)=101 then
  BasicIndicator1.ForColor=Color.Red
else
  BasicIndicator1.ForColor=Color.White
end if


2
Send it to the sales at advancedhmi.com email.

3
Support Questions / Re: How to Avoid PLC and PC timeouts
« on: February 29, 2024, 02:14:26 PM »
You should be able to do a PLCAddress of PaintPart[0] and NumberOfElements of 65 (or greater). Then use e.Values(x) to access each array element,

4
Support Questions / Re: How to Avoid PLC and PC timeouts
« on: February 29, 2024, 10:36:16 AM »
The DataSubscriber2 allows you to setup multiple tags in a single DataSubscriber2. It will fire on changes in both directions.

5
Support Questions / Re: How to Avoid PLC and PC timeouts
« on: February 29, 2024, 09:19:33 AM »
BeginRead is an asynchronous command which takes a lot more overhead to use. I would only use it if you need non-blocking code.

If you are just monitoring values for change, I would use the DataSubscriber


6
Support Questions / Re: How to Avoid PLC and PC timeouts
« on: February 28, 2024, 04:08:32 PM »
Are you using v3.99x or 3.99y ?

How are you reading data in the code? Read or BeginRead? How frequently are you reading?

7
Support Questions / Re: Changing the Look of a Button
« on: February 28, 2024, 02:37:34 PM »
- In Solution Explorer expand down AdvancedHMIControls
- Exapand down the Controls folder
- Right Click BasicButton.vb and select View Code
- Go down to about line 405, just below #Region "Events"
- Add this code
Code: [Select]
    Protected Overrides Sub OnEnabledChanged(e As EventArgs)
        MyBase.OnEnabledChanged(e)

        If Not Me.Enabled Then
            Me.BackColor = Color.Black
        End If
    End Sub

8
Hi Archie,
I have tested the driver with two devices connected via a usb-Rs485 converter with polling time 100ms and time out 300;
the stable 3.99x version works correctly,
the new version (3.99xbeta4), on the other hand, always generates TimeOut errors on the controls.
This is on the list to be looked into.

9
Support Questions / Re: Changing the Look of a Button
« on: February 26, 2024, 10:01:06 AM »
You can use the PLCAddressAhighlight property to change the color. Put the same address as used in PLCAddressEnabled

10
Support Questions / Re: Adding Conditions
« on: February 23, 2024, 10:36:41 AM »
The easiest way to do this is to use a DataSubscriber2 to watch all the variables. Then in the Datasubscriber2 code set the Visible property of the BasicButton

11
Support Questions / Re: RE: Make Global Object
« on: February 22, 2024, 08:36:06 PM »
The IPAddress you checked, was that in the editing of the GroupedObject? Do you get an error in the BasicLabel on the grouped object?

12
Support Questions / Re: RE: Make Global Object
« on: February 21, 2024, 12:01:42 PM »
If you Build the Solution, do you get any errors?

13
Looks like you are using VB syntax in a c# program. c# is going to be stricter with case sensitivity and type conversions.

Your code would look something more like this:

            label4.Text = (int.Parse(label3.Text) - int.Parse(BasicLabel1.Text)).ToString();

14
Only the live value should be a BasicLabel. The other two will be updated via code, so they should only be of type Label.

- From the toolbox, add a Timer to the form
- Set the interval property to the time you want in milliseconds
- Set Enabled to True
- Double click the timer to get back to code
- Add code similar to this:
Code: [Select]
Try
  Label1.Text=BasicLabel1.Text
  Label2.Text=Label1.Text - BasicLabel1.Text
Catch ex as exception
  Label2.Text=ex.message
End Try

15
Support Questions / Re: Modbus 16bit addresses Read Only
« on: February 13, 2024, 08:02:42 AM »
- Add a BasicIndicator to the form
- Set PLCAddressSelectColor2 to 30209.0
- Set PLCAddressSelectColor3 to 30209.1

Pages: [1] 2 3 ... 342