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
Are you using the XAEShell or full Visual Studio? If full VS, what version?

I have been using the XAEShell to work with TwinCAT projects and VS 2022 without TC integration for AdvancedHMI.

2
Support Questions / Re: Float Register with Modbus
« on: March 20, 2024, 08:31:20 AM »
In the Modbus driver, try to set SwapWords to True to see if that does what you want.

3
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


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

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

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

7
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


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

9
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

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

11
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

12
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

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

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

15
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();

Pages: [1] 2 3 ... 342